{"id":5695,"date":"2019-01-15T10:27:48","date_gmt":"2019-01-15T10:27:48","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=5695"},"modified":"2021-11-17T09:03:36","modified_gmt":"2021-11-17T09:03:36","slug":"turn-off-display-error-in-php","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/turn-off-display-error-in-php\/","title":{"rendered":"TURN OFF DISPLAY ERROR IN PHP"},"content":{"rendered":"<p><b>Method 1 &amp; 2 &amp; 3<\/b><\/p>\n<p>https:\/\/<a class=\"ow_autolink\" href=\"http:\/\/www.gavick.com\/documentation\/joomla\/strict-standards-error-fix\" target=\"_blank\" rel=\"nofollow noopener\">\/&#8230;-standards-error-fix<\/a><\/p>\n<p><b>Method 4<\/b><\/p>\n<p>error_reporting(0);<\/p>\n<p>ini_set(&#8216;display_errors&#8217;, &#8216;0&#8217;); &nbsp; &nbsp; # don&#8217;t show any errors&#8230;<\/p>\n<p>error_reporting(E_ALL | ~E_STRICT); &nbsp;# &#8230;but do log them<\/p>\n<p><b>Few more<\/b><\/p>\n<p>http:\/\/<a class=\"ow_autolink\" href=\"http:\/\/www.balbooa.com\/knowledgebase\/32-documentation-faq-joomla\/193-how-to-fix-strict-standards-in-joomla\" target=\"_blank\" rel=\"nofollow noopener\">\/&#8230;-standards-in-joomla<\/a><\/p>\n<p>https:\/\/<a class=\"ow_autolink\" href=\"http:\/\/www.joomlart.com\/tutorials\/joomla-tutorials\/joomla-error-reporting-explained\" target=\"_blank\" rel=\"nofollow noopener\">\/&#8230;-reporting-explained<\/a><\/p>\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_35111\"><figure class=\"wp-block-embed wp-block-embed-youtube is-type-video is-provider-youtube epyt-figure\"><div class=\"wp-block-embed__wrapper\"><iframe loading=\"lazy\"  id=\"_ytid_33890\"  width=\"760\" height=\"427\"  data-origwidth=\"760\" data-origheight=\"427\" src=\"https:\/\/www.youtube.com\/embed\/?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;\" class=\"__youtube_prefs__  no-lazyload\" title=\"YouTube player\"  data-epytgalleryid=\"epyt_gallery_35111\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe><\/div><\/figure><div class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Method 1 &amp; 2 &amp; 3 https:\/\/\/&#8230;-standards-error-fix Method 4 error_reporting(0); ini_set(&#8216;display_errors&#8217;, &#8216;0&#8217;); &nbsp; &nbsp; # don&#8217;t show any errors&#8230; error_reporting(E_ALL | ~E_STRICT); &nbsp;# &#8230;but do log them Few more http:\/\/\/&#8230;-standards-in-joomla https:\/\/\/&#8230;-reporting-explained<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_joinchat":[],"footnotes":""},"categories":[5150],"tags":[5151,258,177],"class_list":["post-5695","post","type-post","status-publish","format-standard","hentry","category-php","tag-display","tag-error","tag-php"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/5695","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=5695"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/5695\/revisions"}],"predecessor-version":[{"id":25558,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/5695\/revisions\/25558"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=5695"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=5695"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=5695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}