There has been an error processing your request Magento 2

Viewed 1

How to fix There has been an error processing your request. Exception printing is disabled by default for security reasons. Error log record number...

1 Answers

Please try to follow below instructions to fix this:

Delete the generated/code directory rm -rf generated/code

Then run

php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:flush
chmo -R 0777 var/ pub/ generated/

Now try to run the site, it should be perfect now.