How to Enable WordPress Debug Mode for Troubleshooting
Enabling WP_DEBUG in your wp-config.php file is the standard and most effective method for diagnosing critical WordPress errors and conflicts.
Based on 6 community reports.
Linked sources: 6.
Known Issues
- Displaying errors on live sites can expose sensitive path information
- Debug logs can grow very large if not monitored
- Requires file access via FTP or file manager
Community Q&A
How do I enable debug mode in WordPress?
Open your wp-config.php file and set define(‘WP_DEBUG’, true); to enable error reporting.
Where are WordPress debug logs saved?
By default, logs are saved to a file named debug.log inside the /wp-content/ directory.
Should I keep debug mode enabled on a live site?
No, you should disable it after troubleshooting to prevent sensitive server paths from being displayed to visitors.
Reddit Sources
- The complete guide to diagnosing WordPress plugin conflicts (for non-developers) (r/Wordpress)
- Can’t access Wordpress admin page due to plugin update. (r/Wordpress)
- trying to access array offset on value of type bool in /sites/www.f.de/wp-content/themes/_job (r/Wordpress)
- wp_mail : issue with Cc recipients (r/Wordpress)
- Migration of old theme error, debugging (r/Wordpress)
- Users unable to register (r/Wordpress)