Skip to content
  • There are no suggestions because the search field is empty.

How to Fix a Completely Blank Page When Displayed for Magento

Reveal hidden error messages on blank Magento pages to identify and fix display issues

Table of Contents

Overview

When you visit a specific page in Magento and see nothing but a blank page with no navigation bar or error messages, don't worry. 😊 This guide will help you understand why this happens and how to fix it.

Cause

The blank page usually means an error has occurred, but it's hidden due to Magento's default settings.

Solution

To uncover the hidden error message, you'll need to modify the index.php file. By default, the option to display errors is turned off. Here's how you can change that:

  1. Locate the following line in the index.php file:

    #ini_set('display_errors', 1);
    
  2. Remove the hash symbol to enable error display:

    ini_set('display_errors', 1);
    
  3. Save the file, then reload the page that was blank. Now, you should see the error message that was previously hidden. 💡

  4. Once you've resolved the error, remember to revert the changes to the index.php file to hide errors again.

By following these simple steps, you can troubleshoot blank page issues in Magento quickly and effectively. 😄