0

If I execute php bin/magento list then nothing happens.

It stopped working after executing composer update and grunt clean

If I open the frontend I get

Fatal error: require_once(): Failed opening required '/home/xxx/yyy/vendor/composer/autoload_real.php' (include_path='.:/opt/cpanel/ea-php72/root/usr/share/pear') in /home/xxx/yyy/vendor/autoload.php on line 5

Warning: require(/home/x/y/vendor/composer/../magento/services-connector/registration.php): failed to open stream: No such file or directory in /home/x/y/vendor/composer/autoload_real.php on line 70


Update: I set permissions, but it still does not work:

find . -type f -exec chmod 664 {} \;
find . -type d -exec chmod 775 {} \;
find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w {} +
find var generated vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} +
chmod u+x bin/magento
12
  • Try to run composer install in magento root and if didn't work at <magento_dir>/update/ – Rui Silva Jul 17 '20 at 10:19
  • I tried composer install it did not helped. – Black Jul 17 '20 at 10:36
  • In both root and <magento_dir>/update/? any erros? – Rui Silva Jul 17 '20 at 10:38
  • Try this --> magento.stackexchange.com/questions/143307/… – Yo Yo Roshan Jul 17 '20 at 10:43
  • @YoYoRoshan, what exactly do you want me to try? – Black Jul 17 '20 at 10:45
1

I figured out that a new magento update is responsible for this mess.

$ composer update Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 0 installs, 3 updates, 0 removals

  • Updating composer/composer (1.10.8 => 1.10.9): Loading from cache
  • Updating magento/services-connector (1.0.5 => 1.0.6): Loading from cache

As you can see magento/services-connector received an update. This update removes the important file registration.php, for unknown reasons which then can't get loaded anymore:

Warning: require(/home/x/y/vendor/composer/../magento/services-connector/registration.php): failed to open stream: No such file or directory in /home/x/y/vendor/composer/autoload_real.php on line 70

Solution: Revert the update by using old version again until they have fixed it (check on github):

composer require magento/services-connector 1.0.5

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.