yireo / magento2-replace-all

Meta-package to replace all optional Magento 2 modules
129 stars 33 forks source link

Fix Fatal Error: 'Uncaught Error: Cannot instantiate interface Magento\Framework\MessageQueue\ConfigInterface in ...' when accessing the checkout page #13

Closed toan-tam closed 4 years ago

toan-tam commented 4 years ago

I got the same message queue issue as Andreas mentioned his post when accessing the checkout page on Magento 2.3.4 CE

Here is the error log: "Fatal Error: 'Uncaught Error: Cannot instantiate interface Magento\\Framework\\MessageQueue\\ConfigInterface in \/Applications\/MAMP\/htdocs\/performance-optimization\/vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php:121\nStack trace:\n#0 \/Applications\/MAMP\/htdocs\/performance-optimization\/vendor\/magento\/framework\/ObjectManager\/Factory\/Compiled.php(108): Magento\\Framework\\ObjectManager\\Factory\\AbstractFactory->createObject('Magento\\\\Framewo...', Array)\n#1 \/Applications\/MAMP\/htdocs\/performance-optimization\/vendor\/magento\/framework\/ObjectManager\/Factory\/Compiled.php(150): Magento\\Framework\\ObjectManager\\Factory\\Compiled->create('Magento\\\\Framewo...')\n#2 \/Applications\/MAMP\/htdocs\/performance-optimization\/vendor\/magento\/framework\/ObjectManager\/Factory\/Compiled.php(79): Magento\\Framework\\ObjectManager\\Factory\\Compiled->get('Magento\\\\Framewo...')\n#3 \/Applications\/MAMP\/htdocs\/performance-optimization\/vendor\/magento\/framework\/ObjectManager\/Factory\/Compiled.php(150): Magento\\Framework\\ObjectManager\\Factory\\Compiled->create('' in '\/Applications\/MAMP\/htdocs\/performance-optimization\/vendor\/magento\/framework\/ObjectManager\/Factory\/AbstractFactory.php' on line 121"

The reason the error occurs is that the di preference setting for Magento\Framework\MessageQueue\ConfigInterface is missing.

This PR adds the module that contains the di preference setting to bypass the error.

jissereitsma commented 4 years ago

Thanks. I still think we need some kind of CI to check the consequences of all modules. But at least for now your PR provides a quick fix.