Skip to content
RedWebDesign
WordPress security

A critical error or white screen on your WordPress site: causes and fixes

After an update, all that is left of your site is a short error message, or the screen is completely blank. It is alarming, but rarely fatal: in most cases a single plugin, the theme or the PHP version is to blame, and the data is intact. Here is what to do.

Ferenc KulcsárUpdated: 30 October 2026Reading time: about 4 min

An “Under construction” warning sign on a laptop keyboard

What does the error message mean?

WordPress shows a critical error when a piece of PHP code runs into an error that stops the page from being built. Older versions simply showed a white screen. The content, the database and the images are all still there; the code just stops at one point.

The most common causes:

  • A plugin or theme update that conflicts with another plugin or the theme.
  • A PHP version change on the hosting: an old plugin or theme does not work with the newer PHP.
  • Out of memory: the memory limit allowed by the hosting is too low for the plugins.
  • An interrupted update: the site gets stuck on the “briefly unavailable for scheduled maintenance” message.
  • A damaged or modified file, possibly as a result of a hack.

Check your email: recovery mode

Since WordPress 5.2, when a critical error occurs, the system sends an email to the site’s administrator address. It says which plugin or theme caused the error and contains a link to recovery mode. Through it you can log in to the admin and deactivate the faulty plugin while visitors still see the error message.

Check your spam folder too. If the administrator address is an old one nobody uses any more, the email went there.

Step by step

  1. Think about what changed last. Did you update a plugin, the theme or WordPress? Did your host change the PHP version? The error is almost always linked to the last change.
  2. Try recovery mode with the link in WordPress’s email, and deactivate the plugin causing the error.
  3. If there is no email: in the hosting file manager or via FTP, rename the suspect plugin’s folder in the wp-content/plugins directory (for example by adding “-off” to the end). WordPress then deactivates it. If you do not know which one it is, you can rename the whole plugins folder, then reactivate the plugins one by one.
  4. If it is stuck on the maintenance message: delete the file called .maintenance in the root directory, then run the interrupted update again.
  5. If the PHP version changed: you can temporarily switch back to the previous one in the hosting control panel, but this is only a stopgap. The outdated plugin or theme needs to be updated or replaced.
  6. If nothing helps: restore the backup from before the error, if you are sure it is clean, or ask for help.

Other common error messages

  • Error establishing a database connection: WordPress cannot reach the database. The login details may have changed, the database server may be down, or the database may be damaged. First ask your host whether the database server is working.
  • 500 internal server error: often caused by a faulty .htaccess file or too little memory. The server’s error log shows the exact cause.
  • Out of memory (“Allowed memory size exhausted”): the limit can be raised on the hosting or in wp-config.php, but it is worth finding out which plugin uses that much.

How to prevent it

Most of these errors appear after an update, so the answer is not to skip updates but to do them in an orderly way: a backup first, only a few plugins at a time, then a check. For larger sites and online shops it is worth trying them on a test copy first. This is how I do it in my maintenance service.

If the error did not appear after an update and you see unknown files or users on the site, consider a hack too: I wrote about the signs here.

Is your site not coming back? I find the cause of the error, restore the site, and tell you what happened.

Frequently asked questions

Have I lost my data?

Almost never. A critical error stops the code from running; posts, pages, images and orders are still in the database and on the hosting.

Why not just stop updating so there are no errors?

Because skipping updates is a much bigger risk: outdated plugins are the most common way into hacked sites. The answer is orderly updating with a backup and a check.

What is recovery mode?

A feature available since WordPress 5.2: when a critical error occurs, the system emails a link that lets you log in to the admin and deactivate the plugin or theme causing the error.

How long does the fix take?

If a plugin is the cause, it is often done in half an hour. If the PHP version or an outdated theme is the problem, the permanent fix takes more work, but the site can be restored temporarily in the meantime.

Share Facebook LinkedIn
Ferenc Kulcsár
Ferenc Kulcsár I have been building, fixing and running websites for businesses since 2006. About me