0

When i open Magento in browser i got

Autoload error

Vendor autoload is not found. Please run 'composer install' under application root directory.

even i have run

composer update
composer install

on the root folder and it says

Nothing to install, update or remove

Is there somewhere I can dig to figure out why the autoload is still failing?

asked Sep 5, 2021 at 6:49
2
  • vendor directory is exist in your magento root? Commented Sep 5, 2021 at 9:28
  • yes, and there is autoload.php in the vendor folder with a lot of other sub-folders. Commented Sep 6, 2021 at 2:14

2 Answers 2

-1

Try to run the following commands and then check.

php bin/magento cache:clean 
php bin/magento cache:flush 
php bin/magento indexer:reindex 
php bin/magento setup:upgrade 
php bin/magento setup:static-content:deploy -f 
sudo chmod -R 777 var/ generated/ pub/
answered Sep 6, 2021 at 5:39
1
  • 1
    The problem was resolved by set the ownership of all files under Magento folder chown -R apache:apache /var/www/html/magento Commented Sep 7, 2021 at 17:10
-1

I tried all the below step but still getting error "Vendor autoload is not found." please Run Composer under root directory. please help how can resolve

/var/www/html/magento2/ composer update

/var/www/html/magento2/ composer install

php bin/magento cache:clean

php bin/magento cache:flush

php bin/magento indexer:reindex

php bin/magento setup:upgrade

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

sudo chmod -R 777 var/ generated/ pub/

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.