Skip to content
WordPress

WordPress Troubleshooting: Fix Common WordPress Errors

A step-by-step method to diagnose WordPress problems, plus quick fixes for the most common errors — from white screens to “WordPress not loading”.

WordPress troubleshooting: wordPress error screen on a laptop next to a checklist and coffee
Quick answer

Most WordPress problems are caused by a plugin, a theme, a server limit or a recent change. To troubleshoot: back up the site, check the error message and your email for WordPress recovery mode, enable debug logging, deactivate all plugins (rename the plugins folder if you cannot log in), switch to a default theme, and re-enable items one by one until the problem returns. Then update, replace or remove the cause.

When WordPress breaks, a calm, methodical approach fixes the vast majority of problems without losing data. Use the method below first, then find your specific error in the table.

The universal WordPress troubleshooting method

01

Back up first

Take a backup of files and database before changing anything, if you can.

02

Note what changed

A plugin update, new theme, PHP version change or code edit is the usual trigger.

03

Check recovery mode

For fatal errors, WordPress emails the admin a recovery-mode link that lets you log in and deactivate the faulty plugin or theme.

04

Turn on debug logging

Add the settings below to wp-config.php and read wp-content/debug.log.

05

Deactivate plugins

From the dashboard, or by renaming wp-content/plugins to plugins-off via SFTP or your host’s file manager.

06

Switch to a default theme

Activate Twenty Twenty-Five (or rename your active theme folder).

07

Re-enable one by one

Turn plugins and your theme back on individually until the error returns — that is the cause.

08

Check the server

Review your host’s error logs, PHP version and resource limits, or ask support.

// wp-config.php — log errors to wp-content/debug.log without showing them to visitors
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

Warning: Turn debugging off again when you are finished, and delete debug.log — it can reveal file paths to anyone who finds it.

Common WordPress errors and quick fixes

ErrorMost likely causeQuick fix
WordPress not loading / site downHosting outage, DNS, expired domain or fatal errorCheck host status and domain renewal; then follow the method above. See 500 errors.
“There has been a critical error on this website”PHP fatal error in a plugin or themeUse the recovery email or debug log; see critical error fix
White screen of deathPHP error or memory exhaustionDebug log, disable plugins, raise memory; see white screen fix
500 Internal Server ErrorCorrupt .htaccess, plugin conflict, server limitsRegenerate .htaccess by saving permalinks; check server logs
Error establishing a database connectionWrong credentials in wp-config.php or database server downCheck DB_NAME, DB_USER, DB_PASSWORD, DB_HOST; contact host. See database error fix
Too many redirectsMismatched site URLs, HTTPS or CDN settingsCheck WordPress Address/Site Address and SSL mode; see redirect loop fix
404 errors on postsPermalink rules missingSettings → Permalinks → Save; see 404 fix
Allowed memory size exhaustedPHP memory limit too low or a heavy pluginIncrease WP_MEMORY_LIMIT; see memory limit
Cannot log inCookies, plugin conflict, wrong URL or passwordClear cookies, reset password, disable plugins; see login problems
Update failed / stuck in maintenance modeInterrupted update or file permissionsDelete the .maintenance file and retry; see update failed
Site is slowHosting, no caching, heavy plugins or imagesSee why WordPress is slow

Use Site Health

Go to Tools → Site Health to see critical issues and recommendations, such as outdated PHP, failed loopback requests or missing modules. The Info tab lists server details your host’s support team will ask for.

When to ask for help

Prevent future problems with a staging site and regular backups.

Keep learning

More in WordPress

WordPress Guides

A practical, step-by-step guide to creating and running a WordPress website — from installation and settings to design, pages, plugins…

Themes

How to choose a fast, well-supported WordPress theme for a business, store or portfolio — plus a shortlist of popular…

Plugins

The essential WordPress plugins by category — SEO, security, backups, caching, forms, ecommerce and business tools — and how to…

Elementor

A beginner-friendly Elementor tutorial: install Elementor, build your first page, set global styles, make it responsive and keep it fast.

WooCommerce

How to set up a WooCommerce store step by step: install WooCommerce, add products, payments, shipping and taxes, and keep…

WordPress Security

Practical WordPress security: updates, logins, roles, hardening, security plugins, backups — and what to do if your WordPress site is…

Latest articles

Related WordPress articles

FAQ

WordPress Troubleshooting questions, answered

Short, honest answers to the questions people ask most about this topic.

Why is my WordPress site not loading?

Common causes are a hosting outage, an expired domain, DNS problems or a PHP fatal error from a plugin or theme. Check your host’s status and domain first, then enable debug logging and disable plugins.

Use the password reset link, clear browser cookies, and if that fails, disable plugins by renaming the plugins folder through your host’s file manager or SFTP. You can also reset the password via phpMyAdmin.

When a plugin or theme causes a fatal error, WordPress pauses it and emails the site administrator a special link to log in and fix or deactivate the problem.

No. Deactivating plugins does not delete posts or pages. Some plugin settings or features may stop working until you reactivate them.

Next step

Keep building your skills

Explore the rest of our WordPress guides, or follow the beginner path step by step.