简体   繁体   English

WordPress的WP_DEBUG不显示错误

[英]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.

相关问题 在Wordpress中显示(define('WP_DEBUG',true);`(错误,警告,注意) - Display (errors, warnings, notices) of `define( 'WP_DEBUG', true );` in Wordpress 定义('WP_DEBUG',真); 不显示错误 - define('WP_DEBUG', true); does not show errors WordPress:即使 WP_DEBUG 和 WP_DEBUG_DISPLAY 常量设置为 false,也会显示 PHP 警告和通知 - WordPress: PHP warnings and notices shown even with WP_DEBUG and WP_DEBUG_DISPLAY consts set to false 有没有办法从插件或主题更改WP_DEBUG常量 - Is there a way to change WP_DEBUG Constant from a plugin or Theme 从 wp-config 禁用后仍然显示 wordpress 调试通知 - wordpress debug notices still showing after disabling from wp-config WordPress 网站上的图片没有显示,我只在 wp-content/uploads/ 文件夹中收到图片的 404 错误 - images on WordPress site are not showing up and I'm getting 404 errors for pictures only in wp-content/uploads/ folder WordPress的wp_query不显示一些帖子 - Wordpress wp_query not showing some posts WP List 表不显示数据 [Wordpress] - WP List table not showing data [Wordpress] WordPress 显示内容的自定义主题错误 - WordPress custom theme errors with showing content 为什么我的wordpress主题中的分页没有显示(wp-paginate插件) - why pagination in my wordpress theme is not showing (wp-paginate plugin)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM