Debugging WordPress
summary
Starts by pointing to the concrete workflow: check server logs first, then enable WP_DEBUG + WP_DEBUG_LOG and set WP_DEBUG_DISPLAY false to capture errors safely, use WP-CLI to run commands like plugin list, plugin deactivate and WP checksum core (now with plugin checksum) to detect hacked or altered files, toggle SCRIPT_DEBUG and SAVEQUERIES or install WP Debug Bar for query output, and fix common causes (wrong upload path after migrations, incorrect site URL entries, whitespace causing headers sent). Tools and checks resolve nearly every incident.
AI-written summary · about
