首页 > 解决方案 > Content disappear when I turn Wordpress debug off

问题描述

I run to a issue with one of the Wordpress site I worked on. I was having issue with event expresso plugin, so I turn web.config debug on tried to fix the issue, after I don't have any error warning on the homepage, I turn off the web debug off, then the whole content is disappeared. I can't figure out why.

Also tried this below, every time have "false" then the whole content won't display.(just a blank block, I check console, they did pull the information, but it's blank.)

// Enable WP_DEBUG mode
define('WP_DEBUG', true);
// Enable Debug logging to the /wp-content/debug.log file
define('WP_DEBUG_LOG', true);
// Disable display of errors and warnings 
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors',0);

Wordpress version: version: 4.9.8 Plugin use: Event expresso + wpbakery page builder

Thanks!

标签: phpwordpressplugins

解决方案


我发现我的代码之一删除空

function.php 中的标签代码是导致此问题的原因,删除后,现在恢复正常。


推荐阅读