Skip to content

How to Fix the WordPress White Screen of Death and 500 Errors

WordPress white screen of death – technology event in Cape Town, South Africa
Photo: Discott, CC BY-SA 4.0, via Wikimedia Commons

It’s 9 a.m. on a Monday. You open your website to check an order and see a completely blank white page. Or a grey message that says “500 Internal Server Error”. No warning, no explanation.

Take a breath. This is one of the most common WordPress problems, and in most cases it is fixable in under thirty minutes without hiring anyone. It usually comes down to a plugin, a theme, memory limits or a broken file.

First, what are you looking at?

The “white screen of death” happens when PHP crashes before WordPress can display anything. A 500 error is the server’s generic way of saying “something went wrong and I will not tell you what”. They share the same causes, so the same fixes apply.

Advertisement

Before touching anything, check two things. Is only your site down, or are other sites on the same hosting account down too? And can you still reach /wp-admin? If the dashboard works but the front page is blank, the theme is the likely suspect. If both are dead, start with plugins.

Step 1: Back up before you change anything

Log in to cPanel and use File Manager or the backup tool to grab a copy of your site files and database. If your host runs daily backups, note the latest restore point. Nothing here should destroy data, but a backup means you can relax.

Step 2: Turn on error messages

Open wp-config.php in File Manager and look for the line define('WP_DEBUG', false);. Change it to true. Add define('WP_DEBUG_LOG', true); beneath it. Reload the site and check wp-content/debug.log. The log usually names the exact plugin or file causing trouble, such as “Fatal error in /wp-content/plugins/some-plugin/…”. That saves you a lot of guessing. Switch debugging back off when you finish.

Also check the Errors section or the error_log file in cPanel. It tells the same story.

Step 3: Deactivate all plugins

This solves the majority of cases. Plugin updates that clash with your PHP version or another plugin are the number one cause.

Advertisement
  1. In File Manager, go to wp-content.
  2. Rename the plugins folder to plugins-off.
  3. Reload your website.

If the site comes back, rename the folder back to plugins, then rename the individual plugin folders one at a time, testing after each, until the site breaks again. That’s your culprit. Update it, replace it, or contact its developer.

Step 4: Switch to a default theme

If plugins were not the cause, go to wp-content/themes and rename your active theme’s folder. WordPress will fall back to a default theme like Twenty Twenty-Four if one is installed. If the site loads, the problem is in your theme, often after a manual edit to functions.php. A single missing bracket or stray space is enough to cause a crash.

Step 5: Raise the PHP memory limit

Sites with WooCommerce, page builders and many plugins often run out of memory. Add this line to wp-config.php above the “That’s all, stop editing” comment:

define('WP_MEMORY_LIMIT', '256M');

On cPanel, you can also open Select PHP Version or MultiPHP INI Editor and raise memory_limit. If your hosting plan is very limited, this might not hold, which suggests it’s time to look at a bigger plan.

Step 6: Check your .htaccess file

A corrupted .htaccess file is a classic cause of 500 errors, especially after installing a security or caching plugin. In File Manager (enable “show hidden files”), rename .htaccess to .htaccess-old and reload. If the site works, log in to WordPress, go to Settings → Permalinks, and click Save. WordPress creates a fresh file.

Advertisement

Step 7: Check your PHP version

If your host recently upgraded PHP, or you did, older themes and plugins may not run. In cPanel’s Select PHP Version, try moving to a slightly older supported version (for example from 8.3 to 8.1) and see if the site returns. Then plan a proper update of the incompatible plugin rather than staying on old PHP forever, since old versions stop receiving security fixes.

Step 8: Reinstall WordPress core files

If nothing above works, corrupted core files might be to blame. Download a fresh copy of WordPress from wordpress.org, unzip it, and upload the wp-admin and wp-includes folders over the existing ones. Do not overwrite wp-content or wp-config.php. This replaces the core without touching your content.

When it might not be your fault

Sometimes the server is the issue: disk full, account suspended, resource limits hit, or a hacked site being blocked. Check your cPanel disk usage and resource usage graphs. If you are on cheap shared hosting and you run an M-Pesa checkout with heavy traffic during a promotion, hitting CPU limits is very possible. Also scan for malware, since injected code can trigger crashes.

If you cannot see anything obviously wrong, open a support ticket with your host and give them the exact time the error began and the last change you made. Good hosts will check server logs within minutes.

How to avoid it next time

  • Update plugins one at a time, not all at once, and never on a busy sales day.
  • Use a staging site to test big updates.
  • Keep automatic daily backups, ideally stored off the server.
  • Delete plugins you don’t use.
  • Choose hosting with enough resources and Kenyan-based support you can actually reach.

If your site has gone down and you’re stuck, get in touch with the buydomainkenya.co.ke team. We deal with these errors regularly and can usually point to the cause quickly.

Advertisement

Leave a Reply

Your email address will not be published. Required fields are marked *

Chat now