Incident-focused WordPress reference for logs, plugins, themes, database, WP-CLI, cron, permalinks, SMTP, permissions and 500/critical errors.
Files & paths
Contains DB access, salts and debug constants.
A failing plugin can be disabled by renaming its folder, carefully.
Keep a compatible default theme available as fallback.
Check disk space, permissions and URLs before blaming Media Library.
Debug & logs
define('WP_DEBUG', true);Enable temporarily during diagnostics.
define('WP_DEBUG_LOG', true);Normally writes to wp-content/debug.log.
define('WP_DEBUG_DISPLAY', false);Avoids exposing detailed errors to visitors.
For HTTP 500, server logs are often more precise than WordPress UI.
Plugins & themes
wp plugin listShows plugin status and versions from shell.
wp plugin deactivate nom-pluginCleaner than renaming if WP-CLI is available.
wp plugin deactivate --allStrong diagnostic action; plan application impact.
wp theme activate twentytwentysixOnly if a compatible fallback theme is installed.
Database
wp db checkChecks access and logical table state.
Confirms the table prefix expected by the site.
wp option get siteurlCompare siteurl and home during redirect/migration issues.
wp option get homeMismatch can cause redirects or incorrect links.
Cron & tasks
wp cron event listShows overdue, frequent or unexpected tasks.
wp cron event run --due-nowMay execute many tasks; use with impact awareness.
If enabled, an external scheduler must invoke wp-cron.php.
Correlate with PHP logs and database load.
Permalinks, cache & HTTP
wp rewrite flushDo not run on every request; use after rewrite changes.
wp rewrite list | head -50Useful to verify expected routes.
wp cache typeDepending on version, may identify active cache implementation.
curl -I https://exemple.fr/page/Compares public behavior without browser state.
Email & forms
A form can validate successfully while delivery fails.
Keep message ID or provider trace for diagnostics.
Incorrect sending identity can cause spam or rejection.
wp eval "var_dump(wp_mail('admin@example.com','Test BOAI','Test'));"true only means WordPress handed the message to the configured transport.
Critical error / HTTP 500
The critical error page often hides the full root cause.
PHP/FPM limits may override WordPress constants.
Change one variable at a time.
Useful to isolate plugins without FTP, but relies on email delivery.
Key points
- Back up files and database before changes or ensure a valid restore point.
- Do not leave WP_DEBUG_DISPLAY enabled publicly.
- Correlate HTTP 500 with server logs, not only WordPress debug logs.
- Avoid automatic flush/rebuild operations on every request.