Skip to content

PHP Warning: require(/vendor/composer/../magento/project-enterprise-edition/app/etc/NonComposerComponentRegistration.php): Failed to open stream

I am working on an upgrade project from Magento 2.3.2.p2 EE to 2.4.4 EE.

After the composer update was done successfully I found the below error while run php bin/magento commands, can anyone help me on the same.

I have already run this composer dumpautoload but not still not working.

$ php bin/magento
PHP Warning: require(/home/../vendor/composer/../magento/project-enterprise-edition/app/etc/NonComposerComponentRegistration.php): Failed to open stream: No such file or directory in /home/../vendor/composer/autoload_real.php on line 57
PHP Fatal error: Uncaught Error: Failed opening required ‘/home/../vendor/composer/../magento/project-enterprise-edition/app/etc/NonComposerComponentRegistration.php’ (include_path=’/home/../vendor/magento/zendframework1/library:.:/usr/share/php’) in /home/../vendor/composer/autoload_real.php:57
Stack trace:
#0 /home/../vendor/composer/autoload_real.php(40): composerRequiredb672302d8264da3ebc40879939070dd()
#1 /home/../vendor/autoload.php(25): ComposerAutoloaderInitdb672302d8264da3ebc40879939070dd::getLoader()
#2 /home/../app/autoload.php(51): include(‘…’)
#3 /home/../app/bootstrap.php(43): require_once(‘…’)
#4 /home/../bin/magento(14): require(‘…’)
#5 {main}
thrown in /home/../vendor/composer/autoload_real.php on line 57