0

error after upgrade Magento 2.4.3 to 2.4.5

[master_bjmwbubjed]:public_html$ php bin/magento setup:upgrade
syntax error, unexpected token "array", expecting ")"#0 /home/644055.cloudwaysapps.com/jawcykryms/public_html/vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile()
#1 [internal function]: Composer\Autoload\ClassLoader->loadClass()
#2 /home/644055.cloudwaysapps.com/jawcykryms/public_html/vendor/magento/framework/ObjectManager/Relations/Runtime.php(38): class_exists()
#3 /home/644055.cloudwaysapps.com/jawcykryms/public_html/vendor/magento/framework/Interception/Config/Config.php(157): Magento\Framework\ObjectManager\Relations\Runtime->has()
#4 /home/644055.cloudwaysapps.com/jawcykryms/public_html/vendor/magento/framework/Interception/Config/Config.php(180): Magento\Framework\Interception\Config\Config->_inheritInterception()
#5 /home/644055.cloudwaysapps.com/jawcykryms/public_html/vendor/magento/framework/Interception/Config/Config.php(213): Magento\Framework\Interception\Config\Config->hasPlugins()
#6 /home/644055.cloudwaysapps.com/jawcykryms/public_html/vendor/magento/framework/Interception/Config/Config.php(190): Magento\Framework\Interception\Config\Config->generateIntercepted()
#7 /home/644055.cloudwaysapps.com/jawcykryms/public_html/vendor/magento/framework/Interception/Config/Config.php(122): Magento\Framework\Interception\Config\Config->initializeUncompiled()
#8 /home/644055.cloudwaysapps.com/jawcykryms/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(121): Magento\Framework\Interception\Config\Config->__construct()
#9 /home/644055.cloudwaysapps.com/jawcykryms/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(66): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject()
#10 /home/644055.cloudwaysapps.com/jawcykryms/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create()
#11 /home/644055.cloudwaysapps.com/jawcykryms/public_html/vendor/magento/framework/App/ObjectManager/Environment/Developer.php(84): Magento\Framework\ObjectManager\ObjectManager->get()
#12 /home/644055.cloudwaysapps.com/jawcykryms/public_html/vendor/magento/framework/App/ObjectManagerFactory.php(191): Magento\Framework\App\ObjectManager\Environment\Developer->configureObjectManager()
#13 /home/644055.cloudwaysapps.com/jawcykryms/public_html/vendor/magento/framework/App/Bootstrap.php(212): Magento\Framework\App\ObjectManagerFactory->create()
#14 /home/644055.cloudwaysapps.com/jawcykryms/public_html/vendor/magento/framework/App/Bootstrap.php(127): Magento\Framework\App\Bootstrap->__construct()
#15 /home/644055.cloudwaysapps.com/jawcykryms/public_html/vendor/magento/framework/Console/Cli.php(185): Magento\Framework\App\Bootstrap::create()
#16 /home/644055.cloudwaysapps.com/jawcykryms/public_html/vendor/magento/framework/Console/Cli.php(85): Magento\Framework\Console\Cli->initObjectManager()
#17 /home/644055.cloudwaysapps.com/jawcykryms/public_html/bin/magento(22): Magento\Framework\Console\Cli->__construct()
#18 {main}

1 Answer 1

0

I would check first app/etc/config.php and app/etc/env.php. Maybe the syntax in one of those 2 files is wrong, and you are missing a closing parenthesis, or a comma.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.