Tuesday 1 October 2013

How to solve Magento error – Exception printing is disabled

Source: http://www.ipserverone.info/applications/magento/how-to-solve-magento-error-exception-printing-is-disabled/
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 followed:

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 error message, you will see a full list of 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 Magento root directory and create a new directory with the name “tmp”.
6. Refresh the error page and see if the issue solved.

No comments: