I am trying to upgrade magento 2.3.4 to 2.4.3, i have update my system-requirements
Php – 7.4
mysql – 8.0
Composer – 2.*
magento 2.4.3 vanila version is working fine for me.
my current project magento version is 2.3.4, now we are upgrading to 2.4.3.
magento 2.4.3 is upgarde, but when i try to run command like sudo php bin/magento setup:upgrade, i am getting this error.
PHP Fatal error: Uncaught Error: Cannot instantiate interface MagentoFrameworkInterceptionConfigLoaderInterface in /var/www/html/aao_2021_sep/store/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:50
Stack trace:
Help me to fix this issue. Thanks in Advance.
3
Answers
What solved this for me was regenerating composer:
rm -rf vendor/*
composer clearcache
composer install
then compile magento (setup upgrade…. cache flush)
I upgraded from 2.3.3 to 2.4.3 and had same errors, Disabling MSI worked for me referring to https://meetanshi.com/blog/disable-magento-msi/
Try
php bin/magento setup:di:compile