This topic can no longer be replied to because it has been locked.

Setup:di:compile issue on Magento 2.2.2
Gravatar
Joined: 2019-03-06
Posts: 1
Hi,

We are using the 1.3.33 Mailchimp Extension on our Magento 2.2.2 site.

When we run setup:di:compile, we get the following error:

"Fatal error: Interface 'Magento\Framework\App\CsrfAwareActionInterface' not found in htdocs/app/code/Ebizmarts/MailChimp/Controller/WebHook/Index.php on line 24".

On line 24 it states:

class Index extends Action implements CsrfAwareActionInterface

However the CsrfAwareActionInterface does not exist within "Magento\Framework\App" at all on Magento 2.2.2.

I found a mentioning online that Csrf is only on Magento Version 2.3? - https://magento.stackexchange.com/questions/253414/magento-2-3-upgrade-breaks-http-post-requests-to-custom-module-endpoint?rq=1

However it states that the MailChimp module is available on 2.2.2

Please can you advise?

Thanks
Gravatar
Joined: 2018-08-14
Posts: 249
Hi Richard,

Thanks for contacting us.

You have installed the version for Magento 2.3.x, you need install the correct version for Magento 2.2.x, please remove/uninstall you current version of the extension after that run the next two commands on the terminal to install the correct version for Magento 2.2.x:
composer require mailchimp/mc-magento2 1.2.33
bin/magento setup:upgrade

NEWSLETTER

Subscribe to our newsletter to receive emails and useful news articles