{"id":17147328,"date":"2023-10-24T15:18:01","date_gmt":"2023-10-24T15:18:01","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/php-8-76\/"},"modified":"2023-10-24T15:18:01","modified_gmt":"2023-10-24T15:18:01","slug":"php-8-76","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/php-8-76\/","title":{"rendered":"PHP 8"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">We are still using this plugin, it basically works for the WP 5.9 we are using. However, having just updated to PHP 8, it started failing due to the class constructor syntax changing. All I&#8217;ve done to get it working again is change <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><kbd>function HTTPAuthenticationPlugin() {<\/kbd><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">to<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><kbd>function __construct() {<\/kbd><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">in http-authentication\/http-authentication.php, in case that helps anyone else out.<\/p>\n","protected":false},"template":"","class_list":["post-17147328","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17147328","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\/17147328\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=17147328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}