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?

0

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

  • 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? – 7ochem Dec 19 '17 at 13:51
  • i used rm -rf var/page_cache/* var/cache/* var/session/* var/di* var/view_preprocessed/* pub/static/* var/generation. – Ganesh Dec 20 '17 at 12:02
  • But you said you had updated composer - now you are saying you deleted the cache folders? @Ganesh – MJCoder May 4 '18 at 15:59
0

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/* var/generation

  1. Update composer

composer remove [companyname]/[modulename]

composer update

  1. Setup upgrade

php bin/magento setup:upgrade

  1. Content Deploy

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.