admin管理员组文章数量:1134586
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?
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?
Share Improve this question asked Feb 18, 2021 at 18:12 NickNick 1272 silver badges9 bronze badges 2 |2 Answers
Reset to default 3The 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.
You can control the setting by changing the following settings:
define ('WPLANG', 'da_DK');
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
本文标签: wp configWPDebug not displaying anything
版权声明:本文标题:wp config - WP_Debug not displaying anything 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736860624a1955899.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
public_html/wp-content
directory. For the same debug info and lots more, use this plugin: wordpress.org/plugins/query-monitor – shanebp Commented Feb 18, 2021 at 19:14