skip to Main Content

We are upgrading Magento 2 from 2.3.4 to 2.4.4, but are getting the following error when running setup:upgrade.

Anyone having an idea why we get this error?

Best regards,
Jesper

Class ‘LaminasCodeScannerFileScanner’ not found#0 /home/name_dev/public_html/vendor/composer/ClassLoader.php(444): include()
#1 /home/name_dev/public_html/vendor/composer/ClassLoader.php(322): ComposerAutoloadincludeFile()
#2 [internal function]: ComposerAutoloadClassLoader->loadClass()
#3 /home/name_dev/public_html/vendor/magento/framework/Reflection/TypeProcessor.php(561): spl_autoload_call()
#4 /home/name_dev/public_html/vendor/magento/framework/Reflection/TypeProcessor.php(672): MagentoFrameworkReflectionTypeProcessor->getAliasMapping()
#5 /home/name_dev/public_html/vendor/magento/framework/Reflection/TypeProcessor.php(550): MagentoFrameworkReflectionTypeProcessor->resolveFullyQualifiedClas sName()
#6 /home/name_dev/public_html/vendor/magento/framework/Reflection/MethodsMap.php(146): MagentoFrameworkReflectionTypeProcessor->getParamType()
#7 /home/name_dev/public_html/vendor/magento/framework/Communication/Config/ReflectionGenerator.php(50): MagentoFrameworkReflectionMethodsMap->getMethodPara ms()
#8 /home/name_dev/public_html/vendor/magento/framework/Communication/Config/ReflectionGenerator.php(79): MagentoFrameworkCommunicationConfigReflectionGener ator->extractMethodMetadata()
#9 /home/name_dev/public_html/vendor/magento/module-webapi-async/Code/Generator/Config/RemoteServiceReader/Communication.php(71): MagentoFrameworkCommunicati onConfigReflectionGenerator->generateTopicConfigForServiceMethod()
#10 /home/name_dev/public_html/vendor/magento/framework/Communication/Config/CompositeReader.php(55): MagentoWebapiAsyncCodeGeneratorConfigRemoteServiceRe aderCommunication->read()
#11 /home/name_dev/public_html/vendor/magento/framework/Config/Data.php(105): MagentoFrameworkCommunicationConfigCompositeReader->read()
#12 /home/name_dev/public_html/vendor/magento/framework/Config/Data.php(93): MagentoFrameworkConfigData->initData()
#13 /home/name_dev/public_html/vendor/magento/framework/Communication/Config/Data.php(29): MagentoFrameworkConfigData->__construct()
#14 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(121): MagentoFrameworkCommunicationConfigData->__construc t()
#15 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(66): MagentoFrameworkObjectManagerFactoryAbstractFactor y->createObject()
#16 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): MagentoFrameworkObjectManagerFactoryDynamicDeveloper->create( )
#17 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(170): MagentoFrameworkObjectManagerObjectManager->get()
#18 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(276): MagentoFrameworkObjectManagerFactoryAbstractFactory ->resolveArgument()
#19 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(239): MagentoFrameworkObjectManagerFactoryAbstractFactory ->getResolvedArgument()
#20 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): MagentoFrameworkObjectManagerFactoryAbstractFactor y->resolveArgumentsInRuntime()
#21 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59): MagentoFrameworkObjectManagerFactoryDynamicDevelo per->_resolveArguments()
#22 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): MagentoFrameworkObjectManagerFactoryDynamicDeveloper->create( )
#23 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(170): MagentoFrameworkObjectManagerObjectManager->get()
#24 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(276): MagentoFrameworkObjectManagerFactoryAbstractFactory ->resolveArgument()
#25 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(239): MagentoFrameworkObjectManagerFactoryAbstractFactory ->getResolvedArgument()
#26 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): MagentoFrameworkObjectManagerFactoryAbstractFactor y->resolveArgumentsInRuntime()
#27 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59): MagentoFrameworkObjectManagerFactoryDynamicDevelo per->_resolveArguments()
#28 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): MagentoFrameworkObjectManagerFactoryDynamicDeveloper->create( )
#29 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(206): MagentoFrameworkObjectManagerObjectManager->get()
#30 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(217): MagentoFrameworkObjectManagerFactoryAbstractFactory ->parseArray()
#31 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(182): MagentoFrameworkObjectManagerFactoryAbstractFactory ->parseArray()
#32 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(276): MagentoFrameworkObjectManagerFactoryAbstractFactory ->resolveArgument()
#33 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(239): MagentoFrameworkObjectManagerFactoryAbstractFactory ->getResolvedArgument()
#34 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): MagentoFrameworkObjectManagerFactoryAbstractFactor y->resolveArgumentsInRuntime()
#35 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59): MagentoFrameworkObjectManagerFactoryDynamicDevelo per->_resolveArguments()
#36 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): MagentoFrameworkObjectManagerFactoryDynamicDeveloper->create( )
#37 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(170): MagentoFrameworkObjectManagerObjectManager->get()
#38 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(276): MagentoFrameworkObjectManagerFactoryAbstractFactory ->resolveArgument()
#39 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(239): MagentoFrameworkObjectManagerFactoryAbstractFactory ->getResolvedArgument()
#40 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): MagentoFrameworkObjectManagerFactoryAbstractFactor y->resolveArgumentsInRuntime()
#41 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59): MagentoFrameworkObjectManagerFactoryDynamicDevelo per->_resolveArguments()
#42 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): MagentoFrameworkObjectManagerFactoryDynamicDeveloper->create( )
#43 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(206): MagentoFrameworkObjectManagerObjectManager->get()
#44 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(217): MagentoFrameworkObjectManagerFactoryAbstractFactory ->parseArray()
#45 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(182): MagentoFrameworkObjectManagerFactoryAbstractFactory ->parseArray()
#46 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(276): MagentoFrameworkObjectManagerFactoryAbstractFactory ->resolveArgument()
#47 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(239): MagentoFrameworkObjectManagerFactoryAbstractFactory ->getResolvedArgument()
#48 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): MagentoFrameworkObjectManagerFactoryAbstractFactor y->resolveArgumentsInRuntime()
#49 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59): MagentoFrameworkObjectManagerFactoryDynamicDevelo per->_resolveArguments()
#50 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): MagentoFrameworkObjectManagerFactoryDynamicDeveloper->create( )
#51 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(170): MagentoFrameworkObjectManagerObjectManager->get()
#52 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(276): MagentoFrameworkObjectManagerFactoryAbstractFactory ->resolveArgument()
#53 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(239): MagentoFrameworkObjectManagerFactoryAbstractFactory ->getResolvedArgument()
#54 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): MagentoFrameworkObjectManagerFactoryAbstractFactor y->resolveArgumentsInRuntime()
#55 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59): MagentoFrameworkObjectManagerFactoryDynamicDevelo per->_resolveArguments()
#56 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): MagentoFrameworkObjectManagerFactoryDynamicDeveloper->create( )
#57 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(170): MagentoFrameworkObjectManagerObjectManager->get()
#58 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(276): MagentoFrameworkObjectManagerFactoryAbstractFactory ->resolveArgument()
#59 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(239): MagentoFrameworkObjectManagerFactoryAbstractFactory ->getResolvedArgument()
#60 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): MagentoFrameworkObjectManagerFactoryAbstractFactor y->resolveArgumentsInRuntime()
#61 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59): MagentoFrameworkObjectManagerFactoryDynamicDevelo per->_resolveArguments()
#62 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): MagentoFrameworkObjectManagerFactoryDynamicDeveloper->create( )
#63 /home/name_dev/public_html/generated/code/Magento/Framework/MessageQueue/Config/Proxy.php(84): MagentoFrameworkObjectManagerObjectManager->get()
#64 /home/name_dev/public_html/generated/code/Magento/Framework/MessageQueue/Config/Proxy.php(151): MagentoFrameworkMessageQueueConfigProxy->_getSubject()
#65 /home/name_dev/public_html/vendor/magento/framework-message-queue/Config/Topology/ConfigReaderPlugin.php(70): MagentoFrameworkMessageQueueConfigProxy-> getBinds()
#66 /home/name_dev/public_html/vendor/magento/framework-message-queue/Config/Topology/ConfigReaderPlugin.php(47): MagentoFrameworkMessageQueueConfigTopolog yConfigReaderPlugin->getTopologyConfigDataFromQueueConfig()
#67 /home/name_dev/public_html/vendor/magento/framework/Interception/Interceptor.php(146): MagentoFrameworkMessageQueueConfigTopologyConfigReaderPlugin->a fterRead()
#68 /home/name_dev/public_html/vendor/magento/framework/Interception/Interceptor.php(153): MagentoFrameworkMessageQueueTopologyConfigCompositeReaderInter ceptor->MagentoFrameworkInterception{closure}()
#69 /home/name_dev/public_html/generated/code/Magento/Framework/MessageQueue/Topology/Config/CompositeReader/Interceptor.php(23): MagentoFrameworkMessageQueu eTopologyConfigCompositeReaderInterceptor->___callPlugins()
#70 /home/name_dev/public_html/vendor/magento/framework/Config/Data.php(105): MagentoFrameworkMessageQueueTopologyConfigCompositeReaderInterceptor->read( )
#71 /home/name_dev/public_html/vendor/magento/framework/Config/Data.php(93): MagentoFrameworkConfigData->initData()
#72 /home/name_dev/public_html/vendor/magento/framework-message-queue/Topology/Config/Data.php(24): MagentoFrameworkConfigData->construct()
#73 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(121): MagentoFrameworkMessageQueueTopologyConfigData->
construct()
#74 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(66): MagentoFrameworkObjectManagerFactoryAbstractFactor y->createObject()
#75 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): MagentoFrameworkObjectManagerFactoryDynamicDeveloper->create( )
#76 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(170): MagentoFrameworkObjectManagerObjectManager->get()
#77 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(276): MagentoFrameworkObjectManagerFactoryAbstractFactory ->resolveArgument()
#78 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(239): MagentoFrameworkObjectManagerFactoryAbstractFactory ->getResolvedArgument()
#79 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): MagentoFrameworkObjectManagerFactoryAbstractFactor y->resolveArgumentsInRuntime()
#80 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59): MagentoFrameworkObjectManagerFactoryDynamicDevelo per->_resolveArguments()
#81 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): MagentoFrameworkObjectManagerFactoryDynamicDeveloper->create( )
#82 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(170): MagentoFrameworkObjectManagerObjectManager->get()
#83 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(276): MagentoFrameworkObjectManagerFactoryAbstractFactory ->resolveArgument()
#84 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(239): MagentoFrameworkObjectManagerFactoryAbstractFactory ->getResolvedArgument()
#85 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): MagentoFrameworkObjectManagerFactoryAbstractFactor y->resolveArgumentsInRuntime()
#86 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59): MagentoFrameworkObjectManagerFactoryDynamicDevelo per->_resolveArguments()
#87 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): MagentoFrameworkObjectManagerFactoryDynamicDeveloper->create( )
#88 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(170): MagentoFrameworkObjectManagerObjectManager->get()
#89 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(276): MagentoFrameworkObjectManagerFactoryAbstractFactory ->resolveArgument()
#90 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(239): MagentoFrameworkObjectManagerFactoryAbstractFactory ->getResolvedArgument()
#91 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): MagentoFrameworkObjectManagerFactoryAbstractFactor y->resolveArgumentsInRuntime()
#92 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59): MagentoFrameworkObjectManagerFactoryDynamicDevelo per->_resolveArguments()
#93 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): MagentoFrameworkObjectManagerFactoryDynamicDeveloper->create( )
#94 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(170): MagentoFrameworkObjectManagerObjectManager->get()
#95 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(276): MagentoFrameworkObjectManagerFactoryAbstractFactory ->resolveArgument()
#96 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(239): MagentoFrameworkObjectManagerFactoryAbstractFactory ->getResolvedArgument()
#97 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): MagentoFrameworkObjectManagerFactoryAbstractFactor y->resolveArgumentsInRuntime()
#98 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59): MagentoFrameworkObjectManagerFactoryDynamicDevelo per->_resolveArguments()
#99 /home/name_dev/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(56): MagentoFrameworkObjectManagerFactoryDynamicDeveloper->create( )
#100 /home/name_dev/public_html/setup/src/Magento/Setup/Model/Installer.php(1215): MagentoFrameworkObjectManagerObjectManager->create()
#101 /home/name_dev/public_html/setup/src/Magento/Setup/Model/Installer.php(1622): MagentoSetupModelInstaller->createSchemaDataHandler()
#102 /home/name_dev/public_html/setup/src/Magento/Setup/Model/Installer.php(1114): MagentoSetupModelInstaller->getSchemaDataHandler()
#103 /home/name_dev/public_html/setup/src/Magento/Setup/Model/Installer.php(895): MagentoSetupModelInstaller->handleDBSchemaData()
#104 /home/name_dev/public_html/setup/src/Magento/Setup/Console/Command/UpgradeCommand.php(146): MagentoSetupModelInstaller->installSchema()
#105 /home/name_dev/public_html/vendor/symfony/console/Command/Command.php(255): MagentoSetupConsoleCommandUpgradeCommand->execute()
#106 /home/name_dev/public_html/vendor/symfony/console/Application.php(1009): SymfonyComponentConsoleCommandCommand->run()
#107 /home/name_dev/public_html/vendor/symfony/console/Application.php(273): SymfonyComponentConsoleApplication->doRunCommand()
#108 /home/name_dev/public_html/vendor/magento/framework/Console/Cli.php(115): SymfonyComponentConsoleApplication->doRun()
#109 /home/name_dev/public_html/vendor/symfony/console/Application.php(149): MagentoFrameworkConsoleCli->doRun()
#110 /home/name_dev/public_html/bin/magento(23): SymfonyComponentConsoleApplication->run()

2

Answers


  1. I had the same error message. I downloaded and replaced setup https://github.com/magento/magento2/tree/2.4.5/setup
    folder to the project folder and the error has disappeared.

    Login or Signup to reply.
  2. I would remove the vendor directory and launch the terminal again and execute the command

    composer install
    

    to regenerate all the Magento standard codes. You can check your vendor folder to make sure laminas are installed and run the compilation command later to load the dependencies.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search