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.