WordPress White Screen After a Plugin Update: How I Fixed It in 2 Hours
A routine plugin update took a live WooCommerce store down with a white screen: no staging site, no recent backup, orders every day. Here is how I found the cause, got the shop selling again and made sure it couldn't happen the same way twice.
On this page
- The worst possible starting point
- Why the screen is white
- Step 1: Make the error visible, privately
- Step 2: Read what the error actually says
- Step 3: Stop the bleeding first
- Step 4: Fix the real problem
- Step 5: Test the thing that broke, not just the home page
- Step 6: Make sure it can't happen the same way twice
- If you're looking at a white screen right now
- What this taught me
- Is your WordPress site down?
When I was a senior WordPress developer at SEOPage1, one support request taught me more about calm debugging than any tutorial.
A client had clicked Update on a plugin in their WooCommerce store. A second later the whole site was a blank white page. The shop, the checkout and the WordPress admin: all gone. No error, no message, nothing to click.
This is the WordPress white screen of death. It looks like the end of the world, but it is usually one specific error hiding behind an empty page. In this case the store was selling again about 2 hours after the client first got in touch.
Here is exactly how, and what I'd tell anyone staring at a white screen right now.
The worst possible starting point
The store had three things working against it:
- No staging site. The update had gone straight onto the live shop.
- No recent backup. Rolling back the whole site wasn't an option.
- Orders every day. Every hour down was lost sales and customers who might not come back.
In that situation the instinct is to start switching plugins off one by one and hope. I've seen that turn a one-hour fix into a lost afternoon, and sometimes break something else on the way. A white screen nearly always has a precise cause, and WordPress has usually written it down. The job is to read it.
Why the screen is white
A white screen almost always means a PHP fatal error. PHP hit something it couldn't continue past, stopped, and the server sent back an empty page instead of an error message, because showing raw errors to visitors is switched off on a live site. That's the right default for security, but it means the problem is invisible.
Recent versions of WordPress sometimes catch this and show "There has been a critical error on this website", then email a recovery link to the site's admin address. That helps, but only if the error happens where WordPress can catch it, and only if someone actually reads that inbox. Often neither is true.
Step 1: Make the error visible, privately
I connected to the server over SFTP and turned on WordPress's debug log in wp-config.php:
define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false );
The third line matters. It writes errors to a log file without showing them to visitors, so customers don't see file paths and code while you debug.
Then I reloaded the site once and opened wp-content/debug.log. Within a minute there it was: a PHP fatal error, with a file path and a line number.
Step 2: Read what the error actually says
The path pointed into the store's WooCommerce coupon plugin, the one that had just been updated.
The update was calling a WooCommerce function that WooCommerce had deprecated: marked as old, kept for a while for compatibility, then changed. On the store's PHP version, that call was no longer a warning. It was fatal, and one fatal error in one plugin is enough to take down every page, admin included.
That told me two useful things:
- The problem was one plugin, not the site. WordPress core, the theme and the other plugins were fine.
- The fix was small. One outdated call, not a broken database or a hack.
Step 3: Stop the bleeding first
Before fixing anything, I got the shop selling again.
WordPress can't load a plugin it can't find. So, still over SFTP, I renamed the coupon plugin's folder, for example adding -off to the end of its name. WordPress quietly treats the plugin as deactivated, and the site came straight back: shop, checkout and admin, just without coupons.
This is a pause button, not a fix. But it changed the situation completely. The store was taking orders again, and the pressure dropped from "the business is down" to "one feature is missing". That is when good decisions get made.
Step 4: Fix the real problem
I could have left the plugin switched off and handed the problem back. But the client was running coupon campaigns, and customers with codes in their inbox would have hit a checkout that ignored them. That costs sales too, and trust.
So I opened the plugin's code at the line from the log, found the deprecated call, and replaced it with the current WooCommerce function that does the same job. Then I renamed the folder back so WordPress loaded the plugin again.
Step 5: Test the thing that broke, not just the home page
A site loading again doesn't mean it works. I tested the paths that touched the plugin:
- Applying a coupon in the cart
- Checking out with a coupon applied
- A normal order without a coupon
- The coupon screens in the admin
All four worked. The store was fully back, coupons included, about two hours after the first message.
Step 6: Make sure it can't happen the same way twice
A fix that leaves the store exposed to the same accident isn't finished. Before handing it back, I set up three things:
- Daily backups stored away from the server, so a bad update can always be undone
- A staging site, a private copy of the shop where updates are tried first
- A short update routine: back up, update on staging, test the shop, then update live
I also switched the debug log back off. A debug.log left in wp-content can be read by anyone who guesses the address, and it can contain file paths and other details you don't want public.
One honest caveat about patching someone else's plugin: the next update from the plugin's author replaces your change. A direct patch is the right emergency move, but the lasting answer is an update from the author that fixes the call, and staging is what lets you check that update safely before it reaches customers.
If you're looking at a white screen right now
Work through this order:
- Don't panic-click. Every random change makes the real cause harder to find.
- Check the admin email for a WordPress recovery-mode message. It may already name the plugin.
- Turn on the debug log, with
WP_DEBUG_DISPLAYset to false, reload once, and readwp-content/debug.log. - Rename the plugin folder named in the error to get the site back. If the error doesn't name one, rename the whole
pluginsfolder, then bring plugins back one at a time. - Get the site up first, then fix the cause.
- Test the exact feature that broke before calling it done.
- Turn the debug log off again afterwards.
- Set up backups and staging, so the next bad update happens somewhere harmless.
What this taught me
The fix itself was one line of code. What made it a two-hour recovery, rather than a lost day, was order: read the error, restore service, then fix properly, then prevent it. That order works on far bigger problems than a white screen, and it's still how I approach every broken site.
Is your WordPress site down?
If your site has gone white after an update, or keeps breaking when you update, I can help. I fix the cause instead of just switching things off, and I'll set things up so it doesn't happen the same way twice. Get in touch and tell me what you're seeing.