<?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>WPWife &#187; hide php notices in wordpress</title>
	<atom:link href="http://www.wpwife.com/category/hide-php-notices-in-wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wpwife.com</link>
	<description>WPHelp: fix and optimise WP themes&#38;plugins</description>
	<lastBuildDate>Fri, 21 Nov 2025 12:00:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.38</generator>
	<item>
		<title>How to Turn Off PHP Errors in WordPress</title>
		<link>http://www.wpwife.com/tutorials/how-to-turn-off-php-errors-in-wordpress</link>
		<comments>http://www.wpwife.com/tutorials/how-to-turn-off-php-errors-in-wordpress#comments</comments>
		<pubDate>Mon, 27 Nov 2017 12:00:39 +0000</pubDate>
		<dc:creator><![CDATA[Editorial Staff]]></dc:creator>
				<category><![CDATA[common wordpress errors]]></category>
		<category><![CDATA[hide php notices in wordpress]]></category>
		<category><![CDATA[hide php warnings in wordpress]]></category>
		<category><![CDATA[hide wordpress warning errors]]></category>
		<category><![CDATA[php errors in wordpress]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=48141</guid>
		<description><![CDATA[
<p>Recently one of our readers asked how to turn off PHP errors in WordPress? PHP warnings and notices help developers debug issues with their code. However it looks extremely unprofessional when they are visible to all your website visitors. In this article, we will show&#8230;&#160;<strong><a href="http://www.wpbeginner.com/wp-tutorials/how-to-turn-off-php-errors-in-wordpress/">Read More &#187;</a></strong></p>
<p>The post <a rel="nofollow" href="http://www.wpbeginner.com/wp-tutorials/how-to-turn-off-php-errors-in-wordpress/">How to Turn Off PHP Errors in WordPress</a> appeared first on <a rel="nofollow" href="http://www.wpbeginner.com/">WPBeginner</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Recently one of our readers asked how to turn off PHP errors in WordPress? PHP warnings and notices help developers debug issues with their code. However it looks extremely unprofessional when they are visible to all your website visitors. In this article, we will show you how to easily turn off PHP errors in WordPress. </p>
<p><img title="How to turn off PHP errors in WordPress" src="http://cdn4.wpbeginner.com/wp-content/uploads/2017/11/turnoffphperrors.png" alt="How to turn off PHP errors in WordPress" width="550" height="340" class="alignnone size-full wp-image-48146" /></p>
<h4>Why and When You Should Turn Off PHP Errors in WordPress?</h4>
<p>PHP errors that you can see on your WordPress site are usually warnings and notices. These are not like <a href="http://www.wpbeginner.com/wp-tutorials/how-to-fix-the-internal-server-error-in-wordpress/" title="How to Fix the Internal Server Error in WordPress">internal server error</a>, <a href="http://www.wpbeginner.com/wp-tutorials/how-to-fix-the-syntax-error-in-wordpress/" title="How to Fix the Syntax Error in WordPress">syntax errors</a>, or <a href="http://www.wpbeginner.com/wp-tutorials/how-to-fix-fatal-error-maximum-execution-time-exceeded-in-wordpress/" title="How to Fix Fatal Error: Maximum Execution Time Exceeded in WordPress">fatal errors</a>, which stop your website from loading.</p>
<p>Notices and warnings are the kind of errors that do not stop WordPress from loading your website. See <a href="http://www.wpbeginner.com/wp-tutorials/how-wordpress-actually-works-behind-the-scenes-infographic/" title="How WordPress Actually Works Behind the Scenes (Infographic)">how WordPress actually works</a> behind the scenes for more details. </p>
<p><img title="PHP errors in WordPress admin area" src="http://cdn.wpbeginner.com/wp-content/uploads/2017/11/phperrorwarnings.jpg" alt="PHP errors in WordPress admin area" width="550" height="242" class="alignnone size-full wp-image-48144" /></p>
<p>The purpose of these errors are to help developers debug issues with their code. Plugin and theme developers need this information to check for compatibility and best practices. </p>
<p>However, if you are not developing a theme, plugin, or a <a href="http://www.wpbeginner.com/beginners-guide/how-much-does-a-custom-wordpress-theme-cost/" title="How Much Does a Custom WordPress Theme Cost?">custom website</a>, then these errors should be hidden. Because if they appear on the front-end of your website to all your visitors, it looks extremely unprofessional. </p>
<p><img title="WordPress warning errors on homepage" src="http://cdn2.wpbeginner.com/wp-content/uploads/2017/11/error-frontend.jpg" alt="WordPress warning errors on homepage" width="550" height="235" class="alignnone size-full wp-image-48143" /></p>
<p>If you see an error like above on on your site, then you may want to inform the respective theme or plugin developer. They may release a fix that would make the error go away. Meanwhile, you can also turn these errors off. </p>
<p>Let&#8217;s take a look at how to easily turn off PHP errors, notices, and warnings in WordPress. </p>
<h4>Turning off PHP Errors in WordPress</h4>
<p>For this part, you will need to <a href="http://www.wpbeginner.com/beginners-guide/how-to-edit-wp-config-php-file-in-wordpress/" title="How to Edit wp-config.php File in WordPress">edit the wp-config.php</a> file. </p>
<p>Inside your wp-config.php file, look for the following line: </p>
<pre class="brush: php; title: ; notranslate">
define('WP_DEBUG', true);
</pre>
<p>It is also possible, that this line is already set to false. In that case, you&#8217;ll see the following code: </p>
<pre class="brush: php; title: ; notranslate">
define('WP_DEBUG', false);
</pre>
<p>In either case, you need to replace this line with the following code: </p>
<pre class="brush: php; title: ; notranslate">
ini_set('display_errors','Off');
ini_set('error_reporting', E_ALL );
define('WP_DEBUG', false);
define('WP_DEBUG_DISPLAY', false);
</pre>
<p>Don&#8217;t forget to save your changes and upload your wp-config.php file back to the server. </p>
<p>You can now visit your website to confirm that the PHP errors, notices, and warnings have disappeared from your website. </p>
<h4>Turning on PHP Errors in WordPress</h4>
<p>If you are working on a website on <a href="http://www.wpbeginner.com/wp-tutorials/how-to-install-wordpress-on-your-windows-computer-using-wamp/" title="How to Install WordPress on your Windows Computer Using WAMP">local server</a> or <a href="http://www.wpbeginner.com/wp-tutorials/how-to-create-staging-environment-for-a-wordpress-site/" title="How to Create Staging Environment for a WordPress Site">staging area</a>, then you may want to turn on error reporting. In that case you need to edit your wp-config.php file and replace the code you added earlier with the following code: </p>
<pre class="brush: php; title: ; notranslate">
define('WP_DEBUG', true);
define('WP_DEBUG_DISPLAY', true);
</pre>
<p>This code will allow WordPress to start displaying PHP errors, warnings, and notices again. </p>
<p>We hope this article helped you learn how to turn off php errors in WordPress. You may also want to see our list of the most <a href="http://www.wpbeginner.com/common-wordpress-errors-and-how-to-fix-them/" title="25 Most Common WordPress Errors and How to Fix Them">common WordPress errors</a> and how to fix them. </p>
<p>If you liked this article, then please subscribe to our <a href="http://youtube.com/wpbeginner?sub_confirmation=1" title="WPBeginner on YouTube"  rel="nofollow">YouTube Channel</a> for WordPress video tutorials. You can also find us on <a href="http://twitter.com/wpbeginner" title="WPBeginner on Twitter"  rel="nofollow">Twitter</a> and <a href="https://www.facebook.com/wpbeginner" title="WPBeginner on Facebook"  rel="nofollow">Facebook</a>.</p>
<p>The post <a rel="nofollow" href="http://www.wpbeginner.com/wp-tutorials/how-to-turn-off-php-errors-in-wordpress/">How to Turn Off PHP Errors in WordPress</a> appeared first on <a rel="nofollow" href="http://www.wpbeginner.com/">WPBeginner</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wpwife.com/tutorials/how-to-turn-off-php-errors-in-wordpress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="0" type="" />
		</item>
	</channel>
</rss>
