{"id":3463,"date":"2014-12-09T14:50:32","date_gmt":"2014-12-09T14:50:32","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2014\/12\/09\/strict-standards-fix\/"},"modified":"2020-10-13T17:38:44","modified_gmt":"2020-10-13T21:38:44","slug":"strict-standards-fix","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/website\/strict-standards-fix\/","title":{"rendered":"Fixing the Strict Standards Error in php.ini"},"content":{"rendered":"<div class=\"in_this_tutorial\">\n<h2>In this tutorial:<\/h2>\n<p><a class=\"btn btn-primary\" href=\"#what\" type=\"button\">What it is<\/a> <a class=\"btn btn-primary\" href=\"#why\" type=\"button\">Why it displays<\/a> <a class=\"btn btn-primary\" href=\"#fix\" type=\"button\">How to fix it<\/a><\/p>\n<\/div>\n<p>There are times when your site will give <strong>PHP errors<\/strong> after an upgrade or a site move that were not there before. One of the more common errors we see with Content Management Systems is the <strong>strict standards<\/strong> error. It normally appears at the top of the page and looks something like the following one from a Joomla site.<\/p>\n<pre class=\"code_block\">Strict Standards: Non-static method JLoader::import() should not be called statically in  on line 34<\/pre>\n<p>This error in particular can seem confusing since it was not in your previous setup. Never fear, this is nothing terrible and easy to take care of.<\/p>\n<p><a name=\"what\"><\/a><\/p>\n<h2>What is the strict standards error?<\/h2>\n<p>This is not an actual \u2018error\u2019 message but merely an informational message meant more for developers. It does not mean that code needs to be altered in your script.<\/p>\n<p><a name=\"why\"><\/a><\/p>\n<h2>Why you are getting the strict standards message<\/h2>\n<p>The <em>E_STRICT<\/em> setting was not included in the <em>E_ALL<\/em> group setting until PHP version 5.4, so it had to explicitly be set to report the messages. In most cases, this was not part of a default setting, so it did not show up. As of 5.4, however, <em>E_ALL<\/em> included <em>E_STRICT<\/em> so it now displays unless specifically excluded. If you are coming from a server that has a PHP version lower than 5.4, this may be why the error is displaying on your site with our servers and did not display on the old server.<\/p>\n<p><a name=\"fix\"><\/a><\/p>\n<h2>How to remove the \u2018Strict Standards\u2019 message<\/h2>\n<ol class=\"article_list\">\n<li><a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/how-to-log-into-cpanel\/\">Log into your cPanel dashboard<\/a>.\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><a href=\"\/support\/images\/stories\/php\/strict-standards\/file-manager.png\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 15px 15px 15px;\" title=\"Click here to view the larger image\" src=\"\/support\/images\/stories\/php\/strict-standards\/file-manager.png\" alt=\"click file manager icon\" width=\"200\"><\/a>\n<div style=\"clear: both;\"><\/div>\n<p>Find the <em>Files<\/em> section and click on the <strong>File Manager<\/strong> icon.<\/p>\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><a href=\"\/support\/images\/stories\/php\/strict-standards\/2-open-php-ini.png\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 15px 15px 15px;\" title=\"Click here to view the larger image\" src=\"\/support\/images\/stories\/php\/strict-standards\/2-open-php-ini.png\" alt=\"open the php.ini\" width=\"200\"><\/a>\n<div style=\"clear: both;\"><\/div>\n<p>Once in the <em>File Manager<\/em>, navigate to the <strong>php.ini<\/strong> file and <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/cpanel-multiphp-ini-editor\/\">open it for editing<\/a>. If you do not have a <em>php.ini<\/em> file, please <a href=\"https:\/\/www.inmotionhosting.com\/support\/amp\/how-to-get-great-technical-support\/\">contact Live Support<\/a> so they can place one in your account for you.<\/p>\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><a href=\"\/support\/images\/stories\/php\/strict-standards\/3-error-reporting.png\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 15px 15px 15px;\" title=\"Click here to view the larger image\" src=\"\/support\/images\/stories\/php\/strict-standards\/3-error-reporting.png\" alt=\"find the error reporting\" width=\"200\"><\/a>\n<div style=\"clear: both;\"><\/div>\n<p>Inside the <em>php.ini<\/em> file, locate the section for error reporting and then locate your particular setting. It will be the one without the semicolon \u2018;\u2019 in front of it.<\/p>\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li>Add <strong> &amp; ~E_STRICT<\/strong> to the end of the active error reporting line. For example, if your current setting is:\n<div class=\"code_block\">error_reporting = E_ALL &amp; ~E_NOTICE &amp; ~E_DEPRECATED<\/div>\n<p>You would change it to read:<\/p>\n<div class=\"code_block\">error_reporting = E_ALL &amp; ~E_NOTICE &amp; ~E_DEPRECATED &amp; ~E_STRICT<\/div>\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li>Click on the <strong>Save Changes<\/strong> button in the upper right corner of the screen.\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<\/ol>\n<table class=\"article_table\" style=\"width: 100%;\">\n<tbody>\n<tr>\n<th>Before<\/th>\n<th>After<\/th>\n<\/tr>\n<tr>\n<td><a href=\"\/support\/images\/stories\/php\/strict-standards\/3-error-reporting.png\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" title=\"Click here to view the larger image\" src=\"\/support\/images\/stories\/php\/strict-standards\/3-error-reporting.png\" alt=\"settings prior to change\" width=\"100%\"><\/a>\n<div style=\"clear: both;\"><\/div>\n<\/td>\n<td><a href=\"\/support\/images\/stories\/php\/strict-standards\/4-final.png\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" title=\"Click here to view the larger image\" src=\"\/support\/images\/stories\/php\/strict-standards\/4-final.png\" alt=\"\" width=\"100%\"><\/a>\n<div style=\"clear: both;\"><\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial: What it is Why it displays How to fix it There are times when your site will give PHP errors after an upgrade or a site move that were not there before. One of the more common errors we see with Content Management Systems is the strict standards error. It normally appears<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/strict-standards-fix\/\"> Read More ><\/a><\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4288,4335],"tags":[],"class_list":["post-3463","post","type-post","status-publish","format-standard","hentry","category-website","category-error-numbers"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Fixing the Strict Standards Error in php.ini | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"Need to disable the &#039;strict standards&#039; error message in your php application? Learn how in this article.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/strict-standards-fix\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Fixing the Strict Standards Error in php.ini | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"Need to disable the &#039;strict standards&#039; error message in your php application? Learn how in this article.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/website\/strict-standards-fix\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2014-12-09T14:50:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-10-13T21:38:44+00:00\" \/>\n<meta name=\"author\" content=\"Scott Mitchell\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Scott Mitchell\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/strict-standards-fix\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/strict-standards-fix\/\"},\"author\":{\"name\":\"Scott Mitchell\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/d850efb28ef3573db7d24b0d8fa9eaed\"},\"headline\":\"Fixing the Strict Standards Error in php.ini\",\"datePublished\":\"2014-12-09T14:50:32+00:00\",\"dateModified\":\"2020-10-13T21:38:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/strict-standards-fix\/\"},\"wordCount\":401,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"Website\",\"Website Error Numbers\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/strict-standards-fix\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/strict-standards-fix\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/website\/strict-standards-fix\/\",\"name\":\"Fixing the Strict Standards Error in php.ini | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2014-12-09T14:50:32+00:00\",\"dateModified\":\"2020-10-13T21:38:44+00:00\",\"description\":\"Need to disable the 'strict standards' error message in your php application? Learn how in this article.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/strict-standards-fix\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/strict-standards-fix\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/strict-standards-fix\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Fixing the Strict Standards Error in php.ini\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/d850efb28ef3573db7d24b0d8fa9eaed\",\"name\":\"Scott Mitchell\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/scott\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Fixing the Strict Standards Error in php.ini | InMotion Hosting","description":"Need to disable the 'strict standards' error message in your php application? Learn how in this article.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.inmotionhosting.com\/support\/website\/strict-standards-fix\/","og_locale":"en_US","og_type":"article","og_title":"Fixing the Strict Standards Error in php.ini | InMotion Hosting","og_description":"Need to disable the 'strict standards' error message in your php application? Learn how in this article.","og_url":"https:\/\/www.inmotionhosting.com\/support\/website\/strict-standards-fix\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2014-12-09T14:50:32+00:00","article_modified_time":"2020-10-13T21:38:44+00:00","author":"Scott Mitchell","twitter_card":"summary_large_image","twitter_creator":"@InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"Scott Mitchell","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/strict-standards-fix\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/strict-standards-fix\/"},"author":{"name":"Scott Mitchell","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/d850efb28ef3573db7d24b0d8fa9eaed"},"headline":"Fixing the Strict Standards Error in php.ini","datePublished":"2014-12-09T14:50:32+00:00","dateModified":"2020-10-13T21:38:44+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/strict-standards-fix\/"},"wordCount":401,"commentCount":2,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["Website","Website Error Numbers"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/website\/strict-standards-fix\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/strict-standards-fix\/","url":"https:\/\/www.inmotionhosting.com\/support\/website\/strict-standards-fix\/","name":"Fixing the Strict Standards Error in php.ini | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2014-12-09T14:50:32+00:00","dateModified":"2020-10-13T21:38:44+00:00","description":"Need to disable the 'strict standards' error message in your php application? Learn how in this article.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/strict-standards-fix\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/website\/strict-standards-fix\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/strict-standards-fix\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"Fixing the Strict Standards Error in php.ini"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/d850efb28ef3573db7d24b0d8fa9eaed","name":"Scott Mitchell","url":"https:\/\/www.inmotionhosting.com\/support\/author\/scott\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":null,"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/3463","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=3463"}],"version-history":[{"count":1,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/3463\/revisions"}],"predecessor-version":[{"id":62401,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/3463\/revisions\/62401"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=3463"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=3463"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=3463"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}