|Setup:di:compile issue on Magento 2.2.2|
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?
|lucia_.mele||Posted: 2019-03-13||# 1|
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