.

.

Exception printing is disabled by default for security reasons

There has been an error processing your request. Exception printing is disabled by default for security reasons.”
This is usually because your Magento install has difficulty in knowing where to put your cache files. Thankfully it’s a simple fix.
If you’ve already set up exception logging (see below) you’ll also have the errors and warnings similar to these in your exception.log
Exception message: Could not determine temp directory, please specify a cache_dir manually
exception ‘Zend_Cache_Exception’ with message ‘Could not determine temp directory, please specify a cache_dir manually’ in

How to specify a cache_dir

Locate the file;
/lib/Zend/Cache/Backend/File.php
and find;
‘cache_dir’ => null,
which can be found around line 99.
and change it to;
‘cache_dir’ => ‘tmp/’,

Create a tmp folder

Now create, if it doesn’t already exist, a folder named tmp in the root of your Magento installation.

Enable Magento exception printing

If this doesn’t fix your issue or to get a more detailed report on your error, you can temporarily enable exception printing.
Go to;
errors/local.xml.sample
and rename local.xml.sample to local.xml
It’s best to revert this back to .sample after you’ve solved your issue, as throwing out error messages in the front end is a basic way for hackers to debug your server and file set up.
In most cases errors will be logged in the /errors folder and you won’t have any need to do this.

Enable Magento exception logging

Enabling exception logging via admin, will also help you to get more information on your Magento errors.
In admin go to;
System > Configuration > Developer > Log Settings > Enabled = Yes
The custom locations for the error log files should be fine, but make sure that the folder is writeable.
Future errors should now be stored in the files;
  • exception.log
  • system.log
which are in the {{base_dir}}/var/log folder.


EmoticonEmoticon