admin管理员组文章数量:1122832
I've got the proper debugging constants defined in wp-config.php:
define('WP_DEBUG', true);
define('WP_DEBUG_DISPLAY', true);
define('WP_DEBUG_LOG', true);
But they're not doing a darn thing. When I output something to the log file from my plugin (even without testing for WP_DEBUG === true
) like this nothing happens on-screen and there's no debug.log to be found either:
error_log('test!');
I'm sure that part of the code in the plug is being executed. What gives? I'm using WP 3.6.1. Thanks.
I've got the proper debugging constants defined in wp-config.php:
define('WP_DEBUG', true);
define('WP_DEBUG_DISPLAY', true);
define('WP_DEBUG_LOG', true);
But they're not doing a darn thing. When I output something to the log file from my plugin (even without testing for WP_DEBUG === true
) like this nothing happens on-screen and there's no debug.log to be found either:
error_log('test!');
I'm sure that part of the code in the plug is being executed. What gives? I'm using WP 3.6.1. Thanks.
Share Improve this question asked Nov 23, 2013 at 23:14 North KrimslyNorth Krimsly 1111 silver badge6 bronze badges 4 |1 Answer
Reset to default 0In my case, the below code worked for me. You should enter it in wp-config.php
and above /* That's all, stop editing! Happy blogging. */
:
@ini_set('display_errors', 1);
本文标签: pluginsUnable to get WPDEBUGWPDEBUGDISPLAYWPDEBUGLOG to work
版权声明:本文标题:plugins - Unable to get WP_DEBUG, WP_DEBUG_DISPLAY, WP_DEBUG_LOG to work 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736287941a1927986.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
/wp-admin/update-core.php
– Mayeenul Islam Commented Nov 24, 2013 at 0:19wp-content/debug.log
file, and then make sure the web service (Apache) has write permissions to that file. Easiest way is to allow everyone read/write access --chmod wp-content/debug.log 666
. – webaware Commented Nov 24, 2013 at 4:36