Search Our Database

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

Last updated on |
by

Introduction

This guide will help you troubleshoot the “There has been an error processing your request” message that appears in Magento:

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

This error typically occurs when Magento encounters an issue, but the detailed error message is hidden by default for security reasons. By following the steps outlined in this guide, you will be able to display the full error message and take appropriate actions to resolve the issue.

 

Prerequisites

Before proceeding, ensure you meet the following prerequisites:

  • Access to Magento root directory: You need file system access to modify files and folders.
  • Basic familiarity with file editing: You should know how to rename files and modify PHP code.
  • Backup: Always make sure to back up your Magento installation before making any changes.

 

Step-by-Step Guide

Step 1: Locate the Magento root directory

  • Navigate to the directory where your Magento installation is located.
  • Inside the root directory, locate the errors folder.

 

Step 2: Enable full error message display

  • In the errors folder, find the file named local.xml.sample.
  • Rename this file to local.xml.

 

Step 3: Reload the error page

  • Reload the page where the error message appears.
  • You should now see a detailed error message, which will help you diagnose the issue.
  • The purpose of renaming local.xml.sample to local.xml is to enable the full error message display.

 

Step 4: Modify the cache directory in the File.php file

    • Go to the following directory:
    • magento_directory/lib/Zend/Cache/Backend/File.php
    • Open the File.php file and look for this code:
protected $_options = array( 
'cache_dir' => 'null',
    • Replace it with:
protected $_options = array(
 'cache_dir' => 'tmp/',
  • Save the file after making the changes.

 

Step 5: Create a “tmp” directory

  • Go back to the Magento root directory.
  • Create a new folder named tmp.

 

Step 6: Refresh the error page

  • Refresh the error page in your browser to check if the issue is resolved.
  • If the problem persists, the full error message displayed in Step 3 should provide further insight for troubleshooting.

 

Conclusion

By following the steps above, you can enable the display of the full error message in Magento and adjust the cache settings to resolve the issue. Make sure to review the detailed error message and take the necessary actions to fix the problem. Always back up your system before making any changes.

If you need further assistance, feel free to contact our support team at support@ipserverone.com.