0

Error on Magento 2 after update from PHP 5 to PHP 7:

Warning: require(/var/www/html/vendor/magento/framework/registration.php): failed to open stream: No such file or directory in /var/www/html/vendor/composer/autoload_real.php on line 60

Fatal error: require(): Failed opening required '/var/www/html/vendor/magento/framework/registration.php' (include_path='/var/www/html/vendor/phpseclib/phpseclib/phpseclib:/var/www/html/vendor/magento/zendframework1/library:/var/www/html/vendor/phpunit/php-file-iterator:/var/www/html/vendor/phpunit/phpunit:/var/www/html/vendor/symfony/yaml:.:/usr/share/php') in /var/www/html/vendor/composer/autoload_real.php on line 60

Any help?

asked Dec 19, 2017 at 13:25

4 Answers 4

2

I am facing sem issue I have resolved this by below steps

  1. Remove below folders

rm -rf var/page_cache/* var/cache/* var/session/* var/di* var/view_preprocessed/* pub/static/* generated/code/

  1. Update composer

composer install

  1. Setup upgrade

php bin/magento setup:upgrade

  1. Content Deploy

php bin/magento setup:static-content:deploy -f

answered Aug 29, 2018 at 11:41
0

yes got it, we need to update composer.. i hope it will help some one

answered Dec 19, 2017 at 13:30
3
  • 1
    I do not agree that this is not an answer to the question, it is, but it is a bit short... Could you elaborate more? What was the cause and why is this the right solution? What commands did you run? Commented Dec 19, 2017 at 13:51
  • i used rm -rf var/page_cache/* var/cache/* var/session/* var/di* var/view_preprocessed/* pub/static/* var/generation. Commented Dec 20, 2017 at 12:02
  • But you said you had updated composer - now you are saying you deleted the cache folders? @Ganesh Commented May 4, 2018 at 15:59
0

rm -rf var/page_cache/* var/cache/* var/session/* var/di* var/view_preprocessed/* pub/static/* var/generation

remove Module which you installed recently view composer composer remove [companyname]/[modulename]

Remember composer update will update all modules installed via composer

Setup upgrade php bin/magento setup:upgrade

Content Deploy php bin/magento setup:static-content:deploy -f it will work perfect

answered Jan 9, 2020 at 14:47
0

In my case I was just missing credentials for that package in my auth.json

answered Dec 14, 2022 at 11:36

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.