@Bucio: RT @Cerezadaa: Drogas mas destructivas: - Marihuana 33% - Cocaína 50% - Éxtasis 79% - Heroína 85% - Candy Crush 1530% - Facebook 96237%.!!!…

Ocultar errores del php en wordpress

Aunque no es buena practica pero servirá de algo ocultar está clase de errores:

Notice: register_sidebar_widget is deprecated since version 2.8!
Use wp_register_sidebar_widget() instead. in /home/.../wp-includes/functions.php on line 3237

Notice: register_widget_control is deprecated since version 2.8!
Use wp_register_widget_control() instead. in in /home/.../wp-includes/functions.php on line 3237

Notice: register_sidebar_widget is deprecated since version 2.8!
 Use wp_register_sidebar_widget() instead. in in /home/.../wp-includes/functions.php on line 3237

Vamos al archivo wp-config.php, buscamos la linea 20, define( 'WP_DEBUG', true); y lo cambiamos por define( 'WP_DEBUG', false); visto en el codex de wordpres.

Leer: runtime configuration |


 
 
 

3 comentarios en “Ocultar errores del php en wordpress” . Deja tú comentario

  1. Jyr

    ¿No seria mejor usar el php.ini?

    ResponderResponder


    agosto 22, 2010 @ 3:16:
  2. Rafael Bucio

    Si también :-) gracias por la aportación.

    ResponderResponder


    agosto 22, 2010 @ 3:25:
  3. mbyte

    no no no estas muy perro eh. xDD

    ResponderResponder


    septiembre 6, 2010 @ 4:05:

Deja tu opinión..

XHTML: Puedes usar : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Tsss: si no tienes gravatar lee esté post de Kozmica , para sacar uno :-).


Campus Party

Publicidad