{"id":2812946,"date":"2012-06-13T22:31:41","date_gmt":"2012-06-13T22:31:41","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/illegal-string-offset-total_users\/"},"modified":"2016-08-20T12:55:10","modified_gmt":"2016-08-20T12:55:10","slug":"illegal-string-offset-total_users","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/illegal-string-offset-total_users\/","title":{"rendered":"Illegal string offset &#039;total_users&#039;"},"content":{"rendered":"<p>see https:\/\/wordpress.org\/support\/topic\/illegal-string-offset-total-users?replies=5#post-2889483<\/p>\n<p>Direct after upgrading to 3.4 I noticed Illegal string offset &#8216;total_users&#8217; in update.php on line 75.<\/p>\n<p>On line 55 it requests <\/p>\n<p><code>$user_count = get_user_count( );<\/code><\/p>\n<p>I echo this value and it is an integer (2) so not an array<\/p>\n<p>on line 73 however it requests <\/p>\n<p><code>$user_count[&#039;total_users&#039;],<\/code><\/p>\n<p>(so an array&#8230;.. ) this is where it fails on my WP multisite install.<\/p>\n<p>So im thinking what could be wrong since my get_user_count() does not return an array but just &#8220;2&#8221; (so an integer)<\/p>\n<p>(but obviously this should be an array since it has been an array for always)<\/p>\n","protected":false},"template":"","class_list":["post-2812946","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/2812946","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\/2812946\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=2812946"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}