Categories

Featured templates

Magento. How to display error messages

Ray Taylor February 12, 2015
Rating: 4.0/5. From 5 votes.
Please wait...

This tutorial will show you how to display error messages in Magento.

Magento. How to display error messages

To make the error readable and easier to understand, please do the following:

magento-error-display-1

  1. Open your Magento installation directory. Go to the errors folder.

  2. Rename local.xml.sample file to local.xml.

  3. Refresh the error page in browser.

    magento-error-display-2

  4. Now you can use the error text and search our Help Center or Google for a solution.

However, sometimes renaming the local.xml.sample file is not working. There is another solution which we can use to display errors in Magento:

  1. Open your Magento installation directory. Locate and open index.php file.

  2. Search for error_reporting(E_ALL | E_STRICT); code.

  3. Comment it out like that:

    /*error_reporting(E_ALL | E_STRICT);*/
    
  4. And use the following code instead:

    error_reporting(E_ALL);
    $_SERVER['MAGE_IS_DEVELOPER_MODE'] = true;
  5. Also, locate the following code:

    #ini_set('display_errors', 1);
  6. Uncomment it by removing the # sign, so it looks like that:

    ini_set('display_errors', 1);
  7. Save this file and upload to the server. Reload your website page to see errors.

Now you know how to display error messages in Magento.

Feel free to check the detailed video tutorial below:

Magento. How to display error messages

Ecommerce Magento Templates
This entry was posted in Magento Tutorials and tagged display, error, Magento, message. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket