{"id":16831412,"date":"2023-06-19T19:41:01","date_gmt":"2023-06-19T19:41:01","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/another-php-8-1-issue\/"},"modified":"2023-06-19T19:41:01","modified_gmt":"2023-06-19T19:41:01","slug":"another-php-8-1-issue","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/another-php-8-1-issue\/","title":{"rendered":"Another PHP 8.1 issue"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">After upgrading from PHP 7.4 to 8.1, a few pages on our site now crash with this error in the log:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">16 {main}<br \/>thrown in \/home\/rv39cs3t\/public_html\/engole.info\/wp-content\/plugins\/zotpress\/lib\/shortcode\/shortcode.functions.php on line 597<br \/>[19-Jun-2023 17:42:43 UTC] PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in \/home\/rv39cs3t\/public_html\/engole.info\/wp-content\/plugins\/zotpress\/lib\/shortcode\/shortcode.functions.php:597<\/p>\n","protected":false},"template":"","class_list":["post-16831412","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16831412","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\/16831412\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=16831412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}