Question

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 ?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top