Title: Needs a patch to work with PHP8
Last modified: March 29, 2024

---

# Needs a patch to work with PHP8

 *  [mattweatherford](https://wordpress.org/support/users/mattweatherford/)
 * (@mattweatherford)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/needs-a-patch-to-work-with-php8/)
 * This plugin works so well with sites that have underlying Shibboleth login – 
   it pulls the PHP session variables in and sets the username from the variable
   you choose. Can set the email address as well.
 * But it is broken in PHP8 due to a change. Here are the edits that are needed 
   to make it work:
 * in the file: http-authentication.php
 *     ```wp-block-code
       /*  OLD WAY:
               function HTTPAuthenticationPlugin() {
       */
       /*  NEW WAY: */
               function __construct() {
       ```
   
 * in the file: options-page.php
 *     ```wp-block-code
       /*  OLD WAY:
               function HTTPAuthenticationOptionsPage($plugin, $group, $page, $options, $title = 'HTTP Authentication') {
       */
       /*  NEW WAY: */
               function __construct($plugin, $group, $page, $options, $title = 'HTTP Authentication') {
       ```
   

The topic ‘Needs a patch to work with PHP8’ is closed to new replies.

 * ![](https://ps.w.org/http-auth/assets/icon.svg?rev=1785371)
 * [HTTP Auth](https://wordpress.org/plugins/http-auth/)
 * [Support Threads](https://wordpress.org/support/plugin/http-auth/)
 * [Active Topics](https://wordpress.org/support/plugin/http-auth/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/http-auth/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/http-auth/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [mattweatherford](https://wordpress.org/support/users/mattweatherford/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/needs-a-patch-to-work-with-php8/)
 * Status: not a support question