{"id":19028423,"date":"2026-09-24T14:21:19","date_gmt":"2026-09-24T14:21:19","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/php-v8-x\/"},"modified":"2026-09-24T14:21:19","modified_gmt":"2026-09-24T14:21:19","slug":"php-v8-x","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/php-v8-x\/","title":{"rendered":"PHP v8.x+"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">My client is using this plugin, and I get errors when trying to access it.<br \/>Looking at the log, it seems like it has to do with variables type.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>An error of type E_ERROR was caused in line 449 of the file \/home\/XXXXXX\/public_html\/wp-content\/plugins\/googleanalytics\/class\/class-ga-helper.php. Error message: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given in \/home\/XXXXXX\/public_html\/wp-content\/plugins\/googleanalytics\/class\/class-ga-helper.php:449<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Can you make sure your code is up to date for PHP v8.x+?<\/p>\n","protected":false},"template":"","class_list":["post-19028423","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19028423","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\/19028423\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=19028423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}