Mubasher

Mubasher / CLIENT ACCESS

Your client area is next.

Contact Mubasher

No login details are collected on this trial.

What are you looking for?

Search services, hosting guides and company news.

← Blog & News

Technology ·

WordPress white screen of death: causes and a safe way to fix it

A blank page on a WordPress site is usually a PHP error that is hidden from view. Here is how to find the cause and recover without making things worse.

Cover illustration: WordPress white screen of death: causes and a safe way to fix it

You open your site and see nothing but a white page. No error, no menu, no content. This is often called the white screen of death, and it is one of the most common WordPress problems. The good news is that the site data is almost always intact. Something is stopping PHP from finishing the page.

The usual causes

  • A plugin that was just installed or updated and is not compatible with your PHP version or another plugin.
  • A theme update or a custom code snippet with a syntax error.
  • The PHP memory limit being too low for what the site is doing.
  • A PHP version change on the server that older code does not support.

Step 1: Make the error visible

Open wp-config.php and set WP_DEBUG to true and WP_DEBUG_LOG to true, and WP_DEBUG_DISPLAY to false. WordPress will then write the real error to wp-content/debug.log. The message names the file and line that failed, which usually points to the plugin or theme at fault. Turn debugging off again when you are done.

Step 2: Disable the suspect without the dashboard

If you cannot log in, use the file manager or FTP. Rename the folder wp-content/plugins to plugins-off. If the site returns, a plugin was the cause. Rename the folder back and then rename single plugin folders one by one to find the culprit. If plugins are not the cause, rename your active theme folder so WordPress falls back to a default theme.

Step 3: Check memory and PHP version

If the log mentions an exhausted memory size, raise the limit in the hosting panel or add a higher WP_MEMORY_LIMIT in wp-config.php. If the problem started right after a PHP version change, switch back to the previous version in the panel, then update the plugin or theme that needs it.

Step 4: Restore if needed

If you cannot find the cause quickly, restore the last good backup of the files and database. This is the reason to keep regular backups and to know how a restore works before you need one.

Avoid it next time

  • Update one plugin at a time and check the site after each one.
  • Keep a recent backup before any update.
  • Remove plugins you no longer use.

Common questions

Will I lose my content?

Usually not. A white screen is normally a PHP error that stops the page from finishing, while your posts and settings stay in the database. Take a backup before you change anything, so a mistake while fixing cannot make things worse.

Why does only the front page or only the dashboard show white?

Different parts of WordPress load different code. If only the dashboard is blank, a plugin that runs in the admin area is a likely cause. If only the front page is blank, look at the active theme or a plugin that runs on public pages.

How do I know the fix worked?

Open the site in a private browser window and test the pages that matter: home, a post, the contact form and the checkout if you have one. Then check debug.log again for new errors. A page that loads can still hide a failing feature.

When to ask for help and what to send

If the site is still blank after the steps above, contact support with the exact time the problem started, the last change you made, the last lines of debug.log, and the PHP version selected for the domain. Do not send passwords. Support can then check the server error log, which sometimes shows a failure that WordPress itself never records.

A realistic example

A shop owner updates three plugins on a Monday morning and the site turns white. Instead of reinstalling, they turn on the debug log and see that one plugin calls a function the new PHP version removed. They rename that plugin's folder, the site returns, and they ask the developer for an update. The whole fix takes ten minutes because they read the error first.

Mistakes to avoid

  • Reinstalling WordPress before reading the error.
  • Deleting plugin folders instead of renaming them.
  • Leaving debug display on for visitors to see.

Quick checklist

  • Make a backup of files and database.
  • Turn on the debug log and read the last error.
  • Rename the plugins folder to test plugins as a group.
  • Raise the memory limit only if the log shows memory exhaustion.
  • Turn debug display off again when you are finished.

If you are stuck, send us the last lines of debug.log at support@mubasher.com.eg and we will help you read it.