Question

In wp-config.php I have included:

define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);

As I understand, this should display certain information on every page, also if there are no errors. However, nothing has changed. In addition, no file public_html/debug.log has been generated...

Any idea how to get into debug mode?

Was it helpful?

Solution

The constant to output errors to screen is actually

define( 'WP_DEBUG_DISPLAY', true );

WP_DEBUG_LOG would generate a debug.log in your wp-content directory, not in your site root.

Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange
scroll top