简体   繁体   English

当我关闭Wordpress调试时内容消失

[英]Content disappear when I turn Wordpress debug off

I run to a issue with one of the Wordpress site I worked on. 我遇到了一个我工作过的Wordpress网站的问题。 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. 我在使用事件Expresso插件时遇到问题,因此我打开了web.config调试以尝试解决此问题,在主页上没有任何错误警告后, 我关闭了Web调试功能,然后整个内容消失了。 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.) 在下面也尝试过此操作,每次都具有“ false”,则整个内容将不会显示。(只是空白块,我检查控制台,他们确实提取了信息,但它是空白的。)

// 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 WordPress版本:版本:4.9.8插件使用:Event Expresso + wpbakery页面构建器

Thanks! 谢谢!

I find out one of my code to remove empty 我发现我的代码之一删除空

tag code in function.php is cause this issue, after deleting it, it's back to normal now. function.php中的标记代码是导致此问题的原因,将其删除后,现在已恢复正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM