{"id":17967113,"date":"2024-08-21T15:19:45","date_gmt":"2024-08-21T15:19:45","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/undefined-post-variable-warning\/"},"modified":"2024-08-21T15:19:45","modified_gmt":"2024-08-21T15:19:45","slug":"undefined-post-variable-warning","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/undefined-post-variable-warning\/","title":{"rendered":"Undefined $post variable Warning"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I am seeing the following PHP errors when PHP is set to PHP 8.1.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[21-Aug-2024 15:09:28 UTC] PHP Warning: Undefined variable $post in \/home\/domain\/public_html\/wp-content\/plugins\/ajax-filter-posts\/ajax-filter-posts.php on line 309<br \/>[21-Aug-2024 15:09:28 UTC] PHP Warning: Attempt to read property &#8220;ID&#8221; on null in \/home\/domain\/public_html\/wp-content\/plugins\/ajax-filter-posts\/ajax-filter-posts.php on line 309<\/p>\n","protected":false},"template":"","class_list":["post-17967113","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17967113","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\/17967113\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=17967113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}