Magento 2 – Fix Vendor Autoload Not Found Error

composerinstallationmagento2

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?

Best Answer

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/
Related Topic