Blank white page: how to find the hidden error
A completely blank page usually means a PHP error that isn’t displayed. How to reveal it with logs and fix the cause.
On this page
Does this match what you’re seeing?
- The page is completely white with no error
- Viewing the page source shows nothing
- Only some pages are blank
PHP stopped before sending anything, and error display is off (correctly) so visitors see nothing.
WordPress?
Go to WordPress white screen of death: how to fix a blank page.
1. Read the error log
Open System Info & Files › Site Summary / Statistics / Logs for the domain, reload the blank page, and read the newest entries. Also check for error_log files in the site’s folders. How to find PHP errors (error logs and display_errors)
2. Temporarily show errors
If the logs are empty, add to the top of the page’s main PHP file (usually index.php):
<?php
ini_set('display_errors', '1');
error_reporting(E_ALL);Reload, read the error, then remove these lines.
Common causes
| Error | Fix |
|---|---|
| Parse error after an edit | Undo the edit |
Allowed memory size exhausted | “Allowed memory size exhausted” PHP error |
Call to undefined function | “Call to undefined function” PHP error |
Maximum execution time exceeded | “Maximum execution time exceeded” PHP error |
Failed opening required | A missing include file — re-upload the application |
Not PHP?
- An
index.htmlthat’s genuinely empty (0 bytes) after a failed upload: re-upload it. - A JavaScript app that failed to load its script: open the browser console (F12) for errors.
Prefer to follow along?
- Diagnose a 500 Internal Server Error
Intermediate · 20 min
Common questions
Why does my site show a completely blank page?
A blank page is a fatal PHP error with error display switched off — the script stopped before sending anything. Read the PHP error log to see what actually failed; guessing at a blank page is wasted effort.
Spotted something out of date or unclear? Tell us and we’ll fix it.