[英]Wordpress WP_DEBUG not showing errors
My Current configuration is 我当前的配置是
define( 'WP_DEBUG', TRUE) ;
define( 'WP_DEBUG_DISPLAY', TRUE );
define( 'WP_DEBUG_LOG', TRUE );
php errors are showing without any problem but wordpress errors like deprecated function calls are not showing . php错误显示没有任何问题,但wordpress错误(如不赞成使用的函数调用)未显示 。 But debug logging to file works , wordpress errors are logging to file in wp-content.
但是调试日志记录到文件有效 ,wordpress错误正在wp-content中记录到文件。 I tried somewhat all solutions but not working.
我尝试了所有解决方案,但是没有用。 I am adding the links of solutions I tried.
我正在添加我尝试过的解决方案的链接。 The funny thing is this is not working in Local Server (WAMP) , but working perfectly in Live Server.
有趣的是,这不能在本地服务器(WAMP)中工作,但可以在Live Server中完美地工作。 I referred these links and tried but didn't worked for me.
我引用了这些链接并进行了尝试,但没有为我工作。 1. define('WP_DEBUG', true);
1. define('WP_DEBUG',true); not show errors 2. Debug logs at wordpress not working 3. Wordpress Debugging does not work
不显示错误 2. WordPress上的调试日志不起作用 3. WordPress调试不起作用
I Found the actual problem that doesn't show debug errors is because of using Query Monitor plugin . 我发现没有显示调试错误的实际问题是由于使用了Query Monitor插件 。 Also Debug bar plugin too disable default wordpress debug errors.
此外, 调试栏插件也会禁用默认的wordpress调试错误。 Just Deactivated this plugin and debug errors are displaying now.
刚刚停用此插件,现在显示调试错误。
Cheers!
干杯!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.