• Resolved Aurovrata Venet

    (@aurovrata)


    Installed and activated on a live site a client asked me to debug, but I was surprised to see that it started of with WP_DEBUG_DISPLAY set to true, and throwing up all sorts of warnings on screen.

    Can this be set to false on first activation by default?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Andy Fragen

    (@afragen)

    WordPress’s default is that WP_DEBUG_DISPLAY is set to true. This only shows errors when WP_DEBUG is also true. The plugin allows you you set WP_DEBUG_DISPLAY to false.

    Since this is the default value, that’s what the plugin starts with.

    Thread Starter Aurovrata Venet

    (@aurovrata)

    I am a developer and I am aware of this, however I was wondering if you could force WP_DEBUG_DISPLAY to false on plugin activation, or start with WP_DEBUG as fase, either way it prevents debug messages from showing up on requests.

    Plugin Author Andy Fragen

    (@afragen)

    I’m sure I could, but my preference is to only set WP_DEBUG to true and leave everything else as the default that the user has set.

    There’s a setting in the settings page to set WP_DEBUG_DISPLAY to false. Is this not sufficient?

    Thread Starter Aurovrata Venet

    (@aurovrata)

    There’s a setting in the settings page to set WP_DEBUG_DISPLAY to false. Is this not sufficient?

    sure when one is aware of all this….

    I was just suggesting that it would make for a more friendly experience, especially for first time users of your plugin, not to see an avalanche of warning messages on screen (and your dashboard controls disappearing down the page) when you initially activate the plugin and the page reloads.

    I can imagine a number of users getting panicked at this point …and they may not be aware that any front-end requests would be impacted too, far worse experience.

    Anyhow, just a suggestion.

    Plugin Author Andy Fragen

    (@afragen)

    Thanks. I hadn’t really considered it that way previously.

    Thread Starter Aurovrata Venet

    (@aurovrata)

    no worries, have a nice day and thanks for lovely little plugin ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WP_DEBUG_DISPLAY set as true when a activated’ is closed to new replies.