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

Created by Support Agent, Modified on Sun, 19 Apr at 11:55 PM by Support Agent

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.


Learn more about us!!


BSS Commerce is a full-service ecommerce agency with 14+ years of experience, supporting 75,000+ customers worldwide. As an Adobe Commerce Solution Bronze Partner and Select Magento Extensions Builder, we deliver trusted end-to-end solutions.


Our core strength is Magento, with 150+ extensions designed to enhance store performance and drive growth. With deep expertise from years of working on Magento websites, we deliver scalable, high-impact solutions backed by strong client trust.


Discover our extensions: https://bsscommerce.com/magento-2-extensions.html 


You can refer our top tier extensions:

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