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.

  • Yes thats true ! they sent module for 2.2.x as well but they were still using thathttppostactioninterface ... kind a shitcode is that sm cartquickpro. now trying to install infortis theme but have composer problem, magento.stackexchange.com/questions/310692/… take a look if any suggestion thank you – Giga Todadze Apr 22 '20 at 16:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.