{"id":656,"date":"2022-08-30T15:04:59","date_gmt":"2022-08-30T15:04:59","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/09\/php-error-reporting-turn-off-notices-for-undefined-variables-only-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:04:59","modified_gmt":"2022-08-30T15:04:59","slug":"php-error-reporting-turn-off-notices-for-undefined-variables-only-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/php-error-reporting-turn-off-notices-for-undefined-variables-only-collection-of-common-programming-errors\/","title":{"rendered":"PHP error reporting: Turn off notices for undefined variables only?-Collection of common programming errors"},"content":{"rendered":"<p>programming-amp-design Retrieving original web address<br \/>\ndiscoverer: Spearfish <img decoding=\"async\" src=\"http:\/\/l.yimg.com\/sc\/28222\/answers2\/images\/a\/i\/identity\/nopic_48.png\" \/> Hi, Does anybody know what I need to set my error reporting in PHP to if I want to suppress notices of undefined variables, but -not- any other notices?<\/p>\n<p>Thanks.<\/p>\n<ol>\n<li>go to your php folder and navigate to the php.ini file (might be in \/etc\/) and open it using a basic text editor: Use the find option (Ctrl+F) and find the &#8220;error_reporting&#8221; line: change error_reporting = E_ALL to error_reporting = E_ALL &amp; ~E_NOTICE If for some reason you don&#8217;t have access to the PHP configuration file (shared hosting?) you can use the error reporting function to accomplish the same thing:\n<p>error_reporting (E_ALL &amp; ~E_NOTICE);<\/p>\n<\/li>\n<\/ol>\n<p>Source of the problem\uff1a answers.yahoo<\/p>\n<p>Web site is in building<\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-09 21:11:18. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>programming-amp-design Retrieving original web address discoverer: Spearfish Hi, Does anybody know what I need to set my error reporting in PHP to if I want to suppress notices of undefined variables, but -not- any other notices? Thanks. go to your php folder and navigate to the php.ini file (might be in \/etc\/) and open it [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-656","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/656","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=656"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/656\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=656"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=656"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=656"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}