skip to Main Content

I executed git reset --hard, but now I get:

PHP Fatal error:  Uncaught Error: Class 'MagentoSetupApplication' not found in /home/xy/vendor/magento/framework/Console/Cli.php:79
Stack trace:
#0 /home/xy/bin/magento(22): MagentoFrameworkConsoleCli->__construct('Magento CLI')
#1 {main}
  thrown in /home/xy/vendor/magento/framework/Console/Cli.php on line 79

I executed composer update in hope that this fixes it, but it doesnt. How can I fix?

2

Answers


  1. Chosen as BEST ANSWER

    It turned out that git reset --hard destroyed my setup folder for unknown reasons and not even git pull fixed it.

    So I had to copy the folder from another project. Now it works.


  2. I just run git reset --hard again and that fixed the issue.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search