A critical
error in
WordPress

Does your site only show “There has been a critical error on this website”? Then a plug-in, your theme or the PHP version on your server no longer works properly with the rest. Your copy and photos are not gone. Usually you get your site back by switching off the part that causes the error.

What the message means

Since version 5.2, WordPress shows this message instead of a white screen when the software runs into an error it cannot get around. The best-known causes:

Step 1: check your email

With an error like this, WordPress sends an email about a technical problem to the site's admin address. It says which plug-in or theme caused the error, and has a link to log in to recovery mode. There you switch that part off, and the rest of your site works again.

Step 2: no email? Use your hosting

Log in to your hosting and open the file manager, or use an FTP program. Go to the wp-content folder and rename the plugins folder to, for example, plugins-off. That switches all plug-ins off in one go.

If your site works again, the problem was in one of the plug-ins. Rename the folder back, log in, and switch the plug-ins on again one by one until the error comes back. The last one you switched on is the culprit.

Step 3: look at the theme

If that does not help, do the same with your theme's folder, in wp-content/themes. WordPress then falls back to a default theme, if one is installed. Your site will look different for a while, but you will know whether the theme was the cause.

Step 4: read the error

If you want to know exactly what goes wrong, add these three lines to the wp-config.php file, above the line that tells you to stop editing:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

The errors then go into the debug.log file, in the wp-content folder. Remove the lines again when you are done, or that file keeps growing.

Do not go back to an old PHP version

If a PHP update by your host was the cause, it is tempting to go back to the old version. Do not: after the October PHP flaw an old version is an open door. Have the plug-in that causes the error updated or replaced instead.

Not working out?

Then I will do it for you, by the hour, at €75. If a site falls over like this more often, that is usually a sign that what sits underneath is due for renewal. What that costs is on the pricing page.

Written on 26 October 2026.