There has been an error processing your request, Exception printing is disabled by default for security reasons is a common error that you will encounter when working with Magento.
What does the error look like?
In this tutorial we will find out how to debug and fix this error for your Magento store. I will also share with you a little trick to enable error log showing right in the error page.
Cause of the error
We usually see this error 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, which I will explain below.
How to debug the error
As can be seen in the error page, we will need to check error log record number xxxxxxx. Error log files of Magento are generated in /var/report. You will need an FTP client to open the file and read error log.
You can also enable printing error by navigating to Magento/errors, you will find a file named local.xml.sample file, now rename this file to local.xml. Next, flush Magento cache and reload the error page. Now you will see error displayed as below
Clear cache folder
In most cases, you can easily solve this issue by deleting or renaming cache folder of Magento located in var/cache. Go to /var/cache and delete all files/folders inside, as following:
Specify cache folder for Magento
Sometimes when cache folder is not set, the error will appear. To specify cache folder for Magento, navigate to /lib/Zend/Cache/Backend/File.php, find
'cache_dir' => null,
and change it to
'cache_dir' => tmp/,
Then save your file and remember to clear cache.
Next, check if there is /tmp folder in your Magento folder, if not create it in Magento root folder.
Go and check if the error is gone.
Make the error log show right in error page
The error page’s skin file is located in /report/skin/default/index.phtml. You can change style of this page as you want.
To enable showing error right in error page, you can use the following code in index.phtml
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<title>Display error in error page - Magentoexplorer.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<body class=" customer-account-create">
<div class="middle col-1-layout">
<div id="main" class="col-main">
<h3>There has been an error processing your request.</h3>
< ?php if ($action == 'print'): ?>
<div style="padding:8px; border:2px solid #777; background:#9e9e9e;">
<div style="width:100%; overflow:auto;">
< ?php echo $reportData ?>
< ?php echo $reportData ?>
< ?php endif; ?>
Hope this tutorial help you find out the error that make There has been an error processing your request. All the solutions are based on my real experience working with Magento, feel free to let me know if you have any other solution for this error, I will update your solution to the article.