• Our PHP 8.1 upgrade fails, with the errors listed below. The support forum suggests changes to wp-members/includes/class-wp-members-user.php to address similar problems, but the referenced code does not exist in that file.

    Advice?

    Warning: Undefined array key “HTTP_X_FORWARDED_PROTO” in /homepages/11/d690513201/htdocs/wp-config.php on line 86

    Fatal error: Uncaught TypeError: hash_equals(): Argument #1 ($known_string) must be of type string, null given in /homepages/11/d690513201/htdocs/wp-includes/pluggable.php:2540 Stack trace: #0 /homepages/11/d690513201/htdocs/wp-includes/pluggable.php(2540): hash_equals(NULL, ‘c4a4cfdd692ea1a…’) #1 /homepages/11/d690513201/htdocs/wp-content/plugins/wp-members-security/includes/class-wp-members-security.php(742): wp_check_password(‘February2@22’, NULL, NULL) #2 /homepages/11/d690513201/htdocs/wp-includes/class-wp-hook.php(310): WP_Members_Security->password_flag_login(‘/’) #3 /homepages/11/d690513201/htdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘/’, Array) #4 /homepages/11/d690513201/htdocs/wp-content/plugins/wp-members/includes/class-wp-members-user.php(126): apply_filters(‘wpmem_login_red…’, ‘/’, 2179) #5 /homepages/11/d690513201/htdocs/wp-content/plugins/wp-members/includes/class-wp-members.php(755): WP_Members_User->login() #6 /homepages/11/d690513201/htdocs/wp-content/plugins/wp-members/includes/class-wp-members.php(731): WP_Members->get_regchk(‘login’) #7 /homepages/11/d690513201/htdocs/wp-includes/class-wp-hook.php(308): WP_Members->get_action(”) #8 /homepages/11/d690513201/htdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(false, Array) #9 /homepages/11/d690513201/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #10 /homepages/11/d690513201/htdocs/wp-includes/template-loader.php(13): do_action(‘template_redire…’) #11 /homepages/11/d690513201/htdocs/wp-blog-header.php(19): require_once(‘/homepages/11/d…’) #12 /homepages/11/d690513201/htdocs/index.php(17): require(‘/homepages/11/d…’) #13 {main} thrown in /homepages/11/d690513201/htdocs/wp-includes/pluggable.php on line 2540

Viewing 1 replies (of 1 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    The support forum suggests changes to wp-members/includes/class-wp-members-user.php to address similar problems, but the referenced code does not exist in that file.

    To be clear, the ONLY time I recommend any changes to any file is to immediately patch a specific problem that will be addressed with the exact same change in the next plugin update.

    The issue you’ve noted has to do with the password change and integration with the WP-Members Security premium extension.

    That may be a version issue, or it might be something new that hasn’t been reported (and there is a pending update of WP-Members Security with an improvement to the password reset when the password generator is used – and that could be related here). Regardless of the issue, this ww.wp.xz.cn forum is only for core WP-Members issues. Premium extension support needs to be handled here: https://rocketgeek.com/contact/extension-support/

Viewing 1 replies (of 1 total)

The topic ‘Errors After PHP 8.1 upgrade’ is closed to new replies.