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?
- 
 vendor directory is exist in your magento root?Gohil Rajesh– Gohil Rajesh2021年09月05日 09:28:32 +00:00Commented Sep 5, 2021 at 9:28
- 
 yes, and there is autoload.php in the vendor folder with a lot of other sub-folders.sonicfly– sonicfly2021年09月06日 02:14:30 +00:00Commented Sep 6, 2021 at 2:14
2 Answers 2
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/
- 
 1The problem was resolved by set the ownership of all files under Magento folderchown -R apache:apache /var/www/html/magentosonicfly– sonicfly2021年09月07日 17:10:34 +00:00Commented Sep 7, 2021 at 17:10
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/