Skip to content

Bits of .NET

Daily micro-tips for C#, SQL, performance, and scalable backend engineering.

  • Asp.Net Core
  • C#
  • SQL
  • JavaScript
  • CSS
  • About
  • ErcanOPAK.com
  • No Access
  • Privacy Policy
Wordpress

WordPress: Recover From a White Screen of Death in 5 Minutes Without a Backup

- 30.08.26 - ErcanOPAK

📝 Rename Folder = Site Back Online

You install a plugin, update a theme, or edit functions.php, and your site turns into a completely blank white page — no error message, nothing. This is WordPress’s White Screen of Death, and it’s fixable even without a backup, in most cases.

🐞 The Problem

Visiting your site (or even /wp-admin) shows a blank white page.
No error text visible. The browser tab may just say the site name
with nothing rendered at all.

🔍 Why This Happens (Cause & Effect)

WordPress by default hides PHP errors from visitors for security --
a fatal PHP error (usually from a plugin, theme, or a bad edit to
functions.php) crashes the page rendering entirely, but WP_DEBUG
being off means you see nothing instead of the actual error message.
The site isn't "gone" -- PHP just stopped executing partway through.

🔍 Step 1 — Turn On Error Display to See the Real Cause

Connect via FTP or your host's File Manager, open wp-config.php,
find this line:
define('WP_DEBUG', false);
Change to:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
Reload the site -- check /wp-content/debug.log for the exact fatal
error and which file/line caused it (turn this back off once fixed!).

🔍 Step 2 — Most Common Cause: Disable Plugins via FTP (No Admin Access Needed)

Connect via FTP/File Manager -> navigate to /wp-content/
Rename the "plugins" folder to "plugins-disabled"
Reload the site -- if it comes back, the crash was a plugin.
Rename it back to "plugins", then rename plugins ONE AT A TIME
inside that folder (e.g. "elementor" -> "elementor-off") until
you find the specific plugin causing the fatal error.

🔍 Step 3 — If a Theme Edit Caused It, Revert via FTP

/wp-content/themes/your-theme/functions.php
Comment out or remove your last edit (the code you just added),
save, re-upload. If you don't have the original, switch the active
theme by renaming the current theme's folder -- WordPress
automatically falls back to a default theme (Twenty Twenty-Four)
when the active theme folder is missing or broken.

🔢 Step 4 — Increase PHP Memory Limit (If the Log Shows “Allowed Memory Size Exhausted”)

In wp-config.php, add near the top:
define('WP_MEMORY_LIMIT', '256M');
Some hosts also require raising it in php.ini or .htaccess:
php_value memory_limit 256M

🛡️ Prevent This Going Forward

1. Never edit functions.php directly on a live site -- use a staging
   site or a child theme, test locally first
2. Install a lightweight plugin like WP Health or keep automatic
   backups (UpdraftPlus) so you always have a one-click rollback
3. Update plugins/themes one at a time, not all at once, so you
   know immediately which update caused a problem if the site breaks

Renaming /wp-content/plugins via FTP is the fastest universal fix for a White Screen of Death — it works even when you’re completely locked out of /wp-admin.

— WordPress Admin

Related posts:

Solution for "utf8mb4 requires a newer client library" error in WordPress

WordPress: Fix a Login Page That Redirects Back to Itself in an Endless Loop

WordPress: Fix a Site Hijacked by a Malicious Redirect on Mobile Devices Only

Post Views: 1

Post navigation

Photoshop: Remove Any Person or Object From a Photo Instantly With Generative Fill
WordPress: Stop Comment Spam Instantly Without Installing a Heavy Plugin

Leave a Reply Cancel reply

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

October 2026
M T W T F S S
 1234
567891011
12131415161718
19202122232425
262728293031  
« Sep    

Most Viewed Posts

  • Get the User Name and Domain Name from an Email Address in SQL (973)
  • How to make theater mode the default for Youtube (952)
  • How to add default value for Entity Framework migrations for DateTime and Bool (939)
  • Get the First and Last Word from a String or Sentence in SQL (847)
  • How to select distinct rows in a datatable in C# (837)
  • How to enable, disable and check if Service Broker is enabled on a database in SQL Server (624)
  • Add Constraint to SQL Table to ensure email contains @ (590)
  • Average of all values in a column that are not zero in SQL (553)
  • How to use Map Mode for Vertical Scroll Mode in Visual Studio (526)
  • Find numbers with more than two decimal places in SQL (468)

Recent Posts

  • CSS: Fix a prefers-color-scheme Media Query That Gets Silently Overridden by a Browser Extension’s Forced Dark Mode
  • Git: Fix a Merge Commit That Silently Drops a File Because Both Branches Deleted It Differently
  • HTML5: Fix a Native Lazy-Loading Image That Never Loads Because It Sits Inside a Hidden Tab Until the User Clicks It
  • The AI Prompt That Traces a Null Reference Exception Back to the Exact Line That First Produced the Null
  • The AI Prompt That Turns a Gym Membership Contract’s Fine Print Into a Plain-English List of Cancellation Steps
  • Photoshop: Fix a Color Profile Mismatch That Makes Printed Output Look Nothing Like What You Saw On Screen
  • WordPress: Fix Search Results That Return Pages From a Theme You Deactivated Months Ago
  • Visual Studio: Fix a Test Project That Builds Fine Alone but Fails to Discover Any Tests After a NuGet Restore
  • ASP.NET Core: Fix a File Upload That Times Out on Slow Connections Only Because Kestrel’s Minimum Data Rate Feature Kicked In
  • JavaScript: Fix an Array Destructuring Default Value That Silently Never Applies Because null Was Passed Instead of Undefined

Most Viewed Posts

  • Get the User Name and Domain Name from an Email Address in SQL (973)
  • How to make theater mode the default for Youtube (952)
  • How to add default value for Entity Framework migrations for DateTime and Bool (939)
  • Get the First and Last Word from a String or Sentence in SQL (847)
  • How to select distinct rows in a datatable in C# (837)

Recent Posts

  • CSS: Fix a prefers-color-scheme Media Query That Gets Silently Overridden by a Browser Extension’s Forced Dark Mode
  • Git: Fix a Merge Commit That Silently Drops a File Because Both Branches Deleted It Differently
  • HTML5: Fix a Native Lazy-Loading Image That Never Loads Because It Sits Inside a Hidden Tab Until the User Clicks It
  • The AI Prompt That Traces a Null Reference Exception Back to the Exact Line That First Produced the Null
  • The AI Prompt That Turns a Gym Membership Contract’s Fine Print Into a Plain-English List of Cancellation Steps

Social

  • ErcanOPAK.com
  • GoodReads
  • LetterBoxD
  • Linkedin
  • The Blog
  • Twitter
© 2026 Bits of .NET | Built with Xblog Plus free WordPress theme by wpthemespace.com