• 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!

    • This topic was modified 6 years, 2 months ago by madebymt.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    Can you share a link to the page?
    Does it happen on entire site or in some specific pages?

    Thread Starter madebymt

    (@madebymt)

    @safeerz Sorry about the late response. I find out one of my code in function cause the issue.
    It’s the function to remove empty <p> tag default in WordPress, after I took it out, then it works.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Content disappear when I turn WordPress debug off’ is closed to new replies.