Search Our Database

How to solve Magento error for “Exception printing is disabled”

Last updated on |
by

Whenever you see this error:

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

You can do as following:

1. Locate the root directory where your Magento is installed. Search for “errors” directory.

2. Change the filename of local.xml.sample to local.xml

3. Reload the page where it shows an error message, you will see a full list of the error message – The purpose of rename local.xml is to allow the full error message to be shown.

4. Now, locate magento_directory/lib/Zend/Cache/Backend/File.php and look for:

protected $_options = array(
'cache_dir' => 'null', 

Replace it with:

protected $_options = array(
'cache_dir' => 'tmp/', 

And save the file.

5. Now, go to the Magento root directory and create a new directory with the name “tmp”.

6. Refresh the error page and see if the issue solved.