Magento 2 – How to Solve Auto Load Error

magento2varien-autoload

I have created a new Magento module and create a new theme in Magento but the auto-load error has come

enter image description here

Best Answer

There might be 2 case 

1. Cache issue

rm -rf var/cache/ var/generation/ var/page_cache/ var/view_preprocessed/ 
rm -rf pub/static/frontend/ pub/static/adminhtml/ pub/static/_requirejs/
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

2. Permission Issue

find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
find ./var -type d -exec chmod 777 {} \;
find ./pub/media -type d -exec chmod 777 {} \;
find ./pub/static -type d -exec chmod 777 {} \;
chmod 777 ./app/etc
chmod 644 ./app/etc/*.xml
Related Topic