<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tecnología web &#187; Wordpress</title>
	<atom:link href="http://www.index.com.pe/blog/category/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://www.index.com.pe/blog</link>
	<description>Blog de Tecnologías web &#38; Geek stuffs de Index.com.pe</description>
	<lastBuildDate>Fri, 24 Jul 2009 15:37:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ocultar mensajes de error en Wordpress</title>
		<link>http://www.index.com.pe/blog/ocultar-mensajes-de-error-en-wordpress-112.html</link>
		<comments>http://www.index.com.pe/blog/ocultar-mensajes-de-error-en-wordpress-112.html#comments</comments>
		<pubDate>Fri, 06 Mar 2009 20:39:03 +0000</pubDate>
		<dc:creator>editor</dc:creator>
				<category><![CDATA[Anuncios]]></category>
		<category><![CDATA[How to / Como se hace]]></category>
		<category><![CDATA[Indexacion - SEO]]></category>
		<category><![CDATA[Scripts - Codigo]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[header.php]]></category>
		<category><![CDATA[init_set]]></category>
		<category><![CDATA[mensaje]]></category>
		<category><![CDATA[ocultar]]></category>
		<category><![CDATA[wp-settings.php]]></category>
		<category><![CDATA[wp_debug]]></category>

		<guid isPermaLink="false">http://www.index.com.pe/blog/?p=112</guid>
		<description><![CDATA[En todo entorno de producción es necesario tener presente algunos asuntos de seguridad,  para  Ocultar errores en Wordpress  generados por un error de código, llamada a base de datos o página web, se debe agregar la siguiente línea de codigo. 

Editar el archivo /wp-settings.php (está en la raiz del blog).
Busca estas líneas de código defined(&#8216;WP_DEBUG&#8217;):[sourcecode language="css"]
// Add define(&#8216;WP_DEBUG&#8217;,true); [...]]]></description>
			<content:encoded><![CDATA[<p>En todo entorno de producción es necesario tener presente algunos asuntos de seguridad,  para  <strong>Ocultar errores en Wordpress</strong>  generados por un error de código, llamada a base de datos o página web, se debe agregar la siguiente línea de codigo. <span id="more-112"></span></p>
<ol>
<li><strong>Editar el archivo /wp-settings.php </strong>(está en la raiz del blog).</li>
<li><strong>Busca estas líneas</strong> de código <strong>defined(&#8216;WP_DEBUG&#8217;)</strong>:[sourcecode language="css"]<br />
// Add define(&#8216;WP_DEBUG&#8217;,true); to wp-config.php to enable display of notices during development.<br />
if (defined(&#8216;WP_DEBUG&#8217;) and WP_DEBUG == true) {<br />
error_reporting(E_ALL);<br />
} else {<br />
// Unicode Extension is in PHP 6.0 only or do version check when this changes.<br />
if ( function_exists(&#8216;unicode_decode&#8217;) )<br />
error_reporting( E_ALL ^ E_DEPRECATED ^ E_NOTICE ^ E_USER_NOTICE ^ E_STRICT );<br />
else if ( defined( &#8216;E_DEPRECATED&#8217; ) ) // Introduced in PHP 5.3<br />
error_reporting( E_ALL ^ E_DEPRECATED ^ E_NOTICE ^ E_USER_NOTICE );<br />
else<br />
error_reporting(E_ALL ^ E_NOTICE ^ E_USER_NOTICE);<br />
}<br />
[/sourcecode]</li>
<li><strong>Agregar está linea</strong> de código <strong>@ini_set(&#8220;display_errors&#8221;, 0);</strong> , y quedará así:[sourcecode language="css"]<br />
// Add define(&#8216;WP_DEBUG&#8217;,true); to wp-config.php to enable display of notices during development.<br />
if (defined(&#8216;WP_DEBUG&#8217;) and WP_DEBUG == true) {<br />
error_reporting(E_ALL);<br />
} else {<br />
// Unicode Extension is in PHP 6.0 only or do version check when this changes.<br />
if ( function_exists(&#8216;unicode_decode&#8217;) )<br />
error_reporting( E_ALL ^ E_DEPRECATED ^ E_NOTICE ^ E_USER_NOTICE ^ E_STRICT );<br />
else if ( defined( &#8216;E_DEPRECATED&#8217; ) ) // Introduced in PHP 5.3<br />
error_reporting( E_ALL ^ E_DEPRECATED ^ E_NOTICE ^ E_USER_NOTICE );<br />
else<br />
error_reporting(E_ALL ^ E_NOTICE ^ E_USER_NOTICE);<br />
}<br />
@ini_set(&quot;display_errors&quot;, 0);<br />
[/sourcecode]</li>
<li><strong>Grabar todo y hacer las pruebas</strong>. Para generar un error de prueba, edita el archivo <strong>header.php</strong> (desde<br />
el wp, ve a Páginas &gt; Editor &gt; Header.php), la línea de error es <strong>&lt;?php ech1234o &#8220;error&#8221;; ?&gt;</strong> <!--p ech1234o "error"; -->que se puso luego del tag  <strong>&lt;head&gt;</strong>:<br />
[sourcecode language="css"]<br />
&lt;head&gt;<br />
&lt;?php ech1234o &quot;error&quot;; ?&gt;[/sourcecode]</li>
<li><strong>Luego que grabaste, revisa en tu visor de internet</strong> y notarás que se muestra una página en blanco, sin mensajes de error. Ahora para quitar el error, Elimina la linea que agregaste en el punto 4., graba y listo.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.index.com.pe/blog/ocultar-mensajes-de-error-en-wordpress-112.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
