1. remove generated files
rm -rf generated/code/ var/view_preprocessed/ var/cache var/page_cache
2. and fix permission
chown -R www-data generated/ var/ ; chmod -R 777 var/ generated/
Note: update www-data with your webserver username, if required.
3. check with default deploy mode
php bin/magento deploy:mode:set default
kindly Accept as a solution if this works for you and give Kudos
the issue if resolved, thank you so much for help.
Please give more details like what are the errors in console, what's in log files.
in exception log file its showing this
main.CRITICAL: Class Magento\Framework\App\Http\Interceptor does not exist {"exception":"[object] (ReflectionException(code: -1): Class Magento\\Framework\\App\\Http\\Interceptor does not exist at /var/www/html/vendor/magento/framework/Code/Reader/ClassReader.php:19)"} []
Run below commands :
php bin/magento setup:di:compile php bin/magento cache:flush
Check if it works for you !
for the second command its showing below message
cache_dir "/var/www/html/var/cache/" is not writable
I changed the permission using
sudo chmod -R 777 /var/www/html/var/cache/
i tried to run the command
still not working ( showing checkout page blank)
1. remove generated files
rm -rf generated/code/ var/view_preprocessed/ var/cache var/page_cache
2. and fix permission
chown -R www-data generated/ var/ ; chmod -R 777 var/ generated/
Note: update www-data with your webserver username, if required.
3. check with default deploy mode
php bin/magento deploy:mode:set default
kindly Accept as a solution if this works for you and give Kudos