To better understand what's causing errors or warnings in your site, we may ask you to turn on debugging in your WordPress site.
To turn on debugging, the following code should be written in your wp-config.php file BEFORE /* That's all, stop editing! Happy blogging. */ in the wp-config.php file.
// Enable WP_DEBUG mode define( 'WP_DEBUG', true ); // Enable Debug logging to the /wp-content/debug.log file define( 'WP_DEBUG_LOG', true ); // Disable display of errors and warnings define( 'WP_DEBUG_DISPLAY', false ); @ini_set( 'display_errors', 0 );
As a best practice, you should turn off debugging in a live or production site. To turn off debugging, simply add // before every line in the code above if it does not exist.
Once added, WordPress will log all errors, notices, and warnings to a file called debug.log in the wp-content directory but will hide the errors so they do not interrupt page generation. Simply report the content of this file when asked.