简体   繁体   中英

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!

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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