• Resolved WP SITES

    (@wordpresssites)


    It is recommended to turn off WP_DEBUG on a production site. Edit wp-config.php file and set the the WP_DEBUG value like this: define(‘WP_DEBUG’, false); or add additional line define( ‘WP_DEBUG_DISPLAY’, false ); to the wp-config.php. Could you add a setting for this?

Viewing 1 replies (of 1 total)
  • Plugin Support Igor S.

    (@arsenique)

    WP_DEBUG should not be used on live/production site for several reasons. For example, if it is enabled and some warnings, notices or errors appear, the debug message may reveal file paths, plugin names or database related messages which, as you may imagine, is not very good practice. On top of this, if enabled, debugging can potentially impact the performance of your website as it will log more data and may write large log files over time.

    So, you should make sure to turn off debugging on live/production website.

    Hope this helps a bit.

Viewing 1 replies (of 1 total)

The topic ‘Why Turnoff Debug?’ is closed to new replies.