{"id":3114259,"date":"2012-10-13T11:46:02","date_gmt":"2012-10-13T11:46:02","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/stdclass-as-array-error\/"},"modified":"2016-08-20T16:38:21","modified_gmt":"2016-08-20T16:38:21","slug":"stdclass-as-array-error","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/stdclass-as-array-error\/","title":{"rendered":"stdClass as array Error"},"content":{"rendered":"<p>Hello,<\/p>\n<p>I was working with my new website, I edited the theme and added posts and pages and everything was fine.<br \/>\nUntil today when checking the site i saw this error:<br \/>\n<strong>Cannot use object of type stdClass as array in \/home\/blackbne\/public_html\/wp-content\/themes\/Backstreet\/panel\/widgets\/social-counter-widget.php on line 52<\/strong><br \/>\nand nothing on the home page displayed or even inside the posts<\/p>\n<p>How can I solve it? and how this error came?<br \/>\nThanks<\/p>\n","protected":false},"template":"","class_list":["post-3114259","topic","type-topic","status-closed","hentry","topic-tag-stdclass"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/3114259","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/3114259\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=3114259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}