When your WordPress site breaks, it feels like the end of the world. One minute everything's fine, the next you're staring at an error message or blank screen.
Don't panic. Most WordPress errors are fixable, and you don't need to be a developer to sort them out. We'll walk you through the most common problems and exactly how to fix them.
Before You Start: Always Back Up
Before attempting any fixes, create a backup of your site. If you don't have regular backups set up, check our website maintenance checklist to prevent future headaches.
Most hosting providers offer one-click backups. Use them. If something goes wrong during troubleshooting, you can restore your site quickly.
The White Screen of Death
This is WordPress's most dreaded error. Your site loads, but displays nothing but a blank white page.
What causes it: Usually a PHP error, plugin conflict, or theme issue.
Fix #1: Check for Plugin Conflicts
- Access your WordPress dashboard (if possible) or use FTP/cPanel File Manager
- Navigate to
/wp-content/plugins/ - Rename the
pluginsfolder toplugins-off - Check if your site loads now
- If it does, rename back to
pluginsand deactivate plugins one by one to find the culprit
Fix #2: Switch to Default Theme
- Go to
/wp-content/themes/via FTP or File Manager - Rename your active theme folder (add
-offto the end) - WordPress will automatically switch to a default theme
- Check if your site works
Fix #3: Increase Memory Limit
Add this line to your wp-config.php file (before the "That's all, stop editing" line):
ini_set('memory_limit', '256M');
500 Internal Server Error
This generic error message means something's wrong, but WordPress can't tell you what.
What causes it: Corrupted files, plugin issues, or server problems.
Fix #1: Deactivate All Plugins
Same process as the white screen fix above. Plugin conflicts cause many 500 errors.
Fix #2: Replace Core Files
- Download a fresh copy of WordPress from wordpress.org
- Extract the files
- Upload the
wp-adminandwp-includesfolders to your server (overwriting existing files) - Don't upload
wp-config.phpor thewp-contentfolder
Fix #3: Check File Permissions
Incorrect file permissions can trigger 500 errors:
- Folders should be 755 or 750
- Files should be 644 or 640
- wp-config.php should be 600
Your hosting provider can help set these correctly.
Can't Access WordPress Admin
Locked out of your own website? Frustrating, but fixable.
Fix #1: Reset Your Password
- Go to your login page (
yoursite.com/wp-admin) - Click "Lost your password?"
- Enter your username or email
- Check your email for the reset link
Fix #2: Create New Admin User via FTP
Add this code to your theme's functions.php file:
function add_admin_user(){
}
add_action('init','add_admin_user');
Visit your site, log in with the new credentials, then remove this code immediately.
Database Connection Error
WordPress can't connect to your database. Your site shows "Error establishing a database connection."
What causes it: Database server issues, incorrect credentials, or corrupted database.
Fix #1: Check Database Credentials
In your wp-config.php file, verify these details with your hosting provider:
- DB_NAME
- DB_USER
- DB_PASSWORD
- DB_HOST
Fix #2: Test Database Connection
Create a file called testconnection.php with this code:
<?php
$connection = mysql_connect('DB_HOST', 'DB_USER', 'DB_PASSWORD');
if (!$connection) {
die('Connection failed: ' . mysql_error());
}
echo 'Connected successfully';
?>
Upload it to your site root and visit yoursite.com/testconnection.php. If it fails, contact your hosting provider.
Mixed Content Warnings
Your site moved to HTTPS but some elements still load over HTTP, triggering browser warnings.
Fix #1: Update WordPress URLs
In wp-config.php, add these lines:
define('WP_HOME','https://yoursite.com');
define('WP_SITEURL','https://yoursite.com');
Fix #2: Search and Replace URLs
Use a plugin like "Better Search Replace" to find all HTTP references and update them to HTTPS.
Memory Limit Exceeded
WordPress runs out of memory and displays a fatal error.
Quick Fixes:
In wp-config.php:
ini_set('memory_limit', '256M');
In .htaccess:
php_value memory_limit 256M
In php.ini:
memory_limit = 256M
Try each method until one works. Your hosting setup determines which will be effective.
Common Issues and Prevention
Plugin conflicts cause most WordPress errors. Only install plugins you actually need, and keep them updated.
Outdated PHP versions create compatibility problems. Ask your hosting provider about upgrading to PHP 8.1 or newer.
Poor hosting causes many mysterious errors. If you're constantly troubleshooting, consider switching to reliable WordPress hosting designed for WordPress sites.
Lack of maintenance lets small issues become big problems. Regular updates and monitoring prevent most errors before they happen.
When to Call for Help
Try these fixes first, but don't spend hours struggling if:
- You're not comfortable editing files
- The error keeps returning
- Your site handles sensitive data (like customer information)
- Multiple errors appear simultaneously
Professional WordPress maintenance can resolve complex issues quickly and set up monitoring to prevent future problems.
What's Next?
Once your site is working again, focus on prevention:
- Set up regular backups
- Keep WordPress, themes, and plugins updated
- Use a staging site for testing changes
- Monitor your site's performance with our free website audit tool
WordPress errors are scary when they happen, but most have simple solutions. Bookmark this guide for when (not if) you need it again.
The key is staying calm and working through solutions systematically. Your site will be back up and running before you know it.