Categories

Featured templates

Magento 2.x How to enable error reporting

Stacy Martin July 28, 2016
Rating: 5.0/5. From 3 votes.
Please wait...

This tutorial shows how to enable error reporting in Magento 2.x.

When you’re getting a blank page in Magento 2.x or only error number like Error log record number: 469937692171, you can enable error reporting in Magento files following the steps below:

  1. Connect to your server via FTP or use cPanel file manager and find Magento root folder

  2. Open the pub/errors directory of Magento installation. Find the local.xml.sample file inside and rename it to local.xml.

  3. Refresh your site Home page or the page that is giving errors with Ctrl/Cmd+F5 hotkeys to preview errors.

  4. In case errors aren’t displayed, please, open the index.php file located in Magento root folder on server, and add the following code to the bottom of this file:

    error_reporting(E_ALL);
    ini_set('display_errors', 1);
  5. Refresh your site Home page or the page giving errors with Ctrl/Cmd+F5 to preview errors.

    Magento 2.x How to enable error reporting-1
  6. Now, when you can see errors, please, check the sources available at our Help Center or copy the error and use any search engine system to find possible solution of the issue.

Feel free to check the detailed video tutorial below:

Magento 2.x How to enable error reporting
Premium Magento Themes
This entry was posted in Magento Tutorials and tagged error, error reporting, magento2. 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