Magento Tutorials

Exception printing is disabled by default for security reasons

What is “Exception printing is disabled by default for security reasons”?

As we have explained in this similar tutorial There has been an error processing your request, this 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.

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 cache folder of Magento.

What it looks like in Magento 1:

there has been an error processing your request

In Magento 2:

magento exception printing

How to solve this?

There are two main ways to solve this error message: (1) clearing your cache and (2) enable printing errors. Now we’ll go into details on each solution.

1. Clearing your cache

Access your Magento installation folder, go to var/cache and delete all the files.

magento cache folder

Then, refresh your Magento site to see if the error message is gone.

Don’t skip this guide to know how to Enable/Disable OR Clear Cache in your Magento 2-based online stores.

2. Enable printing errors

If the above method doesn’t work, then you need to enable printing errors to find out what the exact problems are and solve all of them.

As can be seen in the error page, you will need to check error log record number xxxxxxx. Error log files of Magento are generated in /var/report (Magento 1) and /var/log (Magento 2). You will need an FTP client like Filezilla to open the file and read error log.

You can also enable printing error by navigating to Magento/errors (Magento 1) or /pub/errors/ (Magento 2), you will find a file named local.xml.sample. Rename this file to local.xml. Next, flush Magento cache and reload the error page. Now you will see error displayed as below.

error log

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

If you want to find out more about Magento 1 & 2, we have exclusive tutorials for you to learn all about this amazing platform.

Is it helpful?


A knowledge craver who always strive to be wiser everyday.

Notify of
Most Voted
Newest Oldest
Inline Feedbacks
View all comments
Siyakant chaudhary
Siyakant chaudhary
11 months ago

Good information i have also apply your tips then solve my error.Thank you for sharing.Keep it up

Edouard Tabary
3 months ago

Thanks You ! I was able to restart my site by emptying the cache, for the manipulation of renaming local.xml.sample to local.xml, as I’m not a computer scientist, I’m afraid to take the risk even if it tempts me!

Omowunmi Rachael Ekun
Omowunmi Rachael Ekun
1 year ago

Thank you very much, this worked for me

1 year ago
Reply to  Dom


aejaz khan
aejaz khan
1 year ago

Hey Dom,

Thanks, It’s worked for me.


princy p
princy p
2 months ago

Not working
Same issue

Last edited 2 months ago by princy p