Manage cookies that are used for advertising, such as ad personalization, remarketing, and ad effectiveness analysis.
2.14.1.15. Enable debug mode in WordPress
- Open the site configuration file
wp-config.phpin the built-in editor of the file manager or any FTP client. - Find the line with the parameter
WP_DEBUG:define('WP_DEBUG', false); - In the line you find, replace
falsewithtrueso that it looks like this:define('WP_DEBUG', true); - If you want errors to be output to a standard WordPress log file (by default, this is
wp-content/debug.log) rather than to the screen, insert the following lines below the line with theWP_DEBUGparameter:define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false); @ini_set('display_errors', 0); - Save the changes.
- Reproduce the error on the site to see it on the screen or record it in the WordPress log file.
After finding the source of errors on your site and fixing them, you should disable debug mode.