Debugging WordPress
summary
Diagnoses start with server logs and two error families — about 95% are 4xx or 5xx — then use WordPress-specific tools: enable WP_DEBUG with WP_DEBUG_LOG true and DISPLAY set false to capture errors, run WP-CLI commands like wp plugin list and wp plugin deactivate to isolate plugins, and wp checksum core/plugins to detect hacked or modified files (finds issues in ~5–10% of cases). Common fixes shown: clear the upload_path option to restore a broken media library after migration, and enable PHP output buffering to stop “headers already sent” and blank-page 500 errors.
AI-written summary · about
