Magento – Why I’m having errors after install an update from 2.1.0 to 2.1.2 with composer

composererrormagento2upgrade

Errors after installing update from 2.1.0 to 2.1.2

 PHP Warning: 
 require(/var/www/vendor/composer/../../app/etc/NonComposerComponentRegistration.php):
 failed to open stream: No such file or directory in
 /var/www/vendor/composer/autoload_real.php on line 71 PHP Fatal error:
 require(): Failed opening required
 '/var/www/vendor/composer/../../app/etc/NonComposerComponentRegistration.php'
 (include_path='/var/www/vendor/magento/zendframework1/library:/var/www/vendor/phpunit/php-file-iterator:/var/www/vendor/phpunit/phpunit:/var/www/vendor/symfony/yaml:.:/usr/share/php')
 in /var/www/vendor/composer/autoload_real.php on line 71

I have removed the cache, completely removed vendor dir and reinstalled via composer install. Doesn't matter what I do, I cannot get past this error.

Best Answer

Check if doesn't have 2.1.0 in your composer.json, so run these commands:

rm -rf vendor/*
composer install && composer update -vvv
Related Topic