Skip to content

PHP Fatal error: Uncaught Error: Interface ‘LaminasServiceManagerFactoryFactoryInterface’ not found

anyone encountered this issues after upgrading from Magento 2.3.1 to 2.4.

This happened when I tried to compile the magento.

PHP Fatal error: Uncaught Error: Interface ‘LaminasServiceManagerFactoryFactoryInterface’ not found in setup/src/Magento/Setup/Di/MagentoDiFactory.php:17
Stack trace:
#0 vendor/composer/ClassLoader.php(444): include()
#1 vendor/composer/ClassLoader.php(322): ComposerAutoloadincludeFile()
#2 [internal function]: ComposerAutoloadClassLoader->loadClass()
#3 [internal function]: spl_autoload_call()
#4 /var/www/html/setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(134): class_exists()
#5 setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(117): MagentoSetupModuleDiCodeReaderClassesScanner->includeClass()
#6 setup/src/Magento/Setup/Module/Di/Code/Reader/ClassesScanner.php(87): MagentoSetupModuleDiCodeReaderClassesScanner->extract()
#7setup/src/Magento/Setup/Module/Di/App/Task/Operation/ApplicationCodeGenerator.php(71): MagentoSetupModuleDiCodeReaderClassesScanner->getList()
#8 /var/www/html/setu in /var/www/html/setup/src/Magento/Setup/Di/MagentoDiFactory.php on line 17

enter image description here