2
Problem
I have a template in Wordpress, which was working normally. At some point, without me changing anything, the following error started to appear at the top of the page:
 Debug Mode On
 Array ( [page] => 0 [ad_listing] => [..]
What do I want?
At the moment I am not too concerned about the error, as I can resolve it later but for now I would like to disable the debug, but I’m not getting it.
What I’ve already tried?
- Add define('WP_DEBUG', false);in wp_config.php
- Delete the line wp_debug_mode();in wp_settings.php
- Search about desativar debug mode no wordpress, but I found nothing to help.
- Use - define( 'SCRIPT_DEBUG', false );and- define( 'WP_DEBUG_DISPLAY', false);but 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 on line 66 is: $table_prefix  = 'wp_';
@EDIT
The error was happening by the lack of
;, but even after add them theDEBUG MODE ONkeeps appearing.
Summary
I’d just like to disable the Debug Mode in Wordpress.
Already tried to use define( 'SCRIPT_DEBUG', false ); or define( 'WP_DEBUG_DISPLAY', false); ??
– Giovanni Bernini
Exactly! Sorry I don’t give more details, I’m by the phone.
– Giovanni Bernini
I updated the question @Giovannibernini, with the new error
– João Victor Gomes Moreira
The error appears at the top of the page, but continues to load the page normally? o
define( 'WP_DEBUG_DISPLAY', false);made the same mistake as thedefine( 'SCRIPT_DEBUG', false );?– Giovanni Bernini
Yes @Giovannibernini, at the top of the page, it works normal, the link from the page is http://barietoner.com.br/recarga-de-toner-em-sao-paulo/
– João Victor Gomes Moreira
And both definition functions have not changed anything, it could be some function in the template itself that activates debug?
– João Victor Gomes Moreira
Strange! Try to put one
@ini_set ( 'display_errors', 0);If not, send yourwp_config.phpwithout the connection data.– Giovanni Bernini
Let’s go continue this discussion in chat.
– João Victor Gomes Moreira