What does a blank page mean?
A blank page means WordPress stopped before it could draw anything. The cause is often a PHP error. PHP is the programming language WordPress runs on. WordPress hides the error from visitors, so you see only white.
First, find out where the blank page appears:
- Only the front of the site is blank, but the dashboard works.
- Only the dashboard is blank.
- Only one page or post is blank.
- Everything is blank.
This tells you where to look. A blank front with a working dashboard often points to the theme. A blank dashboard often points to a plugin.
Fix 1: Clear the cache
- Clear your browser cache. A cache is a saved copy of pages.
- Clear the cache in any caching plugin on your site.
- Reload the page.
Fix 2: Test the theme
- If you can log in, go to Appearance and then Themes.
- Activate a default theme, such as one named "Twenty Twenty-Four".
- Check the site.
If you cannot log in, rename your theme's folder inside wp-content/themes using File Manager.
Fix 3: Test the plugins
- In File Manager, open
wp-content. - Rename the
pluginsfolder toplugins_off. - Reload your site.
- If it works, rename the folder back to
plugins. - Turn plugins on one at a time to find the problem one.
Fix 4: Read the error
Open wp-config.php and set debug mode like this:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
Errors are now saved in wp-content/debug.log. The last lines usually show the file that failed. Turn debug off when done.
Fix 5: Raise the memory limit
Add this line to wp-config.php:
define( 'WP_MEMORY_LIMIT', '256M' );
This gives WordPress more working space.
Fix 6: Save the permalinks again
Go to Settings, then Permalinks, and click Save Changes. This rebuilds the page address rules.
Quick recap
- A blank page hides a PHP error.
- Note which pages are blank first.
- Test cache, theme and plugins.
- Use the debug log to read the real error.