WordPress powers about 43% of the web, which means its errors are extraordinarily well-documented — but that doesn’t make them any less stressful when your site goes down at the wrong moment. The good news: most WordPress errors come from a plugin or theme conflict, low PHP memory, or a broken file like .htaccess or wp-config.php. Before anything else, clear your cache, deactivate plugins, switch to a default theme, and turn on debugging — that alone fixes most issues.
This guide covers the errors you’re most likely to encounter, what causes them, and exactly how to resolve each one.
Before You Start: Your Universal Troubleshooting Checklist
Run through these steps first, regardless of the specific error you’re seeing. They resolve the majority of WordPress problems in under five minutes:
- Force-refresh the page. Press
Ctrl + F5on Windows orCmd + Shift + Ron Mac to bypass the cached version and load the most recent version of the site. - Clear your cache. Browser or plugin caches can interfere with your site — hit Ctrl+F5 or clear your caching plugin such as W3 Total Cache.
- Deactivate all plugins via file manager. Go to your hosting file manager (like cPanel), rename the “plugins” folder under
wp-contentto “plugins-off,” then check if the error is gone. - Enable debug mode. Add
define('WP_DEBUG', true);to yourwp-config.phpfile.WP_DEBUGenables debug mode, which allows WordPress to display error messages and warnings.
With debug mode on, most problems will announce themselves by name. Once you’ve fixed the issue, disable further error logging by changing define( 'WP_DEBUG', true ); back to define( 'WP_DEBUG', false ); in your wp-config.php file.
1. The White Screen of Death (WSoD)
The White Screen of Death (WSoD) is a common WordPress error. Troubleshooting it can be tricky since there’s no message telling you what caused it. This error often stems from a plugin clash, memory overload, or issues during a site migration.
How to Fix It
- Disable plugins via FTP or file manager. Rename the plugins folder inside the
wp-contentfolder toplugins.disabled. If the white page no longer shows up, it’s a plugin-related issue. Rename it back, then reactivate plugins one at a time to identify the culprit. - Switch to a default theme. Since an incompatible theme can cause the WSoD, switch to a default WordPress theme such as Twenty Twenty. WordPress is smart enough to activate a default theme when the current active theme is deactivated.
- Increase your PHP memory limit. Sometimes the PHP memory limit gets exhausted, resulting in the White Screen of Death and 500 Internal Server errors. Add
define('WP_MEMORY_LIMIT', '256M');to yourwp-config.php. - Roll back to a backup. If you discover a WSoD error soon enough, one of the easiest ways to resolve it is to roll your site back to a recent backup. This can also help you pinpoint when the error started.
2. 500 Internal Server Error
A vague but nasty error code, the 500 error signals server trouble — often a bad .htaccess file. It can also be triggered by a corrupted plugin, a PHP memory limit, or theme code gone wrong.
How to Fix It
- Regenerate your
.htaccessfile. The most common fix is to regenerate your.htaccessfile. Go to Settings » Permalinks in your WordPress dashboard and click “Save Changes.” - Rename the existing
.htaccess. You can try disabling the.htaccessfile by renaming it to something else (e.g.,.htaccess-off). If this works, you’ll need to identify what inside it was causing the issue. - Check your PHP memory limit. If the error only appears in wp-admin, upload a
php.inifile withmemory_limit = 256Mto the/wp-admin/folder. - Check server error logs. Check the
debug.logfile in/wp-content/for specific error messages pointing to the exact file or plugin at fault. - Switch themes. WordPress will kick over to a default theme automatically. If that clears the 500 error, the problem is hiding in your theme’s
functions.phpor template files.
3. Error Establishing a Database Connection
The most common cause of this error is that your database credentials are incorrect. You can change them in your wp-config.php file. This error can also indicate that the database server is down or the database itself is corrupt.
How to Fix It
- Verify credentials in
wp-config.php. Log in to your control panel and locate the MySQL Databases section. Check if the database name in thewp-config.phpfile actually exists. - Repair the database. You can attempt to fix a corrupt database by adding
define('WP_ALLOW_REPAIR', true)to yourwp-config.phpfile, then visitingyourdomain.com/wp-admin/maint/repair.php. Remove the line after the repair completes. - Restore a backup. Ideally, you’ll want to restore a backup of your database to replace the corrupt version.
4. 404 Not Found on Posts and Pages
You can access your homepage fine, but individual posts and pages return a 404 error. This nearly always means your permalink structure is broken — not that the content is actually missing.
How to Fix It
- Resave permalinks. The easiest fix is to go to Settings > Permalinks in your WordPress dashboard and click “Save Changes,” which forces WordPress to refresh your URL structure.
- Flush rewrite rules via WP-CLI. If you have server access, run
wp rewrite flush --hardfrom the command line for an immediate reset. - Check your
.htaccessfile. Ensure the default WordPress rewrite block is present and hasn’t been overwritten by a plugin or manual edit.
5. Too Many Redirects
This error — often displayed as “ERR_TOO_MANY_REDIRECTS” — means your site is caught in an infinite redirect loop. To resolve it, deactivate all your WordPress plugins using SFTP. Then check your WordPress Address and Site Address in settings to make sure they match.
How to Fix It
- Align your URLs. In Settings > General, confirm that WordPress Address (URL) and Site Address (URL) are identical, including the protocol (
http://vshttps://). - Fix mixed SSL settings. Update your WordPress and Site URLs under Settings > General to use
https://if your server has an SSL certificate installed. - Purge all caches. After fixing URLs, clear your browser cache, WordPress caching plugin, and any CDN cache to prevent stale redirect rules from persisting.
6. Memory Exhausted Error
You’ll see a message like: “Fatal error: Allowed memory size of X bytes exhausted.” Low-quality or overloaded shared hosting is a direct cause of memory exhausted errors, connection timeout errors, and maximum execution time exceeded errors.
How to Fix It
- Increase memory in
wp-config.php. Adddefine('WP_MEMORY_LIMIT', '256M');just before the line that reads “That’s all, stop editing!” - Increase via
php.ini. If you have access, setmemory_limit = 256Min your server’sphp.inifile. - Consider upgrading your hosting. Upgrading to a VPS or managed WordPress hosting plan removes most of these limits and resolves errors that cannot be fixed through
wp-config.phpalone. Our WordPress hosting plans are optimised with generous PHP memory limits out of the box.
7. Maximum Execution Time Exceeded
The two most common causes are resource-heavy plugins running complex operations (imports, backups, SEO scans) and shared hosting limits that cap execution time to protect server resources.
How to Fix It
- Increase via
php.ini. Increase your maximum time limit by addingmax_execution_time = 300to yourphp.inifile. - Increase via
wp-config.php. Using cPanel’s File Manager or FTP, find thewp-config.phpin your WordPress root directory and edit it to addset_time_limit(300);. - Identify the heavy plugin. If a backup or import plugin is the culprit, look for a scheduling option that breaks the task into smaller chunks, or use a server-level tool instead.
8. WordPress Stuck in Maintenance Mode
After an update, you see: “Briefly unavailable for scheduled maintenance. Check back in a minute.” WordPress creates a .maintenance file at the start of every update and removes it when done. If the update fails midway, the file stays.
How to Fix It
- Locate and delete the
.maintenancefile in the root folder of your WordPress installation (usuallypublic_html). That’s it — your site will load immediately.
9. 403 Forbidden
A 403 error means the server understood the request but refuses to fulfil it — usually a file permissions problem.
How to Fix It
- Reset file permissions. To fix a 403 Forbidden error, you’ll need to reset your file permissions or generate a new
.htaccessfile. Correct permissions are755for directories and644for files. - Check security plugins. Try disabling your security plugins or hotlink protection settings, as these can mistakenly block access to key WordPress resources.
- Clear cache and cookies. Clear your browser cache and cookies before retesting, as a stale 403 response can be cached by the browser.
10. Plugin or Theme Conflicts After an Update
Outdated or poorly coded themes can trigger errors including the White Screen of Death, 500 Internal Server Errors, and login redirect loops, especially after a WordPress core update changes something the theme relied on.
How to Fix It
- Update one item at a time. Update one item, test your site, then move to the next. This makes the source of any conflict immediately obvious.
- Use a staging environment. Test all updates on a staging site before applying them to production. Many managed hosts — including our own managed WordPress hosting — provide one-click staging environments precisely for this reason.
- Keep a clean default theme installed. Always have a default WordPress theme (Twenty Twenty-Five, etc.) installed as a fallback so WordPress can recover automatically if your active theme fails.
Key Takeaways
- Most WordPress errors trace back to three root causes: plugin/theme conflicts, PHP memory or execution limits, and corrupted files (
.htaccess,wp-config.php, or core files). - Enable
WP_DEBUGfirst. It transforms a cryptic blank screen into a specific, actionable error message. - Isolate before you fix. Disable plugins in bulk, then re-enable one at a time. Never guess — eliminate.
- Backups are your fastest recovery path. A reliable, recent backup turns a catastrophic error into a five-minute restore.
- Your hosting environment matters. Generous PHP memory limits, automatic backups, and staging environments eliminate entire categories of errors before they happen.
Still Stuck? We Can Help.
If you’ve worked through this guide and your WordPress site is still misbehaving, the problem may lie deeper in your server configuration, PHP version compatibility, or database integrity. Our team at 978host specialises in diagnosing exactly these kinds of issues. Whether you need a one-time fix or a fully managed environment where errors like these are handled for you, explore our WordPress hosting plans or contact us directly — we’ll get your site back on track fast.