Title: PHP 8
Last modified: October 24, 2023

---

# PHP 8

 *  [spiralarms](https://wordpress.org/support/users/spiralarms/)
 * (@spiralarms)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/php-8-76/)
 * 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’ve done to get it working again is change
 * function HTTPAuthenticationPlugin() {
 * to
 * function __construct() {
 * in http-authentication/http-authentication.php, in case that helps anyone else
   out.

The topic ‘PHP 8’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/http-authentication.svg)
 * [HTTP Authentication](https://wordpress.org/plugins/http-authentication/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/http-authentication/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/http-authentication/)
 * [Active Topics](https://wordpress.org/support/plugin/http-authentication/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/http-authentication/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/http-authentication/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [spiralarms](https://wordpress.org/support/users/spiralarms/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/php-8-76/)
 * Status: not a support question