最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

plugins - I enabled debugging but I still get the same message: There has been a critical error on your website

programmeradmin0浏览0评论

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
  • Add define( 'WP_DEBUG_DISPLAY', true ); and or define( 'WP_DEBUG_LOG', true ); and set WP_DEBUG_DISPLAY to false 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
  • Is there no way to display the error in the webpage rather than having to open the log file? Thanks. – spreaderman Commented Feb 2, 2020 at 4:15
Add a comment  | 

1 Answer 1

Reset to default 0

Fatal 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 );

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论