admin管理员组文章数量:1410689
I have changed the config setting to enable debugging as follows;
define( 'WP_DEBUG', true );
When I refresh the page I still get he unhelpful message:
There has been a critical error on your website.
How can I get it to spilt its guts on the screen and show the actual error?
I have changed the config setting to enable debugging as follows;
define( 'WP_DEBUG', true );
When I refresh the page I still get he unhelpful message:
There has been a critical error on your website.
How can I get it to spilt its guts on the screen and show the actual error?
Share Improve this question asked Feb 1, 2020 at 9:18 spreadermanspreaderman 1139 bronze badges 2 |1 Answer
Reset to default 0Fatal error handling has been introduced in WordPress 5.1 and 5.2. also known as "Screen Of Death (WSOD) protection." To exclude this "protection" and restore the old way error catching you should add this to your wp-config.php file since WP_DEBUG true is not enough to disable the WSOD protection :
define( 'WP_DISABLE_FATAL_ERROR_HANDLER', true );
本文标签:
版权声明:本文标题:plugins - I enabled debugging but I still get the same message: There has been a critical error on your website 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744784245a2624898.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
define( 'WP_DEBUG_DISPLAY', true );
and ordefine( 'WP_DEBUG_LOG', true );
and setWP_DEBUG_DISPLAY
tofalse
and then go check your error log which should be generated in/wp-content/debug.log
assuming it is not being set to output somewhere else by your server settings. Useful reading: wordpress/support/article/debugging-in-wordpress – Adam Commented Feb 1, 2020 at 9:34