문제

Repositories code generation... 1/7 [====>-----------------------]  14% < 1 sec 70.0 MiB
Fatal error: Interface 'Magento\Framework\App\Action\HttpPostActionInterface' not found in /var/www/html/app/code/Sm/CartQuickPro/Controller/Product/Compare/Remove.php on line 19

and use Magento\Framework\App\Action\HttpPostActionInterface as HttpPostActionInterface; is used 3 times in module . I have magento2.2.4 and I am using https://i.imgur.com/cHLvKD2.png marked one but it countains

use Magento\Framework\App\Action\HttpPostActionInterface as HttpPostActionInterface;

I think it's exactly the same as it is in 2.3.4 folder. what can I do ?

도움이 되었습니까?

해결책

The file HttpPostActionInterface.php is not available in Magento 2.2.* . It was only introduced in Magento 2.3.* .

Check the URL in the images:

Magento 2.2.*

Magento 2.3.*

To be precise it was added on 31 Jul 2018 and was intended for Magento 2.3 release.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top