Common WordPress Errors and How to Fix Them (2026 Guide)

Common WordPress Errors and How to Fix Them

January 24, 2026 15 min read Troubleshooting

Every WordPress site owner encounters errors eventually. The key is knowing how to diagnose and fix them quickly. This guide covers the most common WordPress errors and provides step-by-step solutions for each.

Before You Start

Always create a backup before making changes. If you don't have a recent backup and can access your site, create one now. If you can't access your site, ask your host for help with a backup.

White Screen of Death (WSOD)

The dreaded white screen - your site shows absolutely nothing. This is usually caused by a PHP error that WordPress can't display.

[Blank white page - no error message visible]

Common Causes

  • Plugin conflict or faulty plugin
  • Theme error
  • PHP memory limit exhaustion
  • Corrupted WordPress core files

How to Fix

1

Enable debug mode to see the actual error. Add this to wp-config.php:

define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
2

Check the debug log at /wp-content/debug.log for the specific error.

3

Disable plugins via FTP: Rename /wp-content/plugins to /wp-content/plugins_old. If site loads, rename back and disable plugins one by one.

4

Switch theme via database: Update wp_options table, change template and stylesheet to a default theme like twentytwentyfour.

500 Internal Server Error

A generic server-side error that means something went wrong, but the server can't be more specific.

HTTP Error 500
Internal Server Error

Common Causes

  • Corrupted .htaccess file
  • PHP memory limit exceeded
  • Plugin or theme conflict
  • Incorrect file permissions
  • Server configuration issues

How to Fix

1

Rename .htaccess: Via FTP, rename .htaccess to .htaccess_old. If site loads, go to Settings > Permalinks and save to regenerate .htaccess.

2

Increase PHP memory: Add to wp-config.php:

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

Check error logs: Look in /logs/error.log or ask your host where error logs are located.

4

Deactivate plugins: Rename plugins folder as described in WSOD fix.

Error Establishing a Database Connection

WordPress can't connect to your MySQL database. Your site is completely inaccessible.

Error establishing a database connection

Common Causes

  • Incorrect database credentials in wp-config.php
  • Database server is down
  • Corrupted database
  • Database user lacks permissions

How to Fix

1

Verify credentials: Check wp-config.php values match your database details:

define('DB_NAME', 'database_name');
define('DB_USER', 'database_user');
define('DB_PASSWORD', 'password');
define('DB_HOST', 'localhost');
2

Check database server: Contact your host to verify the MySQL server is running.

3

Repair database: Add to wp-config.php, then visit yoursite.com/wp-admin/maint/repair.php:

define('WP_ALLOW_REPAIR', true);
4

Check permissions: Ensure database user has SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER permissions.

PHP Memory Exhausted Error

WordPress or a plugin tried to use more memory than allowed.

Fatal error: Allowed memory size of 67108864 bytes exhausted

How to Fix

1

Increase WordPress memory limit in wp-config.php (add before "That's all, stop editing!"):

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

Increase PHP memory limit in php.ini or .htaccess:

memory_limit = 256M

Or in .htaccess:

php_value memory_limit 256M
3

Contact your host: Some hosts limit memory regardless of these settings. Ask them to increase your limit.

Stuck in Maintenance Mode

You see the maintenance message even though updates finished.

Briefly unavailable for scheduled maintenance. Check back in a minute.

How to Fix

1

Delete .maintenance file: Connect via FTP and delete the .maintenance file in your WordPress root directory.

2

If file isn't visible: Enable "show hidden files" in your FTP client. Files starting with . are hidden by default.

Prevent This Error

Don't navigate away during WordPress updates. Wait for the "Update successful" message before doing anything else.

Parse/Syntax Error

A PHP syntax error, usually from editing theme files incorrectly.

Parse error: syntax error, unexpected '}' in /home/user/public_html/wp-content/themes/theme/functions.php on line 23

How to Fix

1

Read the error message: It tells you exactly which file and line has the problem.

2

Edit via FTP: Connect via FTP, download the file, fix the syntax error, and upload it back.

3

Or restore from backup: If you can't find the error, restore the file from your last backup.

Prevention Tip

