Disable Debug Mode in Wordpress

2

Problem

I have a WordPress template, which was working normally. At some point, without altering anything, the following error began to appear at the top of the page:

 Debug Mode On
 Array ( [page] => 0 [ad_listing] => [..]

What do I want?

At the moment I'm not too worried about the error, as I'll be able to resolve it later, but for now I'd like to disable debug mode, but I'm not getting it.

What have I tried?

  • Add define('WP_DEBUG', false); in wp_config.php
  • Delete the line wp_debug_mode(); in wp_settings.php
  • Search on desativar debug mode no wordpress , but I did not find anything that would help.
  • Use define( 'SCRIPT_DEBUG', false ); and define( 'WP_DEBUG_DISPLAY', false); however a new error appears:

      Parse error: syntax error, unexpected '$table_prefix' (T_VARIABLE) in /home/barie742/public_html/recarga-de-toner-em-sao-paulo/wp-config.php on line 66
    
  • And at line 66 it is: $table_prefix = 'wp_';

      

    @EDIT

         

    The error was happening because of the lack of ; , but even after   adding them DEBUG MODE ON keeps appearing.

    Summary

    I would just like to disable Debug Mode in Wordpress.

        
    asked by anonymous 04.04.2016 / 13:57

    1 answer

    1

    Solution:

    This solution I'm going to put below is not one of the best, but since define('WP_DEBUG', false); , define( 'SCRIPT_DEBUG', false ); and define( 'WP_DEBUG_DISPLAY', false); did not work, I would solve it like this:

    Adding this CSS code in the main style.

    .debug {
        display: none!important;
    }
    
        
    04.04.2016 / 18:14