WP_Debug not displaying anything
Вопрос
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?
Решение
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.
Не связан с wordpress.stackexchange