Skip to main content

ı have error

Comments

1 comment

  • KC George

    Hi Ahmet,

    WordPress provides a debug tool to help discover what may be the cause of an error on your website. This tool can display information on your live website, hence enabling debug mode is not recommended for a live website. Instead, you should create a debug log file. You can then check that log file to determine the cause of the issue you're attempting to resolve.

    The 'Deprecated' warnings are meant for the developers of themes/plugins and not meant for the end users. Hence the debug mode should be disabled to hide these warnings from end users.  To disable the WordPress debug mode, open the file wp-config.php on your site root (using File Manager or an FTP tool). Locate these 2 lines of code in the file. Save the file after changing the word "true" to "false."   

    if ( ! defined( 'WP_DEBUG' ) ) {
      define( 'WP_DEBUG', true );
    }  

    Once you make the change, your code should look like this

    if ( ! defined( 'WP_DEBUG' ) ) {
        define( 'WP_DEBUG', false );
    }
    0

Please sign in to leave a comment.