Never edit theme files directly. Use a child theme, and always test changes on a staging site first.

Connection Timed Out

The server took too long to respond.

ERR_CONNECTION_TIMED_OUT
This site can't be reached

Common Causes

  • Server overloaded
  • PHP execution taking too long
  • DNS issues
  • Host-level firewall blocking

How to Fix

1

Wait and retry: Could be temporary server load. Try again in a few minutes.

2

Check if it's just you: Use downforeveryoneorjustme.com to see if site is down for everyone.

3

Increase PHP execution time: Add to .htaccess:

php_value max_execution_time 300
4

Contact your host: They can check server logs and identify the actual cause.

404 Errors on Posts/Pages

Pages that should exist return 404 Not Found errors.

404 - Page Not Found
The page you requested could not be found.

How to Fix

1

Refresh permalinks: Go to Settings > Permalinks and click "Save Changes" without changing anything. This regenerates .htaccess.

2

Check .htaccess exists: Ensure the file exists and has proper WordPress rewrite rules.

3

Check mod_rewrite: Ask your host to verify that mod_rewrite is enabled on your server.

Mixed Content Warnings

Your HTTPS site is loading some resources over HTTP, triggering browser warnings.

Mixed Content: The page was loaded over HTTPS, but requested an insecure resource

How to Fix

1

Update WordPress URLs: Go to Settings > General and ensure both WordPress Address and Site Address use https://.

2

Search-replace in database: Use a plugin like Better Search Replace to change all http:// URLs to https:// in your database.

3

Check theme/plugin files: Some hard-coded URLs may need manual updates in theme files.

Image Upload Errors

Unable to upload images to the media library.

"filename.jpg" has failed to upload.
HTTP error. / Unable to create directory.

Common Causes & Fixes

1

Check file permissions: wp-content/uploads should be 755, files 644. Fix via FTP or ask your host.

2

Increase upload limits: Add to .htaccess:

php_value upload_max_filesize 64M
php_value post_max_size 64M
3

Check disk space: Ensure your server hasn't run out of storage.

4

Try a different browser: Sometimes browser extensions interfere with uploads.

MojoShine Handles Most of This: With managed WordPress hosting, many of these errors are prevented automatically. Automatic updates, optimized PHP settings, proactive monitoring, and expert support mean fewer errors and faster fixes when they do occur.

General Troubleshooting Tips

  1. Always backup first - Before making any changes
  2. Enable WP_DEBUG - It reveals the actual error
  3. Check error logs - Server logs show what went wrong
  4. Disable plugins systematically - Find conflicts by elimination
  5. Use a default theme - Rules out theme issues
  6. Clear all caches - Browser, plugin, server-level
  7. Check recent changes - What did you do before the error started?

Skip the Troubleshooting

MojoShine's autonomous hosting prevents most WordPress errors before they happen.

Start Your Free Trial

Frequently Asked Questions

What causes the WordPress white screen of death?

The WordPress white screen of death (WSOD) is usually caused by PHP errors from a faulty plugin or theme, or by exhausting PHP memory. To fix it, enable WP_DEBUG in wp-config.php to see the error, then disable the problematic plugin/theme via FTP, or increase PHP memory limit.

How do I fix "Error establishing a database connection" in WordPress?

This error means WordPress can't connect to the MySQL database. Check that your database credentials in wp-config.php are correct, verify the database server is running, ensure your database user has proper permissions, and check if your database has exceeded its disk space quota.

Why am I getting a 500 Internal Server Error in WordPress?

A 500 Internal Server Error is a generic server-side error. Common causes include corrupted .htaccess file, PHP memory limit exhaustion, plugin conflicts, or server configuration issues. Try renaming .htaccess, increasing memory limits, and disabling plugins to isolate the cause.

How do I fix WordPress stuck in maintenance mode?

WordPress gets stuck in maintenance mode when an update fails to complete. To fix it, connect via FTP and delete the .maintenance file in your WordPress root directory. Then try the update again, making sure not to navigate away during the process.

MojoShine Team

We've debugged thousands of WordPress errors. This guide covers the issues we see most often and the solutions that actually work.