Magento Tutorials

There has been an error processing your request

“There has been an error processing your request” is a common error message that you will encounter when working with Magento. This message itself is NOT an error, but a notification on some errors occurring in your system.

magento exception printing

We usually see this error message when installing a new Magento theme/module. The conflict between some components of Magento cause this error and Magento cannot operate properly. Another common cause is related to the cache folder of Magento.

How to debug the error

Since this is an indication of instabilities within your system, the proper way to get around this issue is to find out where and why your system is facing issues.

Check with your developers

If you’re not directly responsible for what goes on inside your Magento backend, it might be worth it to check with your developers on what they are doing. Chances are, they could be in the process of deploying new changes to your Magento website which leads to this error.

Manually read the log file

As can be seen in the error page, we will need to check for error log record number xxxxxxx. Error log files of Magento are generated in /var/reports. You will need an FTP client to open the file and read the error log.

Enable exception printing errors 

Enabling exception printing errors can help to quickly troubleshoot your errors and find the problem without having to go into /var/reports each time an error occurs. To enable exception printing error, first you’ll need to switch your Magento mode to developer mode by running:

php bin/magento deploy:mode:set developer

Next, go to /pub/errors and rename this file: local.xml.sample to local.xml. Now refresh your frontend and you should see your error printed like so:

[2020-12-12 22:35:20] 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 /home/public_html/vendor/magento/framework/Code/Reader/ClassReader.php:24)"} []

Now you just need to solve the error displayed on the page. After that, the “There has been an error processing your request” message will disappear.

See more:
Catalog Price Rules not working in Magento 2
Magento 2 Error: One or more indexers are invalid