Errors after installing update from 2.1.0 to 2.1.2

 PHP Warning: 
 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
 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.

5 Answers 5


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

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

In root directory have a file composer.json, inner this file exists this code line

"require": {
        "intelipost/magento2-basic": "^1.2",
        "magento/product-community-edition": "2.3.1"

Remove modules that you will not use, use command line bellow

composer update

Sorry, had to do with user permissions and writing the file to app/etc....


I encountered this error on the Magento Cloud. What worked for me is to set the app/etc/NonComposerComponentRegistration.php permissions to 666, then re-run the Cloud build by committing and pushing:

chmod 666 app/etc/NonComposerComponentRegistration.php
git add --force app/etc/NonComposerComponentRegistration.php
git commit -m "Fixed NonComposerComponentRegistration.php permissions"
git push --set-upstream origin master

Reference: https://www.mexbs.com/magento-blog/developing-on-the-magento-cloud-a-step-by-step-tutorial/


Please remove files from var folder using command

cd var
rm -rf *

now move to root directory of magento and run deploy command

php bin/magento setup:static-content:deploy

after deploy provide permission to var folder and pub folder with 755 using command

chmod -R 755 pub var

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.