NeosIT / active-directory-integration2

WordPress plug-in "Next Active Directory Integration"
https://https://wordpress.org/plugins/next-active-directory-integration/
GNU General Public License v3.0
54 stars 25 forks source link

PHP 7.4 Compatibility #127

Closed jpurpleman closed 4 years ago

jpurpleman commented 4 years ago

Hello,

With PHP 7.4 and version 2.1.11 of NADI I'm seeing the following errors repeated countless of times on my wp-login.php after I login.

Deprecated: Function ldap_control_paged_result() is deprecated in /wp-content/plugins/next-active-directory-integration/vendor/adLDAP/adLDAP.php on line 984

Deprecated: Function ldap_control_paged_result_response() is deprecated in /wp-content/plugins/next-active-directory-integration/vendor/adLDAP/adLDAP.php on line 994

Deprecated: Function ldap_control_paged_result() is deprecated in /wp-content/plugins/next-active-directory-integration/vendor/adLDAP/adLDAP.php on line 1000

Notice: Trying to access array offset on value of type null in /wp-content/plugins/next-active-directory-integration/classes/Multisite/Configuration/Persistence/BlogConfigurationRepository.php on line 180

The login page then doesn't work cause the following comes up

Cannot modify header information - headers already sent by (output started at /wp-content/plugins/next-active-directory-integration/vendor/adLDAP/adLDAP.php:984) in /wp-includes/pluggable.php on line 943

Is there a timeline for releasing PHP 7.4 support?

Thank you.

schakko commented 4 years ago

@jpurpleman Thank you for the report! I've just released 2.1.12 which should fix the issues above.