Skip to main content
All CollectionsWebsiteWebsite Troubleshooting
How to Fix the Blank Page Error
How to Fix the Blank Page Error

Fixing white screen error when your website appears empty

Updated over a week ago

If your website is WordPress-based and it is showing a blank or white screen, check the following video tutorial or find information below for other types of websites:

For custom websites or if you are using a CMS other than WordPress, the most common reason for a blank page is code-related, such as a missing character. For example, a semicolon, a quotation mark, or a bracket. When this happens, instead of an error message, the website will show a blank or empty screen.

To identify the root cause and troubleshoot it, you can try the following alternatives:

  • Enable PHP error reporting: You can get more information by checking any error messages PHP may show. For security reasons, the error display is disabled by default - to enable it, follow these steps: How to turn on PHP error messages

  • Test your code often: Testing each piece of code as you add it will help you identify an error more quickly - it is likely related to the most recent changes applied

  • Try a color-coded editor: Color code will make lines that don't end properly stand out better since you'll see large parts of code in the same color. There are free editors available that include this feature. You can also try our File Editor - it supports syntax highlighting for the most common programming languages

  • Comment out code: You can use the File Editor to comment out the code. A step-by-step approach can help you locate the faulty code:

    1. Comment out most of your code, leaving only the first few lines.

    2. Insert a test echo() statement before the commented section.

    3. Check the output:

      • If the echo message appears, the issue is further down the code.

      • If the blank page persists, the problem lies in the uncommented section.

    4. Move the comment block down to progressively isolate the faulty code.

  • Restore a recent backup: If debugging doesn’t resolve the issue, restoring a recent backup of your website may be the quickest fix. Regular backups help prevent data loss in case of unexpected errors.

By following these steps, you can diagnose and fix blank page errors effectively. If the issue persists, consider checking server logs or consulting a developer for further assistance.

In case you need further help with finding the cause of the blank page or a developer who can fix it right away, you can consider the options available on Fiverr 💡

Did this answer your question?