Home / Guides / WordPress handbook / Chapter 09

WordPress handbook · Chapter 09 · Troubleshooting

WordPress Error Encyclopedia

Every error message is a clue about which layer failed. This reference lists the errors WordPress administrators meet most often. For each one it gives what the error means, what visitors and administrators see, likely causes in the hosting, plugin, theme, PHP and database layers, a safe diagnostic procedure, ways to fix it, how to verify the fix, and the mistakes to avoid.

Updated · Reference: 49 errors explained · Level: Intermediate

On this page
  1. How to use the encyclopedia
  2. Error reference
  3. Quick triage: which layer failed?

How to use the encyclopedia

  1. Record the exact message and code before changing anything, with a screenshot, the URL, the time and whether you were logged in.
  2. Identify who produced the error page. A plain page with the server name (nginx, Apache, LiteSpeed) or CDN branding means WordPress never ran. A page in your theme's design, or WordPress's own message, means WordPress produced it.
  3. Search or filter below by number (502) or by text (JSON, memory, DMARC).
  4. Follow the diagnostic steps in order. They go from the cheapest and safest checks to the more invasive ones.
  5. Fix one thing, verify, then move on.
Status codes in one sentence each

4xx means the server thinks the request is the problem: wrong URL, not allowed, too big, too many. 5xx means the server or something behind it failed to handle a valid request. A CDN in front of your site may use its own non-standard codes (for example Cloudflare's 520–527), which usually mean "the origin server misbehaved"; check the CDN's documentation for each.

Error reference

49 of 49 entries
HTTP status errors
400Bad RequestHTTP
What it means
The server (or a proxy in front of it) refused the request because it was malformed: invalid syntax, oversized headers or cookies, or invalid encoding.
What visitors see
A plain "400 Bad Request" page, often from Nginx, Apache or the CDN; sometimes "Request Header Or Cookie Too Large".
What administrators see
The same page, often only for their own browser, because admins carry the most cookies.
Common causes
Oversized or corrupted cookies (many plugins each setting cookies), malformed URLs from bad links, invalid characters in query strings, a broken redirect producing an invalid URL.
Hosting causes
Header size limits (large_client_header_buffers in Nginx, LimitRequestFieldSize in Apache), CDN header limits, WAF normalisation rules.
Plugin causes
Plugins setting large cookies (A/B testing, analytics, consent tools); redirect plugins generating malformed URLs.
Theme causes
Rare; links built with unencoded characters.
PHP causes
Rare; PHP itself seldom returns 400. WordPress returns 400 for some invalid REST or admin-ajax.php requests (an unknown AJAX action returns 0 with 400).
Database causes
Not involved.
Safe diagnostic procedure
  1. Try a private window. If it works there, the visitor's cookies are the issue.
  2. Clear cookies for the domain only and retest.
  3. Read the response Server header to identify the responding layer.
  4. For AJAX/REST 400s, inspect the request payload and response body in developer tools.
  5. Check server error logs for "header too large" messages.
Resolution options
Reduce cookie size (remove unneeded cookie-setting plugins); ask the host to raise header buffer limits moderately if legitimate cookies are large; fix malformed links or redirect rules; for admin-ajax.php 400s, check the plugin registering the action is active.
How to verify
The URL loads in a normal browser session with existing cookies; the error log is clean.
What not to do
Do not tell all customers to clear all their cookies as a permanent fix; find the cookie or link producing the problem.
401UnauthorizedHTTP
What it means
Authentication is required and was not provided or was rejected. (Despite the name, 401 is about authentication; 403 is about authorization.)
What visitors see
A browser login prompt (HTTP Basic auth) or a JSON error from the REST API.
What administrators see
REST requests from the editor fail; integrations using application passwords report 401.
Common causes
Password-protected staging (Basic auth) left enabled; application password incorrect or revoked; the Authorization header stripped by the server; REST cookie authentication without a valid nonce (rest_cookie_invalid_nonce is 403, but missing auth on protected routes is 401).
Hosting causes
CGI/FastCGI setups that drop the Authorization header; directory password protection in the hosting panel; WAF stripping headers.
Plugin causes
Security plugins disabling application passwords or REST for unauthenticated users; JWT/OAuth plugins misconfigured.
Theme causes
Not usually involved.
PHP causes
$_SERVER['HTTP_AUTHORIZATION'] missing in PHP even though the client sent it.
Database causes
Revoked or deleted application password records in user meta.
Safe diagnostic procedure
  1. Check whether the 401 is a Basic-auth prompt (server/panel) or a JSON error (WordPress).
  2. For integrations: test with curl -u user:app-password https://example.com/wp-json/wp/v2/users/me.
  3. Confirm the Authorization pass-through rule exists in .htaccess (Chapter 07, A1) on Apache/FPM.
  4. Review security plugin settings for REST and application password restrictions.
Resolution options
Remove leftover directory protection; restore the Authorization header pass-through; create a fresh application password for the integration's service user; adjust REST restrictions narrowly.
How to verify
The users/me REST call returns the expected user; the integration syncs.
What not to do
Do not disable authentication on endpoints to make an integration work, and do not use an administrator's personal password in integrations.
403ForbiddenHTTP
What it means
The server understood the request and refuses to fulfil it: access is denied by permissions, a rule, a firewall, or WordPress capability checks.
What visitors see
"403 Forbidden", "Access denied", a CDN or firewall block page, or WordPress's "Sorry, you are not allowed to access this page".
What administrators see
Blocked admin actions, "The link you followed has expired" (a 403 from failed nonce checks), saving settings blocked by a WAF.
Common causes
File/directory permissions too strict; missing index file with listing disabled; deny rules in .htaccess/Nginx; WAF or security plugin block; IP or country blocks; hot-link protection; expired nonces; role/capability problems.
Hosting causes
ModSecurity rules, host firewalls, CDN WAF and bot rules, suspended accounts, ownership changes after migrations.
Plugin causes
Security plugin firewall rules or IP blocks; plugins restricting wp-admin or the REST API; membership plugins restricting content.
Theme causes
Rare; theme-level access restrictions or custom login pages.
PHP causes
PHP cannot read files due to ownership (server returns 403 or 500); open_basedir restrictions.
Database causes
Corrupted wp_user_roles option or user capabilities (users get "not allowed" for everything), including after a table prefix change.
Safe diagnostic procedure
  1. Identify the responder from the block page (CDN, server, security plugin, or WordPress).
  2. Check the relevant log for the request: CDN security events, ModSecurity audit log, security plugin log.
  3. Check permissions: directories 755, files 644, correct owner.
  4. For "link expired", check whether the page was cached or left open over 12–24 hours.
  5. For capability errors, check the user's role and the wp_user_roles option.
Resolution options
Correct permissions/ownership; adjust or narrowly except the specific rule; unblock incorrectly blocked IPs; exclude form pages from caching; repair roles (a role-editor tool or restoring the option from backup).
How to verify
The request succeeds; logs show no further blocks for that path; other protections still work.
What not to do
Do not set permissions to 777, and do not disable the entire WAF or security plugin to fix one false positive.
404Not FoundHTTP
What it means
The server could not find anything at the requested URL.
What visitors see
The theme's 404 page (WordPress handled it) or a plain server 404 page (the server handled it before WordPress).
What administrators see
Inner pages 404 after a migration; new custom post types 404; media files missing.
Common causes
Deleted or moved content without redirects; broken permalink rewrite rules; missing .htaccess or Nginx try_files; plugin providing a route was deactivated; wrong site URL; files missing after migration.
Hosting causes
AllowOverride None (Apache ignores .htaccess); Nginx without try_files; document root pointing at the wrong folder.
Plugin causes
Custom post type or endpoint registered by a deactivated plugin; rewrite rules not flushed after activation; redirect plugins misconfigured.
Theme causes
Missing 404.php (cosmetic); theme registering custom post types (switching theme makes them 404).
PHP causes
Not usually involved.
Database causes
Wrong home/siteurl; corrupted rewrite_rules option.
Safe diagnostic procedure
  1. Is the 404 page the theme's or the server's? A server page means the request never reached WordPress.
  2. If only the home page works: check .htaccess/try_files, then resave permalinks.
  3. For a single URL: check whether the content exists, its slug, and its status.
  4. Check access logs for the most frequent 404s; a redirect plugin's 404 log helps too.
Resolution options
Resave permalinks or wp rewrite flush; restore rewrite rules; add 301 redirects for moved content; reactivate or replace the plugin that provided the route; correct URLs after migration with wp search-replace.
How to verify
Affected URLs return 200; moved URLs return a single 301; Search Console 404 reports decline.
What not to do
Do not redirect all 404s to the home page; search engines treat that as a "soft 404" and users lose context.
405Method Not AllowedHTTP
What it means
The URL exists, but does not accept the HTTP method used (for example POST to a static file, or DELETE blocked by the server).
What visitors see
Form submissions fail with a 405 page.
What administrators see
Block editor or REST actions using PUT/PATCH/DELETE fail; integrations report 405.
Common causes
Server or WAF blocking non-GET/POST methods; a form posting to a cached static page; a CDN only allowing certain methods to the origin; a REST route not registered for that method.
Hosting causes
Nginx serving a cached HTML file for a POST; WAF method allowlists; some hosts blocking PUT/DELETE (WordPress can fall back to POST with an X-HTTP-Method-Override header in some clients).
Plugin causes
Static page caching serving forms; security plugins blocking methods; REST route registered only for GET.
Theme causes
Forms with an incorrect action URL.
PHP causes
Not usually involved.
Database causes
Not involved.
Safe diagnostic procedure
  1. Inspect the request method, URL and response headers in developer tools.
  2. Check whether the response came from a cache or static file.
  3. For REST, query /wp-json/ to see the methods the route supports.
Resolution options
Exclude form endpoints from static caching; allow required methods in the WAF/server for /wp-json/; fix form actions.
How to verify
The same request succeeds with the original method.
What not to do
Do not allow every method on every path; open only the methods WordPress needs on the endpoints that need them.
408Request TimeoutHTTP
What it means
The server gave up waiting for the client to finish sending the request.
What visitors see
Uploads or form submissions on slow connections fail.
What administrators see
Large media uploads fail on poor connections.
Common causes
Slow client networks; very large uploads; idle keep-alive connections closed by the server.
Hosting causes
Short client_body_timeout/client_header_timeout (Nginx) or RequestReadTimeout (Apache mod_reqtimeout); load balancer idle timeouts.
Plugin causes
Not usually involved.
Theme causes
Not involved.
PHP causes
max_input_time can cause similar failures during upload parsing.
Database causes
Not involved.
Safe diagnostic procedure
  1. Reproduce with developer tools network throttling.
  2. Check web server error logs for client timeouts.
  3. Compare failure time with configured timeouts.
Resolution options
Raise body-read timeouts moderately for upload paths; offer chunked or direct-to-storage uploads for large files.
How to verify
Large uploads succeed on throttled connections.
What not to do
Do not raise all timeouts to very high values globally; slow-request attacks exploit generous timeouts.
413Content Too LargeHTTP
What it means
The request body exceeds a size limit. RFC 9110 renamed it from "Payload Too Large", and it was earlier called "Request Entity Too Large".
What visitors see
Uploads or large form submissions fail with "413 Request Entity Too Large" or a CDN error.
What administrators see
Media uploads, theme/plugin ZIP uploads or imports fail.
Common causes
File larger than the smallest limit in the chain: CDN, Nginx client_max_body_size, Apache LimitRequestBody, ModSecurity body limit.
Hosting causes
All the limits above are usually host-controlled.
Plugin causes
Not the cause, but upload plugins may display the error.
Theme causes
Not involved.
PHP causes
PHP's own limits (upload_max_filesize, post_max_size) produce WordPress/PHP errors rather than a 413.
Database causes
Not involved.
Safe diagnostic procedure
  1. Identify the responding layer from the error page and Server header.
  2. Compare file size with each layer's limit (Chapter 04 size table).
Resolution options
Raise the responsible limit to match your application limit; use the upload troubleshooting entry for details.
How to verify
Upload just under the intended limit succeeds.
What not to do
Do not set unlimited body sizes.
429Too Many RequestsHTTP
What it means
The client exceeded a rate limit.
What visitors see
A rate-limit page, often from the CDN, host or security plugin; repeated actions (search, login, checkout) blocked.
What administrators see
Locked out after bulk actions; API integrations throttled; WordPress.org API 429s during updates from shared IPs.
Common causes
Rate limits set too tight; many users behind one IP (offices, mobile carriers); bots; an integration polling too often; editors triggering many AJAX requests.
Hosting causes
Host-level rate limiting, CDN rules, shared outbound IPs hitting third-party API limits.
Plugin causes
Security plugin rate limits; plugins calling external APIs too frequently (the 429 comes back from the third party).
Theme causes
Themes making repeated AJAX calls (infinite scroll, live search).
PHP causes
Not involved.
Database causes
Not involved.
Safe diagnostic procedure
  1. Determine direction: is your site returning 429 to visitors, or receiving 429 from an external API (check plugin logs)?
  2. Find the rule in CDN/security logs and its threshold.
  3. Check whether affected users share an IP.
Resolution options
Tune thresholds per endpoint; key limits on more than IP where possible; cache or reduce frequency of outbound API calls; honour Retry-After headers.
How to verify
Normal usage patterns pass; abusive bursts still trigger the limit.
What not to do
Do not remove rate limits from login and checkout entirely.
500Internal Server ErrorHTTP
What it means
A generic error: something failed on the server and it could not give a more specific answer.
What visitors see
"500 Internal Server Error" (server page), or WordPress's "There has been a critical error on this website".
What administrators see
The same, sometimes with a recovery-mode email.
Common causes
PHP fatal errors; invalid .htaccess directives; wrong file permissions; PHP exhausted memory; corrupted core files; php_value in .htaccess on FPM.
Hosting causes
Unsupported directives, AllowOverride restrictions, suEXEC permission checks (group/world-writable files rejected), resource limits killing processes.
Plugin causes
Fatal errors after updates, PHP-version incompatibility, conflicts.
Theme causes
Fatal errors in functions.php or templates.
PHP causes
Fatal errors, parse errors, memory exhaustion, missing extensions.
Database causes
Usually surfaces as a database connection error instead; certain corrupted options can cause fatal errors.
Safe diagnostic procedure
  1. Read the web server error log first: .htaccess problems are recorded there, not in PHP logs.
  2. Read the PHP error log; the file path in the fatal error points to the plugin or theme.
  3. Temporarily rename .htaccess to test whether it is the cause.
  4. Enable WP_DEBUG_LOG to a private path if no PHP error is logged.
Resolution options
Fix or remove the offending directive; deactivate the plugin named in the fatal error (rename its folder or wp plugin deactivate); switch theme; correct permissions; reinstall core files (wp core download --force --skip-content).
How to verify
Pages load; error logs show no new fatal errors.
What not to do
Do not reinstall WordPress over the site or delete wp-content; do not chmod 777 to "fix permissions".
501Not ImplementedHTTP
What it means
The server does not support the functionality required (usually an HTTP method it does not recognise).
What visitors see
Rare; a plain error page when submitting forms or using an app.
What administrators see
REST requests with uncommon methods fail; WebDAV-style tools fail.
Common causes
Unusual HTTP methods blocked by the server or WAF; old proxies; some hosts treating blocked methods as 501.
Hosting causes
Server or WAF configuration; a ModSecurity rule may also produce 501 on some hosts.
Plugin causes
Plugins or apps sending non-standard methods.
Theme causes
Not involved.
PHP causes
Not involved.
Database causes
Not involved.
Safe diagnostic procedure
  1. Check the method and response source in developer tools or the integration's logs.
  2. Ask the host whether ModSecurity rules return 501 for blocks on their platform.
Resolution options
Use standard methods; ask the host to allow the needed method for the specific path, or to adjust the security rule.
How to verify
The request succeeds.
What not to do
Do not enable arbitrary methods globally.
502Bad GatewayHTTP
What it means
A proxy or gateway (CDN, Nginx, load balancer) received an invalid response, or no response, from the upstream server (PHP-FPM, Apache, origin).
What visitors see
"502 Bad Gateway" from Nginx or a CDN-branded page; often intermittent.
What administrators see
Same; long admin operations fail.
Common causes
PHP-FPM not running or crashed; wrong socket path; PHP worker killed (segfault, memory, request_terminate_timeout); origin down; response headers too large for proxy buffers.
Hosting causes
PHP-FPM service failures, worker limits, OOM killer, origin unreachable from the CDN, firewall blocking CDN IPs.
Plugin causes
Plugins causing PHP segfaults (rare) or sending huge headers (cookies).
Theme causes
Rare.
PHP causes
FPM pool crashed, socket missing, extension segfaults, opcode cache issues.
Database causes
Indirect: a hung database makes PHP workers hang until killed.
Safe diagnostic procedure
  1. Check whether the error is from the CDN (origin unreachable) or from Nginx (PHP unreachable).
  2. Read the Nginx error log: "connect() to unix:/run/php/... failed", "upstream prematurely closed connection", "upstream sent too big header".
  3. Check the PHP-FPM log and service status; look for "max_children" and "exited on signal".
  4. Check system memory and OOM messages.
Resolution options
Restart PHP-FPM (host); correct socket configuration; raise proxy buffers for large headers; fix the crashing extension or plugin; reduce memory pressure; allow CDN IPs through the origin firewall.
How to verify
Error rate drops to zero in access logs; FPM log stable.
What not to do
Do not just keep restarting services without finding why they crash.
503Service UnavailableHTTP
What it means
The server is temporarily unable to handle the request: overloaded, in maintenance, or rate-limiting.
What visitors see
"503 Service Unavailable", a host "resource limit reached" page, or WordPress's maintenance message.
What administrators see
Same; admin may be unreachable during spikes.
Common causes
PHP workers or process limits exhausted; shared hosting resource limits; WordPress .maintenance file; server maintenance; DDoS or bot spikes; backups or scans saturating resources.
Hosting causes
CloudLinux LVE limits (entry processes, CPU, memory), host maintenance, load balancer with no healthy backends.
Plugin causes
Heavy plugins under load, cron storms, backup and scan jobs.
Theme causes
Heavy uncached theme features.
PHP causes
Worker pool saturated; slow requests holding workers.
Database causes
Slow or locked database holding workers.
Safe diagnostic procedure
  1. Check whether the page is WordPress maintenance (.maintenance file in root) or a server/host page.
  2. Check host resource graphs and FPM logs for the time.
  3. Review access logs for traffic spikes and their sources.
  4. Correlate with scheduled jobs (backups, scans, imports).
Resolution options
Delete a stale .maintenance file; block or challenge abusive traffic at the edge; improve caching; reschedule heavy jobs; fix slow plugins; increase plan resources if legitimate traffic exceeds capacity.
How to verify
No 503s under normal and peak load; resource graphs below limits.
What not to do
Do not disable caching or security to "reduce load"; that usually increases it.
504Gateway TimeoutHTTP
What it means
A proxy or gateway did not receive a timely response from the upstream server.
What visitors see
"504 Gateway Timeout" after a long wait, or a CDN timeout page (Cloudflare uses its own code 524 for origin timeouts).
What administrators see
Imports, exports, bulk edits, updates or report pages time out.
Common causes
Long-running PHP requests; slow external API calls; slow database queries; exhausted workers queueing requests; timeouts shorter in the proxy than in PHP.
Hosting causes
fastcgi_read_timeout, proxy timeouts, CDN origin timeout (often about 100 seconds), overloaded servers.
Plugin causes
Plugins making slow remote calls during page generation; heavy reports; imports running in a web request.
Theme causes
Theme features making remote calls (Instagram feeds, fonts) without caching.
PHP causes
Slow code; max_execution_time longer than the proxy timeout means PHP keeps working after the visitor has an error.
Database causes
Slow queries, table locks during backups or OPTIMIZE TABLE.
Safe diagnostic procedure
  1. Note how long the request takes before failing; match it to the layer's timeout.
  2. Check the PHP-FPM slow log for stack traces of slow requests.
  3. Use Query Monitor on a staging copy to find slow queries and HTTP calls.
  4. Check whether the timeout only happens for specific URLs or site-wide (site-wide suggests worker exhaustion).
Resolution options
Move long jobs to background processing; cache remote calls; fix slow queries; reduce outbound timeout values in plugins; raise proxy timeouts modestly where legitimately needed.
How to verify
Affected operations complete in normal time or run in the background with progress reporting.
What not to do
Do not raise every timeout to many minutes; long-held workers turn one slow page into a site-wide outage.
WordPress errors
There has been a critical error on this websiteWordPress
What it means
WordPress's fatal error handler caught a PHP fatal error and replaced the broken page with a generic message (behaviour introduced in WordPress 5.2).
What visitors see
"There has been a critical error on this website." Sometimes with a "Learn more about troubleshooting WordPress" link.
What administrators see
The same message plus "Please check your site admin email inbox for instructions". An email titled "Your Site is Experiencing a Technical Issue" names the plugin or theme and contains a recovery-mode link.
Common causes
A fatal PHP error in a plugin, theme or mu-plugin: after an update, a PHP version change, a missing dependency, or a conflict.
Hosting causes
PHP version changed by the host; extension removed; file permissions changed.
Plugin causes
Most common cause: incompatible update, duplicate class or function, missing parent plugin for an add-on.
Theme causes
Errors in functions.php; child theme requiring a newer parent.
PHP causes
Fatal errors, TypeErrors under PHP 8, memory exhaustion.
Database causes
Rarely: a corrupted option a plugin unserializes and then uses wrongly.
Safe diagnostic procedure
  1. Check the admin email for the recovery link and the named extension.
  2. Read the PHP error log for the "PHP Fatal error" line; the file path identifies the plugin or theme.
  3. If no log: add define('WP_DEBUG', true); define('WP_DEBUG_LOG', '/private/path/debug.log'); define('WP_DEBUG_DISPLAY', false); and reproduce.
  4. Use recovery mode (the emailed link) to log in with the broken extension paused.
Resolution options
Deactivate the named plugin (recovery mode, wp plugin deactivate slug, or rename its folder), then update, roll back, or replace it. For themes, switch to a default theme. Report the full error to the developer.
How to verify
The page loads; the PHP log shows no new fatal errors; the paused extension is either fixed or replaced.
What not to do
Do not delete the plugin's folder (you lose its settings files and the chance to roll back), and do not leave WP_DEBUG_DISPLAY on in production.
White screen of death (blank page)WordPress
What it means
PHP stopped before producing output and error display is off, so the browser receives an empty page. Since WordPress 5.2 most fatals show the critical-error message instead, so a pure white screen suggests the error happened before WordPress's handler loaded, or the handler is disabled.
What visitors see
A completely blank page, sometimes only on certain URLs.
What administrators see
Blank wp-admin, or blank screens after saving.
Common causes
Fatal errors very early (in wp-config.php, a drop-in, or an mu-plugin); memory exhaustion; WP_DISABLE_FATAL_ERROR_HANDLER set; output buffering issues from optimisation plugins.
Hosting causes
PHP crashes, resource-limit kills, broken OPcache.
Plugin causes
Early-loading plugins, caching drop-ins (advanced-cache.php), minification output buffers.
Theme causes
Template errors on specific page types.
PHP causes
Parse errors (a stray character in an edited file), memory exhaustion.
Database causes
Rare.
Safe diagnostic procedure
  1. Check the PHP and web server error logs.
  2. View page source: truly empty, or HTML that fails to render (a CSS/JS issue)?
  3. Check recently edited files (wp-config.php, functions.php) for syntax errors.
  4. Rename wp-content/advanced-cache.php and object-cache.php temporarily.
  5. Deactivate plugins in halves (Chapter 10).
Resolution options
Correct the syntax error; remove the broken drop-in or plugin; raise memory if genuinely needed.
How to verify
Pages render; logs clean.
What not to do
Do not edit live PHP files in the dashboard editor; one typo causes exactly this.
Error establishing a database connectionWordPress
What it means
PHP could not connect to the database server, or could not authenticate.
What visitors see
A plain page with "Error establishing a database connection".
What administrators see
The same; in wp-admin WordPress may instead report "One or more database tables are unavailable" if it connects but tables are damaged.
Common causes
Wrong DB_NAME, DB_USER, DB_PASSWORD or DB_HOST (after migration or password change); database server down; too many connections; disk full; user lacking privileges on the database.
Hosting causes
Database service crashed or restarted, out of memory, hit max_connections, or moved host name; account suspended.
Plugin causes
Plugins opening extra connections or long-running queries exhausting connections.
Theme causes
Not involved.
PHP causes
Missing mysqli extension after a PHP change (gives a different message).
Database causes
Corrupted tables, crashed server, full disk, wrong grants.
Safe diagnostic procedure
  1. Confirm the credentials in wp-config.php match the hosting panel's database user and database.
  2. Test the connection from the server: wp db check or mysql -u user -p -h host dbname.
  3. Check the host status page and database server logs; check disk space.
  4. If it is intermittent under load, check for "Too many connections".
Resolution options
Correct credentials; restart or repair the database (host); free disk space; grant privileges; reduce connection pressure through caching. If tables are damaged, see Chapter 08.
How to verify
Site loads consistently; wp db check passes.
What not to do
Do not run repair tools before taking a backup, and do not leave WP_ALLOW_REPAIR enabled.
Briefly unavailable for scheduled maintenance. Check back in a minute.WordPress
What it means
WordPress found a .maintenance file in the root, which it creates during updates and normally deletes afterwards.
What visitors see
That message, indefinitely.
What administrators see
The same, including in wp-admin.
Common causes
An update was interrupted (timeout, closed browser tab, memory error), leaving .maintenance behind.
Hosting causes
Timeouts or resource limits during updates.
Plugin causes
A plugin update failed mid-way.
Theme causes
A theme update failed mid-way.
PHP causes
Execution time or memory exhausted during update.
Database causes
Not involved.
Safe diagnostic procedure
  1. Look for .maintenance in the WordPress root (it is a hidden dotfile; enable "show hidden files").
  2. Check which update was running (dashboard Updates screen, plugin versions, PHP log).
Resolution options
Delete .maintenance (or wp maintenance-mode deactivate). Then check the interrupted component: re-run the update, or reinstall it (wp plugin install slug --force).
How to verify
Site loads; the interrupted component shows the correct version and works.
What not to do
Do not ignore the half-finished update; partially updated plugins can cause fatal errors later.
Maximum execution time of N seconds exceededWordPress
What it means
A PHP script ran longer than max_execution_time and was stopped.
What visitors see
A critical-error page or a blank page on a slow page.
What administrators see
Imports, exports, updates or bulk actions fail with the fatal error.
Common causes
Long-running operations in a web request; slow external calls; very slow queries; infinite loops in plugin code.
Hosting causes
Low execution limits on shared plans; slow, overloaded servers.
Plugin causes
Importers, backup plugins, image optimisers, page builders rendering huge pages.
Theme causes
Rare: theme demo importers.
PHP causes
The max_execution_time setting.
Database causes
Slow queries contribute to the time.
Safe diagnostic procedure
  1. The error log names the file where time ran out; check which plugin it belongs to.
  2. Use Query Monitor and the FPM slow log to see what consumed the time.
Resolution options
Run heavy tasks via WP-CLI (no time limit by default) or in background batches; fix slow code paths; raise the limit modestly for admin-only operations if justified.
How to verify
The operation completes; no fatal errors.
What not to do
Do not set max_execution_time = 0 for web requests.
Allowed memory size of N bytes exhaustedWordPress
What it means
A request needed more memory than PHP's memory_limit allowed.
What visitors see
Critical-error page or blank page.
What administrators see
Admin pages, uploads or reports fail; sometimes only wp-admin.
Common causes
Large data loaded at once; big image processing; inefficient plugins; low limits.
Hosting causes
Low hard caps on shared hosting.
Plugin causes
Reporting, importers, page builders, plugins loading all posts or orders.
Theme causes
Heavy page-builder themes.
PHP causes
The memory_limit setting; leaks in long requests.
Database causes
Huge autoloaded options consume memory on every request.
Safe diagnostic procedure
  1. Note the limit in the message (268435456 bytes = 256 MB) and the file path.
  2. Check whether WordPress constants (WP_MEMORY_LIMIT, WP_MAX_MEMORY_LIMIT) and PHP agree.
  3. Profile peak memory on staging with Query Monitor.
Resolution options
Fix the cause (pagination, batching, a better plugin); raise limits modestly only where justified and within server capacity (Chapter 06).
How to verify
Peak memory comfortably below the limit for the affected pages.
What not to do
Do not set huge limits (2G, -1) to make the error go away.
The theme is missing the style.css stylesheetWordPress
What it means
WordPress cannot find a valid theme header in style.css at the top level of the uploaded theme.
What visitors see
Not shown to visitors (it is an installation error), unless the active theme's folder is broken, which makes the site fall back to a default theme.
What administrators see
"The package could not be installed. The theme is missing the style.css stylesheet."
Common causes
Uploading the wrong ZIP (a marketplace bundle containing the theme ZIP plus documentation); a nested folder inside the ZIP; uploading a plugin as a theme.
Hosting causes
Upload size limits truncating the ZIP (you'd usually see a different error).
Plugin causes
Not involved.
Theme causes
Malformed package or missing header comment.
PHP causes
The ZIP extension missing can cause extraction failures.
Database causes
Not involved.
Safe diagnostic procedure
  1. Open the ZIP locally: style.css with a Theme Name: header must be in the theme's top folder.
  2. For marketplace downloads, look for an inner "installable" ZIP.
Resolution options
Upload the correct inner ZIP, or upload the extracted folder via SFTP to wp-content/themes/.
How to verify
Theme appears under Appearance → Themes with its name and screenshot.
What not to do
Do not download themes from unofficial sources to work around a broken package.
Plugin update failedWordPress
What it means
WordPress could not download, unpack or replace a plugin during an update.
What visitors see
Usually nothing, unless the plugin was left half-updated or deactivated.
What administrators see
"Update failed", "Could not create directory", "Download failed", "The package could not be installed", or "Plugin update failed" with a rollback notice.
Common causes
File permission problems; disk space; licence problems for premium plugins; download blocked by firewall; timeouts; PHP version requirement not met.
Hosting causes
Outbound firewall blocking WordPress.org or vendor servers; ownership mismatches (WordPress asks for FTP credentials); disk quota.
Plugin causes
Premium plugin licence expired or domain not registered; vendor server down.
Theme causes
Not involved.
PHP causes
Timeouts, memory, missing zip extension.
Database causes
Not involved.
Safe diagnostic procedure
  1. Read the exact error message.
  2. Check disk space and permissions on wp-content/plugins and wp-content/upgrade.
  3. Try wp plugin update slug to see detailed output.
  4. For premium plugins, check the licence status.
Resolution options
Fix ownership and space; renew or reconnect the licence; update via WP-CLI or upload the new version manually (replace the folder; settings in the database are preserved).
How to verify
Plugin shows the new version; functionality works; no leftover folders in wp-content/upgrade.
What not to do
Do not delete the plugin first and then try to reinstall a newer version; some plugins remove data on deletion.
Theme update failedWordPress
What it means
WordPress could not update a theme.
What visitors see
Usually nothing; possibly a broken design if the theme was partially replaced.
What administrators see
"Update failed" messages on the Themes or Updates screens.
Common causes
As for plugins: permissions, disk, licence, connectivity, PHP requirements; also edited theme files (customisations directly in a parent theme are overwritten).
Hosting causes
Permissions, firewall, disk quota.
Plugin causes
Not usually involved.
Theme causes
Premium licence; custom code in the parent theme.
PHP causes
Timeouts, memory, PHP version requirement.
Database causes
Not involved.
Safe diagnostic procedure
  1. Read the error; check permissions and space; try wp theme update slug.
  2. Compare parent theme files with the vendor's original to find direct edits that would be lost.
Resolution options
Move customisations into a child theme first; then update via dashboard, WP-CLI or manual upload.
How to verify
New version active; design intact on key templates.
What not to do
Do not edit parent theme files; use a child theme.
Automatic update failedWordPress
What it means
A background update (core, plugin, theme, or translation) did not complete.
What visitors see
Usually nothing; occasionally maintenance mode stuck.
What administrators see
An email "Some plugins have failed to update" or "Your site has updated to WordPress X / failed"; Site Health reports "Background updates are not working as expected".
Common causes
WP-Cron not running; version control folders (.git) detected, which make WordPress skip core auto-updates; AUTOMATIC_UPDATER_DISABLED or DISALLOW_FILE_MODS set; filesystem not writable; a fatal error after the update triggered a rollback.
Hosting causes
Managed hosts that disable WordPress auto-updates in favour of their own; permission models.
Plugin causes
Plugins that disable updates; fatal errors after the update.
Theme causes
Same as plugins.
PHP causes
Timeouts, memory.
Database causes
Cron schedule corrupt.
Safe diagnostic procedure
  1. Check Site Health's background-updates test.
  2. Check whether cron runs (wp cron test, wp cron event list).
  3. Search wp-config.php for update constants.
  4. Read the failure email; WordPress names what failed and whether it rolled back.
Resolution options
Fix cron; remove unintended constants; correct permissions; resolve fatal errors in the updated extension, then update again.
How to verify
Site Health passes; next auto-update completes.
What not to do
Do not disable auto-updates permanently to stop the emails; fix the cause.
REST API error (Site Health: "The REST API encountered an error")WordPress
What it means
WordPress could not call its own REST API, or the API returned an unexpected result.
What visitors see
Usually nothing directly; front-end features using the REST API may fail.
What administrators see
Site Health critical issue; block editor failures; "Publishing failed"; WooCommerce admin screens not loading.
Common causes
Security rules blocking /wp-json/; plugins disabling REST for logged-out users; loopback requests blocked; PHP notices printed into responses; permalinks set to "Plain" combined with server issues; basic auth on staging.
Hosting causes
Firewalls blocking the server's requests to itself (loopback); WAF rules on JSON bodies.
Plugin causes
Security plugins restricting the REST API; plugins outputting whitespace or notices.
Theme causes
Whitespace or output before <?php in theme files.
PHP causes
Displayed errors corrupting JSON output.
Database causes
Not usually involved.
Safe diagnostic procedure
  1. Visit /wp-json/ in a browser: valid JSON expected.
  2. Read Site Health's exact error (status code, cURL error).
  3. Developer tools: inspect failing REST requests from the editor.
  4. Check security plugin REST settings and WAF logs.
Resolution options
Allow /wp-json/ for authenticated users; fix loopback blocking with the host; turn off error display; remove stray output.
How to verify
Site Health REST and loopback tests pass; the editor saves.
What not to do
Do not disable the REST API entirely.
WordPress editor not loadingWordPress
What it means
The block editor (or a page builder's editor) fails to initialise.
What visitors see
Not visible to visitors.
What administrators see
A blank editor screen, an endless spinner, "The editor has encountered an unexpected error", or a builder stuck on its loading screen.
Common causes
JavaScript errors from plugins; REST API blocked; optimisation plugins processing admin scripts; outdated plugins incompatible with the current editor; browser extensions; CDN caching admin assets.
Hosting causes
WAF rules blocking editor requests; memory limits for large pages.
Plugin causes
Block libraries, editor add-ons, optimisation plugins applying to the admin.
Theme causes
Theme editor styles or scripts with errors; block theme theme.json errors.
PHP causes
Memory exhaustion on very large posts; notices corrupting REST responses.
Database causes
Corrupted post content can trigger block validation errors (the editor loads but shows invalid blocks).
Safe diagnostic procedure
  1. Open the browser console and note the first error and the script path.
  2. Try another browser or a private window without extensions.
  3. Use Health Check troubleshooting mode to disable plugins for your session only.
  4. Test the REST API (see previous entry).
Resolution options
Update or replace the plugin named in the console error; exclude the admin from optimisation; fix REST access.
How to verify
The editor loads and saves a test post.
What not to do
Do not install the Classic Editor as a permanent workaround without understanding the underlying error.
Updating failed. The response is not a valid JSON response.WordPress
What it means
The editor sent a REST request and got something that is not JSON: an HTML error page, a login page, a redirect, or JSON with PHP notices printed in front of it.
What visitors see
Not visible.
What administrators see
That exact message when saving, publishing or uploading in the block editor.
Common causes
WAF or security plugin blocking the request (returns HTML); PHP warnings displayed; mixed HTTP/HTTPS site URLs causing redirects; permalinks/rewrite problems making /wp-json/ 404; upload limits.
Hosting causes
ModSecurity false positives on post content (code snippets, SQL-like text often trigger them); CDN challenges on admin requests.
Plugin causes
Security plugins, plugins printing notices.
Theme causes
Output before headers in theme files.
PHP causes
display_errors on.
Database causes
Not usually involved.
Safe diagnostic procedure
  1. Developer tools → Network → the failing wp-json request → Response tab: read what came back instead of JSON.
  2. If it is a firewall page, find the rule in the WAF log.
  3. If it is a 404, resave permalinks; if it is a redirect, check home/siteurl schemes.
Resolution options
Narrow WAF exception for authenticated editor requests; disable error display; fix site URLs and permalinks.
How to verify
Saving the same content succeeds.
What not to do
Do not disable the WAF entirely.
Mixed content warningsWordPress
What it means
An HTTPS page loads resources (images, scripts, styles, iframes) over HTTP. Browsers block or warn about them.
What visitors see
No padlock or a "Not fully secure" notice; missing images; broken styles or scripts (active mixed content is blocked).
What administrators see
Console warnings "Mixed Content: The page at ... was loaded over HTTPS, but requested an insecure resource".
Common causes
Hard-coded http:// URLs in content, theme options, widgets or CSS after moving to HTTPS; siteurl/home still HTTP; external resources only available over HTTP.
Hosting causes
Proxy/CDN TLS termination making WordPress think requests are HTTP, so it generates HTTP URLs.
Plugin causes
Plugins storing absolute URLs; page builders caching CSS with HTTP URLs.
Theme causes
Hard-coded URLs in theme files or options.
PHP causes
$_SERVER['HTTPS'] not set behind a proxy.
Database causes
Old http:// URLs throughout posts and options.
Safe diagnostic procedure
  1. Console lists each insecure URL.
  2. Search the database: wp search-replace 'http://example.com' 'https://example.com' --dry-run shows the count.
  3. Check WordPress Address and Site Address settings.
Resolution options
Set both URLs to HTTPS; run serialization-safe search-replace; regenerate builder CSS; configure proxy HTTPS detection; replace HTTP-only external resources.
How to verify
No mixed-content console messages on key templates.
What not to do
Do not use a plain SQL REPLACE(), which breaks serialized data; avoid relying on "rewrite on the fly" plugins as a permanent fix.
Too many redirects (ERR_TOO_MANY_REDIRECTS)WordPress
What it means
The browser followed a redirect loop (A→B→A...) and gave up.
What visitors see
"This page isn't working. example.com redirected you too many times."
What administrators see
Often wp-admin or login loops specifically.
Common causes
HTTPS redirects behind a proxy (origin thinks the request is HTTP, redirects to HTTPS, proxy sends HTTP again); conflicting www/non-www rules between WordPress, server and CDN; CDN "Flexible" SSL with server HTTPS redirects; redirect plugin rules looping; cookie problems causing login loops.
Hosting causes
CDN SSL mode, server-level redirects in panels.
Plugin causes
Redirect, SSL and security plugins; multilingual plugins redirecting by language.
Theme causes
Rare.
PHP causes
is_ssl() false behind a proxy.
Database causes
home and siteurl disagree with server redirects (for example www versus non-www).
Safe diagnostic procedure
  1. curl -sIL https://example.com/ shows each hop and which layer sends it (x-redirect-by header, CDN headers).
  2. Check the CDN SSL mode (use Full/Strict, not Flexible).
  3. Compare home/siteurl with server and CDN canonical-host rules.
Resolution options
Make all layers agree on one scheme and host; set the CDN to encrypt to the origin; teach WordPress to trust X-Forwarded-Proto from your proxy (in wp-config.php) if required; remove duplicate redirect rules.
How to verify
Each URL variant reaches the canonical URL in one hop.
What not to do
Do not keep adding redirect rules to fix a loop; remove the conflicting ones.
Permalink problems (posts and pages return 404)WordPress
What it means
WordPress's pretty URLs are not being routed to index.php, or the stored rewrite rules are stale.
What visitors see
404 on every page except the home page, or on specific post types.
What administrators see
Same; "Plain" permalinks work.
Common causes
Missing or overwritten .htaccess block; mod_rewrite disabled or AllowOverride None; Nginx missing try_files; rewrite rules not flushed after registering post types; slug conflicts.
Hosting causes
Server configuration after migration.
Plugin causes
Plugins registering post types without flushing; security plugins damaging .htaccess.
Theme causes
Themes registering post types.
PHP causes
Not involved.
Database causes
Corrupted rewrite_rules option.
Safe diagnostic procedure
  1. Check .htaccess contains the WordPress block (Apache) or the server block has try_files (Nginx).
  2. Switch to Plain permalinks briefly: if that works, rewriting is the problem.
  3. wp rewrite list shows registered rules.
Resolution options
Resave permalinks or wp rewrite flush --hard; restore the WordPress block; ask the host to enable mod_rewrite/AllowOverride or add try_files.
How to verify
Posts, pages, archives and custom post types load.
What not to do
Do not switch production to Plain permalinks permanently; it changes every URL.
Missing media files (broken images)WordPress
What it means
Attachment records exist but the files cannot be served at their URLs.
What visitors see
Broken image icons or empty spaces.
What administrators see
Grey thumbnails in the Media Library.
Common causes
Files not copied during migration; URLs pointing to the old domain; offload plugin deactivated; CDN rewrite misconfigured; files deleted by clean-up or security tools; case-sensitivity differences between servers.
Hosting causes
Storage reset (ephemeral containers), permission changes, hot-link protection.
Plugin causes
Offload, CDN and optimisation plugins.
Theme causes
Themes referencing image sizes that were never generated.
PHP causes
Not usually involved.
Database causes
Old URLs or wrong _wp_attached_file paths.
Safe diagnostic procedure
  1. Open a broken image URL directly: 404 (file missing), 403 (blocked) or wrong host?
  2. Check the file exists on disk or in the bucket.
  3. Search for the old domain in the database.
Resolution options
Restore files from backup; correct URLs with search-replace; reconfigure or restore the offload plugin; regenerate thumbnails (wp media regenerate --only-missing).
How to verify
Media Library thumbnails and front-end images load.
What not to do
Do not delete attachment records to make errors go away.
Image processing failuresWordPress
What it means
WordPress could not create resized versions of an uploaded image.
What visitors see
Large originals loading slowly, or missing thumbnails in layouts.
What administrators see
"Post-processing of the image failed likely because the server is busy or does not have enough resources"; "The server cannot process the image".
Common causes
Memory or time limits; Imagick/GD missing or lacking format support (WebP, AVIF, HEIC); corrupted image files; too many registered image sizes.
Hosting causes
Old or limited image libraries; Imagick resource policies.
Plugin causes
Plugins registering many image sizes; optimisers processing on upload.
Theme causes
Themes registering many image sizes.
PHP causes
memory_limit, max_execution_time.
Database causes
Not involved.
Safe diagnostic procedure
  1. Site Health → Info → Media Handling shows the editor and supported formats.
  2. PHP log at upload time.
  3. Try the same image smaller, or in another format.
Resolution options
See the upload troubleshooting entry Image processing failure.
How to verify
Thumbnails generate for new uploads.
What not to do
Do not disable image sub-sizes site-wide without checking what the theme needs.
Scheduled task failures (missed schedule)WordPress
What it means
Scheduled events (publishing, emails, backups, clean-up, Action Scheduler jobs) did not run on time.
What visitors see
Scheduled posts not appearing; newsletter or renewal emails late.
What administrators see
"Missed schedule" labels on posts; Site Health warning about scheduled events; Action Scheduler showing past-due actions.
Common causes
WP-Cron not triggered (low traffic, DISABLE_WP_CRON set without a system cron); loopback requests blocked; long events blocking others; fatal errors in an event callback.
Hosting causes
Firewalls blocking loopback; system cron not configured; full page caching that never reaches PHP.
Plugin causes
Plugins scheduling too many events; failing callbacks.
Theme causes
Rare.
PHP causes
Fatal errors or timeouts inside callbacks.
Database causes
A huge or corrupted cron option.
Safe diagnostic procedure
  1. wp cron event list and look for overdue events.
  2. wp cron test checks spawning.
  3. Run due events manually: wp cron event run --due-now, and watch for errors.
  4. Tools → Scheduled Actions for Action Scheduler failures.
Resolution options
Set up a real system cron (see the WP-Cron entry); fix failing callbacks; remove orphaned events from removed plugins.
How to verify
Events run on time over 24 hours; no past-due actions.
What not to do
Do not delete the whole cron option; you lose core schedules (they are recreated, but plugin events may not be).
WP-Cron problemsWordPress
What it means
WordPress's pseudo-cron, which runs scheduled events when visitors load pages, is unreliable, too slow, or too heavy.
What visitors see
Occasional slow page loads (when a visit triggers heavy events); late scheduled content.
What administrators see
Same as scheduled task failures; high CPU at random times.
Common causes
Low traffic means no triggers; high traffic means many spawn attempts; heavy events inside web requests; page caching preventing PHP from running.
Hosting causes
Loopback blocked; no system cron available on some plans.
Plugin causes
Heavy cron jobs (backups, imports, sync).
Theme causes
Rare.
PHP causes
Timeouts.
Database causes
Bloated cron option.
Safe diagnostic procedure
  1. wp cron event list --fields=hook,next_run_relative,recurrence.
  2. Check for DISABLE_WP_CRON and whether a system cron exists.
Resolution options
Disable visitor-triggered cron and run it from the system scheduler every 5 minutes:
define( 'DISABLE_WP_CRON', true );
*/5 * * * * cd /path/to/site && wp cron event run --due-now --quiet
(or request wp-cron.php with curl if WP-CLI is unavailable).
How to verify
Events run on schedule; no cron-related load spikes from visitors.
What not to do
Do not set DISABLE_WP_CRON without creating the system cron job, or nothing scheduled will ever run.
Ecommerce errors
Checkout not loadingEcommerce
What it means
The checkout page fails to render, spins indefinitely, or cannot update totals and payment fields.
What visitors see
Endless spinner on order review; blank payment section; "Place order" does nothing; "There was an error processing your order".
What administrators see
Same; WooCommerce logs and the browser console show errors.
Common causes
JavaScript errors (optimisation, conflicts); failed update_order_review or Store API requests; cached checkout; gateway scripts blocked by CSP or ad blockers; PHP fatal errors in shipping or tax calculations.
Hosting causes
WAF blocking checkout AJAX; CDN caching; slow servers timing out.
Plugin causes
Optimisation, gateway, shipping-rate, checkout-field and multi-currency plugins.
Theme causes
Outdated WooCommerce template overrides (WooCommerce → Status shows "outdated copies").
PHP causes
Fatal errors in AJAX responses.
Database causes
Corrupted sessions; broken shipping zone configuration.
Safe diagnostic procedure
  1. Console and Network tabs on checkout as a guest.
  2. WooCommerce → Status → Logs (fatal-errors log and gateway logs).
  3. Check checkout is excluded from caching and optimisation.
  4. Troubleshooting mode with only WooCommerce and the gateway active; default theme.
Resolution options
Exclude checkout from optimisation and caching; update or replace the conflicting plugin; update theme template overrides; allow checkout endpoints in the WAF.
How to verify
Complete test orders as guest and customer with each payment method.
What not to do
Do not test with real cards on a broken checkout repeatedly; use the gateway's test mode.
Cart empty unexpectedlyEcommerce
What it means
Items added to the cart disappear between page loads or at checkout.
What visitors see
"Your cart is currently empty" after adding items; cart count resets.
What administrators see
Abandoned checkout reports rise.
Common causes
Cached cart pages; session cookies not set or rejected; www/non-www or HTTP/HTTPS host switches splitting cookies; session clean-up issues; security plugins stripping cookies.
Hosting causes
Server or CDN caches ignoring WooCommerce cookies; cookie-stripping proxies.
Plugin causes
Caching, security, multilingual or multi-currency plugins changing domains or cookies.
Theme causes
Custom mini-cart code.
PHP causes
Session handling errors in logs.
Database causes
woocommerce_sessions table issues; object cache evicting sessions.
Safe diagnostic procedure
  1. Developer tools → Application → Cookies: check wp_woocommerce_session_* is set and keeps the same domain.
  2. Check cache headers on cart pages.
  3. Confirm one canonical host and scheme.
Resolution options
Exclude cart/checkout/account and WooCommerce cookies from caches; enforce a canonical host; fix the stripping plugin.
How to verify
Cart persists across pages, login and browser restarts (within session lifetime).
What not to do
Do not shorten session lifetimes as a fix.
Payment gateway unavailableEcommerce
What it means
A payment method does not appear at checkout, or reports it is unavailable.
What visitors see
Expected payment option missing; "No payment methods available".
What administrators see
Gateway shows as enabled in settings but not at checkout.
Common causes
Currency or country not supported by the gateway; minimum or maximum order amounts; test/live keys missing or invalid; HTTPS required; incompatible checkout (block vs classic) with an old gateway plugin; API outage.
Hosting causes
Outbound connections to the payment API blocked.
Plugin causes
Plugins filtering available gateways (conditional payments); old gateway versions.
Theme causes
Template overrides of the payment section.
PHP causes
Missing extensions (curl, openssl, json).
Database causes
Corrupted gateway settings.
Safe diagnostic procedure
  1. Gateway logs (enable debug logging in its settings).
  2. Check currency, country and amount rules.
  3. Verify API keys in the gateway's dashboard and the provider's status page.
Resolution options
Correct keys and modes; adjust availability rules; update the gateway for block checkout compatibility; open outbound access.
How to verify
The method appears and completes a test transaction.
What not to do
Do not paste live secret keys into support tickets or emails.
Duplicate ordersEcommerce
What it means
One purchase creates two or more orders, or customers are charged twice.
What visitors see
Two confirmation emails; double charges.
What administrators see
Pairs of near-identical orders seconds apart.
Common causes
Double-clicks with slow checkout responses; customers retrying after a timeout; webhook retries processed as new orders; integration sync creating duplicates; gateway redirect returning twice.
Hosting causes
Slow servers making customers resubmit.
Plugin causes
Two gateway plugins for one provider; order-sync integrations without idempotency.
Theme causes
Checkout button not disabling on submit (custom templates).
PHP causes
Timeouts after the payment succeeds but before the response returns.
Database causes
Lock contention slowing order creation.
Safe diagnostic procedure
  1. Compare timestamps, payment intent/transaction IDs and order notes.
  2. Check gateway and webhook logs for repeated deliveries.
Resolution options
Speed up checkout; ensure the gateway uses idempotency keys and current versions; remove duplicate gateway plugins; make integrations idempotent.
How to verify
Stress test with double-clicks and slow network; one order per payment.
What not to do
Do not delete duplicates without refunding or reconciling the payment provider first.
Webhook delivery failureEcommerce
What it means
Inbound (provider → site) or outbound (WooCommerce → external system) webhooks are not delivered successfully.
What visitors see
Orders stuck "Pending payment"; delayed confirmation.
What administrators see
Provider dashboards showing failed deliveries; WooCommerce webhooks status "Disabled" after repeated failures.
Common causes
Firewall or bot challenges blocking provider IPs; redirects on the webhook URL; invalid signature secret; site errors (500) on the endpoint; timeouts; outbound target down.
Hosting causes
WAF, CDN bot management, origin firewall, slow responses.
Plugin causes
Security plugins blocking POSTs; caching the endpoint.
Theme causes
Not involved.
PHP causes
Fatal errors in webhook handlers.
Database causes
Locking delays.
Safe diagnostic procedure
  1. Provider delivery log: response status and body.
  2. Server access log for the provider's requests.
  3. WooCommerce → Settings → Advanced → Webhooks → delivery logs.
Resolution options
Use the exact final URL; exempt the webhook path from challenges; fix the signing secret; fix handler errors; re-enable disabled webhooks and resend failed events from the provider.
How to verify
Test events return 2xx and update orders.
What not to do
Do not disable signature verification to make deliveries succeed.
Product stock not synchronisingEcommerce
What it means
Stock levels differ between WooCommerce and connected systems (ERP, POS, marketplaces).
What visitors see
Out-of-stock items purchasable, or in-stock items unavailable.
What administrators see
Mismatched counts; oversold orders.
Common causes
Several systems writing stock; failed sync jobs; Action Scheduler backlog; webhook failures; caching stock displays; variations not mapped.
Hosting causes
Cron not running; outbound blocks.
Plugin causes
Sync connectors, inventory plugins, cache.
Theme causes
Not involved.
PHP causes
Timeouts in sync jobs.
Database causes
Lookup tables out of date (wc_product_meta_lookup).
Safe diagnostic procedure
  1. Check the connector's logs and Action Scheduler for failed or past-due sync actions.
  2. Compare stock history notes on a sample product.
Resolution options
Single source of truth; fix cron and failing jobs; regenerate lookup tables (WooCommerce → Status → Tools).
How to verify
A test sale on each channel updates all others.
What not to do
Do not run bulk SQL stock updates; they skip hooks, caches and lookup tables.
Order emails not arrivingEcommerce
What it means
WooCommerce generates order emails, but they are not sent or not delivered.
What visitors see
No order confirmation; customers contact support.
What administrators see
No new-order notifications.
Common causes
Email disabled in WooCommerce settings; site using PHP mail() with poor deliverability; SPF/DKIM/DMARC failures; SMTP errors; emails queued via Action Scheduler not running; recipient spam filtering.
Hosting causes
Outbound mail blocked or rate limited; poor IP reputation.
Plugin causes
SMTP plugin misconfiguration; multiple SMTP plugins.
Theme causes
Broken email template overrides.
PHP causes
Errors in email template rendering.
Database causes
Not usually.
Safe diagnostic procedure
  1. WooCommerce → Settings → Emails: enabled and recipient correct.
  2. Use an SMTP plugin's email log and test email.
  3. Check raw headers of a delivered message for SPF/DKIM/DMARC results.
  4. Check Action Scheduler for pending email actions.
Resolution options
Send through an authenticated SMTP or email API provider; fix DNS authentication; fix cron.
How to verify
Test orders produce delivered emails to several providers (Gmail, Outlook).
What not to do
Do not rely on PHP mail() for transactional email.
Customer account login failuresEcommerce
What it means
Customers cannot log in to My Account, or are logged out immediately.
What visitors see
"Incorrect password", "Error: nonce verification failed", login loops, or redirect back to the login form.
What administrators see
Support requests; security plugin lockouts.
Common causes
Cached My Account page with stale nonces; cookies blocked or split across hosts; security plugin lockouts or CAPTCHA failures; MFA misconfiguration; password reset emails not arriving.
Hosting causes
Caching, WAF challenges on login.
Plugin causes
Security, CAPTCHA, social login, membership plugins.
Theme causes
Custom login templates.
PHP causes
Session errors.
Database causes
User meta corruption (rare).
Safe diagnostic procedure
  1. Reproduce with a test customer in a private window.
  2. Check cache headers on My Account; security plugin lockout logs; console errors.
Resolution options
Exclude account pages from cache; fix the conflicting login feature; unblock legitimate IPs; fix email delivery for resets.
How to verify
Test customers log in, stay logged in through checkout, and reset passwords.
What not to do
Do not disable login protection entirely.
Email errors
SMTP authentication failureEmail
What it means
The mail server rejected the username/password or authentication method (typically SMTP code 535).
What visitors see
Contact forms "fail to send" or succeed with no email received.
What administrators see
SMTP plugin log: "535 5.7.8 Username and Password not accepted", "SMTP Error: Could not authenticate".
Common causes
Wrong credentials; password changed; provider requires app passwords or OAuth (Google Workspace and Microsoft 365 have been restricting basic-password SMTP); MFA on the mailbox; wrong encryption/port combination.
Hosting causes
Not usually.
Plugin causes
Wrong mailer selected; stale saved credentials; two SMTP plugins.
Theme causes
Not involved.
PHP causes
openssl missing for TLS.
Database causes
Not involved.
Safe diagnostic procedure
  1. Read the SMTP debug output in the plugin's test-email tool.
  2. Check the provider's current authentication requirements.
Resolution options
Use the provider's recommended method: OAuth integration or an API-based mailer, or an app-specific password; confirm port 587 + STARTTLS or 465 + SSL/TLS.
How to verify
Test email sends with authentication success in the log.
What not to do
Do not use a personal mailbox password for the website; use a dedicated sending account or service.
SMTP connection timeoutEmail
What it means
The site could not open a network connection to the mail server.
What visitors see
Slow form submission followed by failure.
What administrators see
"SMTP connect() failed", "Connection timed out", "Network is unreachable".
Common causes
Outbound SMTP ports blocked by the host (very common for port 25, often 465/587 too on shared hosting); wrong hostname; firewall; IPv6 routing problems.
Hosting causes
Outbound port restrictions; host requires its own relay.
Plugin causes
Wrong host or port settings.
Theme causes
Not involved.
PHP causes
Not usually.
Database causes
Not involved.
Safe diagnostic procedure
  1. Test from the server: nc -vz smtp.example.com 587 or openssl s_client -starttls smtp -connect smtp.example.com:587 (if shell is available).
  2. Ask the host which outbound ports are allowed.
Resolution options
Use an allowed port, the host's relay, or an HTTPS API-based mailer (which uses port 443 and avoids SMTP blocks).
How to verify
Test email sends within seconds.
What not to do
Do not raise PHP timeouts to wait longer for a connection that is blocked.
Sender rejectedEmail
What it means
The receiving or relaying server refused the message because of the sender address (codes such as 550 5.7.1, 553, 554).
What visitors see
Emails never arrive.
What administrators see
Logs: "Sender address rejected", "not owned by user", "Relay access denied".
Common causes
The From address is on a domain the SMTP account is not authorised to send for; using a visitor's email address as From (forms); unverified sender in the email service.
Hosting causes
Host relay restricting From domains.
Plugin causes
Form plugins setting From to the visitor's address; SMTP plugin not forcing From.
Theme causes
Not involved.
PHP causes
Not involved.
Database causes
Not involved.
Safe diagnostic procedure
  1. Check the From header in the SMTP log.
  2. Check the sending service's verified domains or senders.
Resolution options
Send From a mailbox on your verified domain and put the visitor's address in Reply-To; verify the domain with the sending service.
How to verify
Emails accepted; DMARC alignment passes.
What not to do
Do not spoof visitors' addresses as the sender.
Email marked as spamEmail
What it means
Messages are delivered but filtered into spam or junk.
What visitors see
Customers find order emails in spam or never see them.
What administrators see
Low engagement; complaints.
Common causes
Missing or failing SPF/DKIM/DMARC; sending from a shared hosting IP with poor reputation; spammy content or link shorteners; mismatched From/Reply-To domains; no plain-text part; high complaint rates; missing one-click unsubscribe on bulk mail.
Hosting causes
Shared IP reputation.
Plugin causes
Email templates with heavy images or suspicious links.
Theme causes
Not involved.
PHP causes
Not involved.
Database causes
Not involved.
Safe diagnostic procedure
  1. View raw headers in the received spam message: Authentication-Results shows SPF/DKIM/DMARC outcomes.
  2. Use DMARC aggregate reports and mailbox-provider postmaster tools.
Resolution options
Authenticate the domain (SPF, DKIM, DMARC); send through a reputable transactional service; separate marketing and transactional streams; follow major providers' bulk-sender requirements.
How to verify
All three authentication checks pass; placement improves over time.
What not to do
Do not buy lists or send marketing from the same stream as order emails.
SPF failureEmail
What it means
The sending server's IP is not authorised by the domain's SPF record (a TXT record starting v=spf1).
What visitors see
Not visible, except as non-delivery or spam placement.
What administrators see
Headers show spf=fail or softfail; DMARC reports list failing sources.
Common causes
Sending service not included in SPF; multiple SPF records (only one is allowed, so two cause a permanent error); more than 10 DNS lookups; sending from the web server IP without inclusion.
Hosting causes
Host IP changes after migration.
Plugin causes
Switching SMTP provider without updating DNS.
Theme causes
Not involved.
PHP causes
Not involved.
Database causes
Not involved.
Safe diagnostic procedure
  1. dig +short TXT example.com: confirm exactly one v=spf1 record.
  2. Compare included mechanisms with every service that sends as your domain.
Resolution options
Merge into one record including all legitimate senders (for example v=spf1 include:_spf.provider.example ~all); reduce lookups by removing unused includes.
How to verify
Headers show spf=pass for each sending source.
What not to do
Do not use +all, which authorises the whole internet to send as you.
DKIM failureEmail
What it means
The message's DKIM signature could not be verified with the public key published in DNS.
What visitors see
Not visible directly.
What administrators see
Headers show dkim=fail or dkim=none.
Common causes
DKIM not enabled with the sending service; DNS record missing, mistyped or split incorrectly; message modified in transit (footers added by a relay); wrong selector.
Hosting causes
Host relays rewriting messages.
Plugin causes
Plugins signing with an outdated key; multiple mailers.
Theme causes
Not involved.
PHP causes
Not involved.
Database causes
Not involved.
Safe diagnostic procedure
  1. Find the selector in the DKIM-Signature header (s=) and query dig +short TXT selector._domainkey.example.com.
  2. Compare with the sending service's instructions.
Resolution options
Publish the exact record (or CNAME) the provider gives; enable signing in the provider; avoid relays that modify messages.
How to verify
Headers show dkim=pass with d= your domain.
What not to do
Do not reuse one DKIM key across unrelated services; use separate selectors.
DMARC alignment failureEmail
What it means
SPF and/or DKIM may pass, but not for a domain that aligns with the visible From domain, so DMARC fails.
What visitors see
Messages rejected or quarantined according to your DMARC policy.
What administrators see
Headers: dmarc=fail; DMARC aggregate reports show failing sources.
Common causes
Service signs DKIM with its own domain rather than yours; SPF passes for the service's bounce domain (Return-Path) rather than yours; From address on a domain not configured with the service.
Hosting causes
Host relay with its own envelope domain.
Plugin causes
From address forced to a different domain than the one authenticated.
Theme causes
Not involved.
PHP causes
Not involved.
Database causes
Not involved.
Safe diagnostic procedure
  1. Check dig +short TXT _dmarc.example.com for policy and reporting addresses.
  2. In headers, compare the From domain with the DKIM d= domain and the Return-Path domain.
Resolution options
Configure custom DKIM (and ideally a custom return-path) on your domain with the sending service; send From that domain. Roll out DMARC from p=none with reports, then quarantine, then reject.
How to verify
dmarc=pass; reports show all legitimate sources aligned.
What not to do
Do not jump straight to p=reject before every legitimate sender is aligned.
Sending limit reachedEmail
What it means
The mail provider or host refused further messages because a quota or rate limit was hit (often 421/450/452/454 temporary codes, or provider-specific messages).
What visitors see
Some emails arrive, later ones do not.
What administrators see
Logs: "Daily sending quota exceeded", "Too many messages", "Rate limit"; host notices.
Common causes
Shared hosting hourly limits; a mailbox account used for bulk mail; spam bots abusing forms; password-reset email bombing; a plugin loop sending repeatedly.
Hosting causes
Per-account hourly limits.
Plugin causes
Newsletter plugins sending through the web server; misbehaving notification plugins.
Theme causes
Not involved.
PHP causes
Not involved.
Database causes
Queued emails stuck in plugin tables.
Safe diagnostic procedure
  1. Check email logs for volume spikes and recipients.
  2. Check forms for spam abuse.
Resolution options
Use a transactional service with appropriate limits; move newsletters to a dedicated email platform; stop abusive submissions (Chapter 05); throttle queue processing.
How to verify
Volume returns to expected levels; no limit errors.
What not to do
Do not create more mailboxes to spread spam-driven volume.

Quick triage: which layer failed?

EvidenceMost likely layerWhere to look next
Browser shows DNS or certificate error; no HTTP statusDNS / TLSDNS records, certificate status (Chapter 01)
CDN-branded error page or challengeCDN / WAF, or origin unreachable from the CDNCDN security events and origin health
Plain server page (nginx/Apache) with 4xxWeb server rules or limitsServer error log, .htaccess/server config (Chapter 07)
Plain server page with 502/503/504PHP-FPM or capacityFPM log, resource graphs (Chapter 06)
"There has been a critical error" / blank pagePHP fatal error in WordPress codePHP error log; file path names the plugin or theme
Theme-styled 404 pageWordPress routing or contentPermalinks, content status, redirects
Works logged in, broken logged out (or the reverse)Caching or optimisationCache headers, optimisation settings (Chapter 03)
Only one browser or one user affectedClient: cookies, extensions, network, IP blocksPrivate window, another network, block logs
Started at a specific timeWhatever changed thenUpdate history, activity log, host status, cron schedule

Rather have someone else keep WordPress healthy?

Our managed hosting and care plans cover updates, backups, security monitoring and fixes like the ones in this handbook, so you can get on with running the business.

See Hosting & Care