WordPress powers a significant portion of the web, but no platform is immune to errors. The good news: most WordPress issues — like the White Screen of Death or 500 Internal Server errors — are caused by plugin conflicts, exhausted PHP memory, or bad caching, and you can manually fix the majority of them by clearing your browser cache, disabling faulty plugins via SFTP, or increasing your server execution limits. No developer on speed dial required.
This guide walks through the most common WordPress errors, what causes them, and exactly how to fix them.
1. The White Screen of Death (WSoD)
The White Screen of Death is one of the most common WordPress errors, and it appears due to a host of issues — such as a script on the website exhausting the memory limit, a poorly developed theme or plugin, or problems related to the web hosting server.
How to fix it
- Disable plugins via FTP. Access your files via FTP or File Manager, rename the
wp-content/pluginsfolder toplugins_disabled— if the site loads, rename it back and re-enable plugins one by one to pinpoint the culprit. - Switch to a default theme. Sometimes themes can cause the WSoD. Switch to a default WordPress theme like Twenty Twenty-Three to rule out a theme conflict.
- Increase your PHP memory limit. Low PHP memory limits can prevent WordPress from completing requests. Open your
wp-config.phpfile and add this line near the top:define('WP_MEMORY_LIMIT', '256M'); - Enable debug mode. Enabling debugging can help pinpoint the exact issue. Edit your
wp-config.phpfile and adddefine('WP_DEBUG', true);,define('WP_DEBUG_LOG', true);, anddefine('WP_DEBUG_DISPLAY', false);— this logs errors to adebug.logfile in thewp-contentdirectory that you can review to identify and fix the issues.
2. Error Establishing a Database Connection
This error means your site can’t communicate with its MySQL database, making your entire website inaccessible. WordPress might fail to connect to the database due to incorrect credentials, a corrupted database, server issues, or resource limitations.
How to fix it
- Check your credentials in wp-config.php. The most common fix is verifying and correcting the database credentials —
DB_NAME,DB_USER,DB_PASSWORD,DB_HOST— in yourwp-config.phpfile. - Verify the database exists. Confirm the database exists in cPanel under MySQL Databases.
- Run the built-in repair tool. Add
define('WP_ALLOW_REPAIR', true);towp-config.php, then visityoursite.com/wp-admin/maint/repair.phpto repair your database. Remove that line once the repair is complete. - Re-upload core WordPress files. Corrupted WordPress core files can also cause this error. Download the latest version of WordPress from wordpress.org and replace the core files, leaving
wp-contentandwp-config.phpuntouched.
If the database server itself is down, there’s nothing in your files to fix — contact your host. If you’re on our WordPress hosting, we monitor server health around the clock so this scenario is caught before you even notice it.
3. 500 Internal Server Error
The 500 error is a catch-all server-side failure. You can fix a 500 internal server error by disabling all plugins, checking the .htaccess file, increasing PHP memory limits, and contacting your hosting provider if the issue persists.
How to fix it
- Regenerate .htaccess. Navigate to Settings → Permalinks in your WordPress dashboard and click Save Changes without changing anything. This regenerates a clean
.htaccessfile. - Deactivate all plugins. Deactivate all plugins and re-activate them one by one. If you can’t log into your WordPress dashboard, go to your file manager and navigate to
wp-contentto rename the plugins folder directly. - Increase PHP memory. Raise
WP_MEMORY_LIMITinwp-config.php, or setmemory_limit = 256Minphp.ini.
4. 404 Page Not Found
When a user visits a single post and receives a 404 error, the most common cause is the permalink settings in WordPress. This often happens after migrating a site or switching hosting providers.
How to fix it
- Go to Settings → Permalinks and click Save Changes. This flushes and rebuilds rewrite rules without changing your permalink structure.
- If that doesn’t resolve it, you can fix it by resetting permalinks or updating rewrite rules manually in your
.htaccessfile.
5. Maximum Execution Time Exceeded
This error arises because of an overload condition, commonly on shared web hosting. It means your server is being heavily utilized and is not able to respond to all requests simultaneously.
How to fix it
- The simplest fix is to increase your maximum time limit by adding
max_execution_time = 300to yourphp.inifile. You can also contact your hosting provider to ask about their maximum and if they can increase it for you. - Alternatively, add
set_time_limit(300);to yourwp-config.phpas a fallback.
6. WordPress Stuck in Maintenance Mode
While updating, WordPress drops a .maintenance file in your root folder. If the process dies halfway, the file stays behind. Fix it by deleting .maintenance over FTP and rerunning the update from Dashboard → Updates.
How to fix it
- Connect via FTP or your host’s File Manager.
- Locate and delete the
.maintenancefile in the root of your WordPress install (the same level aswp-config.php). - If updates keep failing, check disk space and file permissions before you blame WordPress itself.
7. Login Page Redirect Loop
You enter your credentials, hit Log In, and immediately land back on the login page — over and over. The three most common causes are a misconfigured HTTPS setup, incorrect WordPress or Site Address URL settings, or a caching plugin serving stale redirect rules.
How to fix it
- Clear your browser cookies and cache. Also, update your WordPress URL settings by navigating to Settings → General. Make sure both the WordPress Address and Site Address fields are correct and consistent (both HTTP or both HTTPS).
- Deactivate your caching plugin via FTP by renaming its folder inside
wp-content/plugins/, then log in and clear all cached files from the dashboard.
8. WordPress Not Sending Email
Contact forms submit, but emails never arrive. This is almost always a server configuration issue, not a WordPress bug.
- The easiest way to fix this is to send all WordPress emails through SMTP (Simple Mail Transfer Protocol). Plugins like WP Mail SMTP or FluentSMTP connect WordPress to a reliable mail provider like Gmail, SendGrid, or Mailgun in minutes.
- Check your spam folder first — sometimes the emails are sending fine but being flagged.
9. Syntax Errors
A syntax error typically appears immediately after editing a PHP file — a theme’s functions.php, a plugin file, or wp-config.php. Look for the error specified in the message. Common issues include missing semicolons at the end of lines, unmatched parentheses, brackets, or braces, and typographical errors in function names or variable names.
How to fix it
- The error message names the file and line number, so undo the edit over FTP and you’re back.
- Use a code editor with syntax highlighting (VS Code, for example) before pasting any PHP into a live site.
- Always edit theme files using a child theme or a staging environment — never directly on production.
The Root Cause Most People Miss: Hosting Quality
Bad hosting causes WordPress errors. Low-quality or overloaded shared hosting is a direct cause of memory exhausted errors, connection timeout errors, and maximum execution time exceeded errors. If you find yourself constantly fighting the same performance-related errors, the fix isn’t in WordPress — it’s the server underneath it.
Our managed WordPress hosting is configured specifically for WordPress workloads, with appropriate PHP memory limits, optimised database connections, and staging environments so you can test changes safely before they go live. If you’re on a generic shared plan and hitting these errors repeatedly, it may be time to move. Check our pricing page to compare plans.
Quick-Reference Troubleshooting Checklist
- Clear your browser cache and any WordPress caching plugins.
- Deactivate all plugins, test, then reactivate one by one.
- Switch to a default WordPress theme to rule out theme conflicts.
- Increase PHP memory limit to at least 256M.
- Check
wp-config.phpfor correct database credentials. - Regenerate
.htaccessvia Settings → Permalinks. - Enable
WP_DEBUGto get a specific error message indebug.log. - Check available disk space and file permissions.
- Contact your host if the issue is at the server or database level.
When to Call In a Developer
The errors above are genuinely fixable without technical expertise. That said, some situations — a hacked site, a botched database migration, a heavily customised theme throwing cascading PHP errors — go beyond a quick FTP fix. Most WordPress issues come down to a plugin or theme conflict, low PHP memory, a damaged .htaccess or wp-config.php file, or weak hosting. If you’ve ruled all of those out and the site is still broken, it’s time to get expert eyes on it.
Our web development team handles WordPress troubleshooting, migrations, security clean-ups, and performance audits. Whether you need a one-off fix or ongoing support, we’re here. Contact us and we’ll take a look — usually same day.