How to fix incompatible issue on M2.2.x?

Created by Rosa Truong, Modified on Mon, 21 Jun, 2021 at 4:45 PM by Rosa Truong

Issue:

We were able to install the extension version 1.1.9 with module core version 1.0.5 on our dev site with Magento version 2.4.2 community without any issues. But we try to install it on our live site with magento Version 2.2.7, we encountered the following error when trying to run the command “php bin/magento setup:di:compile”.  Please provide a solution.

Fatal error:  Interface 'Magento\Framework\App\Action\HttpGetActionInterface' not found /app/code/Bss/ImportExportCore/Controller/Adminhtml/History/Download.php on line 27


Solution:

The file “HttpGetActionInterface” is not available in version M2.2.7 but only available in version M2.3 and M2.4. That is why the extension worked on the dev site with version M2.4 but did not work on the live site with version M2.2.7.

To solve the issue, please edit two files below:

+ app/code/Bss/ImportExportCore/Controller/Adminhtml/History/Download.php

+ app/code/Bss/ImportExportCore/Controller/Adminhtml/Import/Validate.php


Please check and apply the attachment files on your site.


If you need any further assistance, please feel free to contact us.

We're more than happy to support you.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article