How to fix the white screen in WordPress
Last updated: 31 December 2025
How to fix the white screen in WordPress
You open your WordPress website and see only a white screen. No error message, no content, just nothing. This is one of the most frustrating WordPress problems, but fortunately almost always solvable.
The white screen in WordPress is also called the "White Screen of Death" (WSOD). It happens when a fatal PHP error crashes your website, but WordPress cannot display the error. You only see an empty white screen.
In this guide you'll learn exactly what causes the white screen and how to fix it step by step.
What causes the white screen?
The white screen is usually caused by these issues:
PHP memory too low - WordPress has insufficient memory to load the page. This happens especially on sites with many plugins or large images.
Conflicting plugin - A plugin contains an error or conflicts with another plugin. This often happens right after a plugin update.
Defective theme - Your WordPress theme has a programming error or is not compatible with your WordPress version.
Corrupted core file - A WordPress core file is corrupt, often due to a failed update.
PHP version too old - Your hosting runs an outdated PHP version that is not compatible with your WordPress version or plugins.
Corrupt .htaccess - The .htaccess file contains errors and blocks WordPress.
Step 1: Enable debug mode
The first step is to see what exactly is going wrong. WordPress hides error messages by default, but you can turn them on.
Open wp-config.php in the root of your WordPress installation via FTP or your hosting file manager. Find this line:
define('WP_DEBUG', false);
Change it to:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', true);
Reload your website. You will now probably see an error message instead of a white screen. This message tells you exactly what is wrong.
The errors are also saved in /wp-content/debug.log. You can view this file via FTP.
Step 2: Deactivate all plugins
In 70% of cases the white screen is caused by a plugin. Here's how to test this:
Via FTP/File Manager:
- Log in to your FTP or hosting file manager
- Go to /wp-content/
- Rename the "plugins" folder to "plugins-old"
- WordPress will now automatically deactivate all plugins
- Reload your website
Does your site work again? Then a plugin caused the problem. Rename "plugins-old" back to "plugins". Go to /wp-content/plugins/ and rename each plugin folder one by one to find which plugin causes it.
Test your website each time. When the white screen returns, you've found the culprit.
Step 3: Switch to default theme
If plugins are not the problem, test your theme:
- Log in via FTP to your website
- Go to /wp-content/themes/
- Rename your active theme folder (e.g., "my-theme" to "my-theme-old")
- WordPress will now automatically switch to a default theme
- Reload your website
Does it work now? Then there's an error in your theme. Contact the theme developer or choose a different theme.
Step 4: Increase PHP memory limit
WordPress has 32MB PHP memory by default. This is often insufficient for modern websites. Here's how to increase it:
Option 1: Via wp-config.php
Open wp-config.php and add this line before "That's all, stop editing":
define('WP_MEMORY_LIMIT', '256M');
Option 2: Via .htaccess
Open .htaccess in the root of your site and add:
php_value memory_limit 256M
Option 3: Via php.ini
Some hosts allow you to upload your own php.ini file. Create a php.ini file in the root with:
memory_limit = 256M
Doesn't this work? Then contact your hosting provider to increase the memory limit.
Step 5: Repair corrupt WordPress files
Core WordPress files may be corrupted. Here's how to replace them:
- Download the latest WordPress version
- Extract the ZIP file on your computer
- Delete the wp-content folder and wp-config.php file from the extracted files
- Upload all remaining files via FTP to your website (overwrite the old files)
- This replaces all core files without removing your content or settings
Check if your website works again.
Step 6: Check .htaccess file
A corrupt .htaccess file can also cause the white screen:
- Log in via FTP
- Find .htaccess in the root of your WordPress installation
- Rename it to .htaccess-old
- Go in WordPress to Settings > Permalinks
- Click "Save Changes" without changing anything
- WordPress will now create a new .htaccess file
Test if your site works now.
Step 7: Check your PHP version
Outdated PHP versions can cause compatibility issues. WordPress requires at least PHP 7.4, but PHP 8.0 or higher is recommended.
Check your PHP version in your hosting control panel (often under "PHP settings" or "Select PHP Version"). Upgrade to at least PHP 8.0 if you're running an older version.
Note: test this first on a staging environment if you have one. Some old plugins don't work with new PHP versions.
Step 8: Increase max_execution_time
If your site is complex, WordPress may need more time to execute scripts. Add this to wp-config.php:
set_time_limit(300);
ini_set('max_execution_time', 300);
Or in .htaccess:
php_value max_execution_time 300
This gives WordPress 300 seconds (5 minutes) instead of the default 30 seconds.
Prevention: prevent the white screen
Here's how to prevent the white screen in the future:
Make regular backups - Use a backup plugin that automatically creates daily backups. Then you can always roll back.
Test updates first - Never update directly on your live site. Test updates first on a staging environment or make a backup first.
Use quality hosting - Cheap hosting often has insufficient PHP memory and outdated PHP versions. Check our WordPress hosting comparison for reliable options.
Keep plugins limited - More plugins means more chance of conflicts. Remove plugins you don't use.
Monitor your site - Use uptime monitoring to get immediate notification if your site goes offline.
Update regularly - Keep WordPress, plugins and themes up to date. Old versions contain bugs and security vulnerabilities.
Need help?
Can't solve the white screen? These are your options:
Hosting support - Most WordPress hosting providers offer free support. They can adjust PHP settings and check log files.
Restore via backup - If you have a recent backup, restore your site to a working version.
WordPress developer - For complex problems you can hire a WordPress specialist.
Different hosting - If your current hosting often has problems, consider upgrading to faster WordPress hosting.
The white screen looks dramatic, but is almost always solvable. Work through the steps systematically and you'll find the cause.
Frequently Asked Questions
Is WordPress free?
WordPress itself is free open-source software. You only pay for hosting, a domain name, and any premium themes or plugins you want to use.
How difficult is WordPress to learn?
WordPress is relatively easy to learn. You can master the basic functions within a few hours. Advanced customizations require more time.
Can I move WordPress to a different host later?
Yes, WordPress websites can be moved to a different hosting provider. Most providers offer free assistance for this.
Was this article helpful?
Compare hosting packages directly to find the best choice for your situation.
Related articles
What is web hosting? Explanation for beginners
Discover what web hosting is and how it works. Complete explanation about servers, domains and different hosting types for beginners.
What is VPS Hosting?
VPS hosting explained: what is a Virtual Private Server, who is it suitable for and what are the advantages compared to shared hosting?
What is an SSL Certificate?
Everything about SSL certificates: what is SSL, why do you need it and how do you recognize a secure website? Essential for every website.
What is Uptime in Web Hosting?
What does uptime mean in web hosting? Learn about uptime percentages, SLA guarantees and why 99.9% uptime is important for your website.
How much storage do I need for my website?
Discover how much disk space you really need for your website. Practical guide with examples per website type.