10up / 10up-experience

The 10up Experience plugin configures WordPress to better protect and inform clients, aligned to 10up’s best practices.
GNU General Public License v2.0
129 stars 27 forks source link

10up SSO button disappears after upgrading to PHP 8.1 #117

Closed claytoncollie closed 2 years ago

claytoncollie commented 2 years ago

Describe the bug

The 10up Single Sign On button is not on the wp-admin screen after I upgrade to PHP 8.1

When I downgrade to PHP 8.0, the button re-appears and works as expected.

[20-Sep-2022 20:33:18 UTC] PHP Deprecated:  preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/html/wp-includes/formatting.php on line 5385
[20-Sep-2022 20:33:18 UTC] PHP Stack trace:
[20-Sep-2022 20:33:18 UTC] PHP   1. {main}() /var/www/html/wp-login.php:0
[20-Sep-2022 20:33:18 UTC] PHP   2. wp_signon($credentials = [], $secure_cookie = '') /var/www/html/wp-login.php:1221
[20-Sep-2022 20:33:18 UTC] PHP   3. wp_authenticate($username = NULL, $password = NULL) /var/www/html/wp-includes/user.php:95
[20-Sep-2022 20:33:18 UTC] PHP   4. sanitize_user($username = NULL, $strict = *uninitialized*) /var/www/html/wp-includes/pluggable.php:603
[20-Sep-2022 20:33:18 UTC] PHP   5. wp_strip_all_tags($string = NULL, $remove_breaks = *uninitialized*) /var/www/html/wp-includes/formatting.php:2115
[20-Sep-2022 20:33:18 UTC] PHP   6. preg_replace($pattern = '@<(script|style)[^>]*?>.*?</\\1>@si', $replacement = '', $subject = NULL) /var/www/html/wp-includes/formatting.php:5385
[20-Sep-2022 20:33:18 UTC] PHP Deprecated:  trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wp-includes/pluggable.php on line 604
[20-Sep-2022 20:33:18 UTC] PHP Stack trace:
[20-Sep-2022 20:33:18 UTC] PHP   1. {main}() /var/www/html/wp-login.php:0
[20-Sep-2022 20:33:18 UTC] PHP   2. wp_signon($credentials = [], $secure_cookie = '') /var/www/html/wp-login.php:1221
[20-Sep-2022 20:33:18 UTC] PHP   3. wp_authenticate($username = NULL, $password = NULL) /var/www/html/wp-includes/user.php:95
[20-Sep-2022 20:33:18 UTC] PHP   4. trim($string = NULL) /var/www/html/wp-includes/pluggable.php:604
[20-Sep-2022 20:33:18 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/pluggable.php:604) in /var/www/html/wp-includes/pluggable.php on line 1112
[20-Sep-2022 20:33:18 UTC] PHP Stack trace:
[20-Sep-2022 20:33:18 UTC] PHP   1. {main}() /var/www/html/wp-login.php:0
[20-Sep-2022 20:33:18 UTC] PHP   2. wp_clear_auth_cookie() /var/www/html/wp-login.php:1380
[20-Sep-2022 20:33:18 UTC] PHP   3. setcookie($name = 'wordpress_2aba90672a5eac279669f2af1cc60865', $value = ' ', $expires_or_options = 1632169998, $path = '/wp-admin', $domain = FALSE) /var/www/html/wp-includes/pluggable.php:1112
[20-Sep-2022 20:33:18 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/pluggable.php:604) in /var/www/html/wp-includes/pluggable.php on line 1113
[20-Sep-2022 20:33:18 UTC] PHP Stack trace:
[20-Sep-2022 20:33:18 UTC] PHP   1. {main}() /var/www/html/wp-login.php:0
[20-Sep-2022 20:33:18 UTC] PHP   2. wp_clear_auth_cookie() /var/www/html/wp-login.php:1380
[20-Sep-2022 20:33:18 UTC] PHP   3. setcookie($name = 'wordpress_sec_2aba90672a5eac279669f2af1cc60865', $value = ' ', $expires_or_options = 1632169998, $path = '/wp-admin', $domain = FALSE) /var/www/html/wp-includes/pluggable.php:1113
[20-Sep-2022 20:33:18 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/pluggable.php:604) in /var/www/html/wp-includes/pluggable.php on line 1114
[20-Sep-2022 20:33:18 UTC] PHP Stack trace:
[20-Sep-2022 20:33:18 UTC] PHP   1. {main}() /var/www/html/wp-login.php:0
[20-Sep-2022 20:33:18 UTC] PHP   2. wp_clear_auth_cookie() /var/www/html/wp-login.php:1380
[20-Sep-2022 20:33:18 UTC] PHP   3. setcookie($name = 'wordpress_2aba90672a5eac279669f2af1cc60865', $value = ' ', $expires_or_options = 1632169998, $path = '/wp-content/plugins', $domain = FALSE) /var/www/html/wp-includes/pluggable.php:1114
[20-Sep-2022 20:33:18 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/pluggable.php:604) in /var/www/html/wp-includes/pluggable.php on line 1115
[20-Sep-2022 20:33:18 UTC] PHP Stack trace:
[20-Sep-2022 20:33:18 UTC] PHP   1. {main}() /var/www/html/wp-login.php:0
[20-Sep-2022 20:33:18 UTC] PHP   2. wp_clear_auth_cookie() /var/www/html/wp-login.php:1380
[20-Sep-2022 20:33:18 UTC] PHP   3. setcookie($name = 'wordpress_sec_2aba90672a5eac279669f2af1cc60865', $value = ' ', $expires_or_options = 1632169998, $path = '/wp-content/plugins', $domain = FALSE) /var/www/html/wp-includes/pluggable.php:1115
[20-Sep-2022 20:33:18 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/pluggable.php:604) in /var/www/html/wp-includes/pluggable.php on line 1116
[20-Sep-2022 20:33:18 UTC] PHP Stack trace:
[20-Sep-2022 20:33:18 UTC] PHP   1. {main}() /var/www/html/wp-login.php:0
[20-Sep-2022 20:33:18 UTC] PHP   2. wp_clear_auth_cookie() /var/www/html/wp-login.php:1380
[20-Sep-2022 20:33:18 UTC] PHP   3. setcookie($name = 'wordpress_logged_in_2aba90672a5eac279669f2af1cc60865', $value = ' ', $expires_or_options = 1632169998, $path = '/', $domain = FALSE) /var/www/html/wp-includes/pluggable.php:1116
[20-Sep-2022 20:33:18 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/pluggable.php:604) in /var/www/html/wp-includes/pluggable.php on line 1117
[20-Sep-2022 20:33:18 UTC] PHP Stack trace:
[20-Sep-2022 20:33:18 UTC] PHP   1. {main}() /var/www/html/wp-login.php:0
[20-Sep-2022 20:33:18 UTC] PHP   2. wp_clear_auth_cookie() /var/www/html/wp-login.php:1380
[20-Sep-2022 20:33:18 UTC] PHP   3. setcookie($name = 'wordpress_logged_in_2aba90672a5eac279669f2af1cc60865', $value = ' ', $expires_or_options = 1632169998, $path = '/', $domain = FALSE) /var/www/html/wp-includes/pluggable.php:1117
[20-Sep-2022 20:33:18 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/pluggable.php:604) in /var/www/html/wp-includes/pluggable.php on line 1120
[20-Sep-2022 20:33:18 UTC] PHP Stack trace:
[20-Sep-2022 20:33:18 UTC] PHP   1. {main}() /var/www/html/wp-login.php:0
[20-Sep-2022 20:33:18 UTC] PHP   2. wp_clear_auth_cookie() /var/www/html/wp-login.php:1380
[20-Sep-2022 20:33:18 UTC] PHP   3. setcookie($name = 'wp-settings-0', $value = ' ', $expires_or_options = 1632169998, $path = '/') /var/www/html/wp-includes/pluggable.php:1120
[20-Sep-2022 20:33:18 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/pluggable.php:604) in /var/www/html/wp-includes/pluggable.php on line 1121
[20-Sep-2022 20:33:18 UTC] PHP Stack trace:
[20-Sep-2022 20:33:18 UTC] PHP   1. {main}() /var/www/html/wp-login.php:0
[20-Sep-2022 20:33:18 UTC] PHP   2. wp_clear_auth_cookie() /var/www/html/wp-login.php:1380
[20-Sep-2022 20:33:18 UTC] PHP   3. setcookie($name = 'wp-settings-time-0', $value = ' ', $expires_or_options = 1632169998, $path = '/') /var/www/html/wp-includes/pluggable.php:1121
[20-Sep-2022 20:33:18 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/pluggable.php:604) in /var/www/html/wp-includes/pluggable.php on line 1124
[20-Sep-2022 20:33:18 UTC] PHP Stack trace:
[20-Sep-2022 20:33:18 UTC] PHP   1. {main}() /var/www/html/wp-login.php:0
[20-Sep-2022 20:33:18 UTC] PHP   2. wp_clear_auth_cookie() /var/www/html/wp-login.php:1380
[20-Sep-2022 20:33:18 UTC] PHP   3. setcookie($name = 'wordpress_2aba90672a5eac279669f2af1cc60865', $value = ' ', $expires_or_options = 1632169998, $path = '/', $domain = FALSE) /var/www/html/wp-includes/pluggable.php:1124
[20-Sep-2022 20:33:18 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/pluggable.php:604) in /var/www/html/wp-includes/pluggable.php on line 1125
[20-Sep-2022 20:33:18 UTC] PHP Stack trace:
[20-Sep-2022 20:33:18 UTC] PHP   1. {main}() /var/www/html/wp-login.php:0
[20-Sep-2022 20:33:18 UTC] PHP   2. wp_clear_auth_cookie() /var/www/html/wp-login.php:1380
[20-Sep-2022 20:33:18 UTC] PHP   3. setcookie($name = 'wordpress_2aba90672a5eac279669f2af1cc60865', $value = ' ', $expires_or_options = 1632169998, $path = '/', $domain = FALSE) /var/www/html/wp-includes/pluggable.php:1125
[20-Sep-2022 20:33:18 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/pluggable.php:604) in /var/www/html/wp-includes/pluggable.php on line 1126
[20-Sep-2022 20:33:18 UTC] PHP Stack trace:
[20-Sep-2022 20:33:18 UTC] PHP   1. {main}() /var/www/html/wp-login.php:0
[20-Sep-2022 20:33:18 UTC] PHP   2. wp_clear_auth_cookie() /var/www/html/wp-login.php:1380
[20-Sep-2022 20:33:18 UTC] PHP   3. setcookie($name = 'wordpress_sec_2aba90672a5eac279669f2af1cc60865', $value = ' ', $expires_or_options = 1632169998, $path = '/', $domain = FALSE) /var/www/html/wp-includes/pluggable.php:1126
[20-Sep-2022 20:33:18 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/pluggable.php:604) in /var/www/html/wp-includes/pluggable.php on line 1127
[20-Sep-2022 20:33:18 UTC] PHP Stack trace:
[20-Sep-2022 20:33:18 UTC] PHP   1. {main}() /var/www/html/wp-login.php:0
[20-Sep-2022 20:33:18 UTC] PHP   2. wp_clear_auth_cookie() /var/www/html/wp-login.php:1380
[20-Sep-2022 20:33:18 UTC] PHP   3. setcookie($name = 'wordpress_sec_2aba90672a5eac279669f2af1cc60865', $value = ' ', $expires_or_options = 1632169998, $path = '/', $domain = FALSE) /var/www/html/wp-includes/pluggable.php:1127
[20-Sep-2022 20:33:18 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/pluggable.php:604) in /var/www/html/wp-includes/pluggable.php on line 1130
[20-Sep-2022 20:33:18 UTC] PHP Stack trace:
[20-Sep-2022 20:33:18 UTC] PHP   1. {main}() /var/www/html/wp-login.php:0
[20-Sep-2022 20:33:18 UTC] PHP   2. wp_clear_auth_cookie() /var/www/html/wp-login.php:1380
[20-Sep-2022 20:33:18 UTC] PHP   3. setcookie($name = 'wordpressuser_2aba90672a5eac279669f2af1cc60865', $value = ' ', $expires_or_options = 1632169998, $path = '/', $domain = FALSE) /var/www/html/wp-includes/pluggable.php:1130
[20-Sep-2022 20:33:18 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/pluggable.php:604) in /var/www/html/wp-includes/pluggable.php on line 1131
[20-Sep-2022 20:33:18 UTC] PHP Stack trace:
[20-Sep-2022 20:33:18 UTC] PHP   1. {main}() /var/www/html/wp-login.php:0
[20-Sep-2022 20:33:18 UTC] PHP   2. wp_clear_auth_cookie() /var/www/html/wp-login.php:1380
[20-Sep-2022 20:33:18 UTC] PHP   3. setcookie($name = 'wordpresspass_2aba90672a5eac279669f2af1cc60865', $value = ' ', $expires_or_options = 1632169998, $path = '/', $domain = FALSE) /var/www/html/wp-includes/pluggable.php:1131
[20-Sep-2022 20:33:18 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/pluggable.php:604) in /var/www/html/wp-includes/pluggable.php on line 1132
[20-Sep-2022 20:33:18 UTC] PHP Stack trace:
[20-Sep-2022 20:33:18 UTC] PHP   1. {main}() /var/www/html/wp-login.php:0
[20-Sep-2022 20:33:18 UTC] PHP   2. wp_clear_auth_cookie() /var/www/html/wp-login.php:1380
[20-Sep-2022 20:33:18 UTC] PHP   3. setcookie($name = 'wordpressuser_2aba90672a5eac279669f2af1cc60865', $value = ' ', $expires_or_options = 1632169998, $path = '/', $domain = FALSE) /var/www/html/wp-includes/pluggable.php:1132
[20-Sep-2022 20:33:18 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/pluggable.php:604) in /var/www/html/wp-includes/pluggable.php on line 1133
[20-Sep-2022 20:33:18 UTC] PHP Stack trace:
[20-Sep-2022 20:33:18 UTC] PHP   1. {main}() /var/www/html/wp-login.php:0
[20-Sep-2022 20:33:18 UTC] PHP   2. wp_clear_auth_cookie() /var/www/html/wp-login.php:1380
[20-Sep-2022 20:33:18 UTC] PHP   3. setcookie($name = 'wordpresspass_2aba90672a5eac279669f2af1cc60865', $value = ' ', $expires_or_options = 1632169998, $path = '/', $domain = FALSE) /var/www/html/wp-includes/pluggable.php:1133
[20-Sep-2022 20:33:18 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/html/wp-includes/pluggable.php:604) in /var/www/html/wp-includes/pluggable.php on line 1136
[20-Sep-2022 20:33:18 UTC] PHP Stack trace:
[20-Sep-2022 20:33:18 UTC] PHP   1. {main}() /var/www/html/wp-login.php:0
[20-Sep-2022 20:33:18 UTC] PHP   2. wp_clear_auth_cookie() /var/www/html/wp-login.php:1380
[20-Sep-2022 20:33:18 UTC] PHP   3. setcookie($name = 'wp-postpass_2aba90672a5eac279669f2af1cc60865', $value = ' ', $expires_or_options = 1632169998, $path = '/', $domain = FALSE) /var/www/html/wp-includes/pluggable.php:1136
[20-Sep-2022 20:33:18 UTC] PHP Deprecated:  rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wp-includes/formatting.php on line 2772
[20-Sep-2022 20:33:18 UTC] PHP Stack trace:
[20-Sep-2022 20:33:18 UTC] PHP   1. {main}() /var/www/html/wp-login.php:0
[20-Sep-2022 20:33:18 UTC] PHP   2. login_footer($input_id = *uninitialized*) /var/www/html/wp-login.php:1530
[20-Sep-2022 20:33:18 UTC] PHP   3. do_action($hook_name = 'login_footer') /var/www/html/wp-login.php:392
[20-Sep-2022 20:33:18 UTC] PHP   4. WP_Hook->do_action($args = [0 => '']) /var/www/html/wp-includes/plugin.php:476
[20-Sep-2022 20:33:18 UTC] PHP   5. WP_Hook->apply_filters($value = '', $args = [0 => '']) /var/www/html/wp-includes/class-wp-hook.php:331
[20-Sep-2022 20:33:18 UTC] PHP   6. wp_print_footer_scripts('') /var/www/html/wp-includes/class-wp-hook.php:307
[20-Sep-2022 20:33:18 UTC] PHP   7. do_action($hook_name = 'wp_print_footer_scripts') /var/www/html/wp-includes/script-loader.php:2139
[20-Sep-2022 20:33:18 UTC] PHP   8. WP_Hook->do_action($args = [0 => '']) /var/www/html/wp-includes/plugin.php:476
[20-Sep-2022 20:33:18 UTC] PHP   9. WP_Hook->apply_filters($value = '', $args = [0 => '']) /var/www/html/wp-includes/class-wp-hook.php:331
[20-Sep-2022 20:33:18 UTC] PHP  10. _wp_footer_scripts('') /var/www/html/wp-includes/class-wp-hook.php:307
[20-Sep-2022 20:33:18 UTC] PHP  11. print_footer_scripts() /var/www/html/wp-includes/script-loader.php:2125
[20-Sep-2022 20:33:18 UTC] PHP  12. WP_Scripts->do_footer_items() /var/www/html/wp-includes/script-loader.php:2030
[20-Sep-2022 20:33:18 UTC] PHP  13. WP_Dependencies->do_items($handles = FALSE, $group = 1) /var/www/html/wp-includes/class.wp-scripts.php:679
[20-Sep-2022 20:33:18 UTC] PHP  14. WP_Scripts->do_item($handle = 'password-strength-meter', $group = 1) /var/www/html/wp-includes/class.wp-dependencies.php:136
[20-Sep-2022 20:33:18 UTC] PHP  15. WP_Scripts->print_translations($handle = 'password-strength-meter', $display = FALSE) /var/www/html/wp-includes/class.wp-scripts.php:320
[20-Sep-2022 20:33:18 UTC] PHP  16. load_script_textdomain($handle = 'password-strength-meter', $domain = 'default', $path = NULL) /var/www/html/wp-includes/class.wp-scripts.php:605
[20-Sep-2022 20:33:18 UTC] PHP  17. untrailingslashit($string = NULL) /var/www/html/wp-includes/l10n.php:1018
[20-Sep-2022 20:33:18 UTC] PHP  18. rtrim($string = NULL, $characters = '/\\') /var/www/html/wp-includes/formatting.php:2772
[20-Sep-2022 20:33:18 UTC] PHP Deprecated:  rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wp-includes/formatting.php on line 2772
[20-Sep-2022 20:33:18 UTC] PHP Stack trace:
[20-Sep-2022 20:33:18 UTC] PHP   1. {main}() /var/www/html/wp-login.php:0
[20-Sep-2022 20:33:18 UTC] PHP   2. login_footer($input_id = *uninitialized*) /var/www/html/wp-login.php:1530
[20-Sep-2022 20:33:18 UTC] PHP   3. do_action($hook_name = 'login_footer') /var/www/html/wp-login.php:392
[20-Sep-2022 20:33:18 UTC] PHP   4. WP_Hook->do_action($args = [0 => '']) /var/www/html/wp-includes/plugin.php:476
[20-Sep-2022 20:33:18 UTC] PHP   5. WP_Hook->apply_filters($value = '', $args = [0 => '']) /var/www/html/wp-includes/class-wp-hook.php:331
[20-Sep-2022 20:33:18 UTC] PHP   6. wp_print_footer_scripts('') /var/www/html/wp-includes/class-wp-hook.php:307
[20-Sep-2022 20:33:18 UTC] PHP   7. do_action($hook_name = 'wp_print_footer_scripts') /var/www/html/wp-includes/script-loader.php:2139
[20-Sep-2022 20:33:18 UTC] PHP   8. WP_Hook->do_action($args = [0 => '']) /var/www/html/wp-includes/plugin.php:476
[20-Sep-2022 20:33:18 UTC] PHP   9. WP_Hook->apply_filters($value = '', $args = [0 => '']) /var/www/html/wp-includes/class-wp-hook.php:331
[20-Sep-2022 20:33:18 UTC] PHP  10. _wp_footer_scripts('') /var/www/html/wp-includes/class-wp-hook.php:307
[20-Sep-2022 20:33:18 UTC] PHP  11. print_footer_scripts() /var/www/html/wp-includes/script-loader.php:2125
[20-Sep-2022 20:33:18 UTC] PHP  12. WP_Scripts->do_footer_items() /var/www/html/wp-includes/script-loader.php:2030
[20-Sep-2022 20:33:18 UTC] PHP  13. WP_Dependencies->do_items($handles = FALSE, $group = 1) /var/www/html/wp-includes/class.wp-scripts.php:679
[20-Sep-2022 20:33:18 UTC] PHP  14. WP_Scripts->do_item($handle = 'user-profile', $group = 1) /var/www/html/wp-includes/class.wp-dependencies.php:136
[20-Sep-2022 20:33:18 UTC] PHP  15. WP_Scripts->print_translations($handle = 'user-profile', $display = FALSE) /var/www/html/wp-includes/class.wp-scripts.php:320
[20-Sep-2022 20:33:18 UTC] PHP  16. load_script_textdomain($handle = 'user-profile', $domain = 'default', $path = NULL) /var/www/html/wp-includes/class.wp-scripts.php:605
[20-Sep-2022 20:33:18 UTC] PHP  17. untrailingslashit($string = NULL) /var/www/html/wp-includes/l10n.php:1018
[20-Sep-2022 20:33:18 UTC] PHP  18. rtrim($string = NULL, $characters = '/\\') /var/www/html/wp-includes/formatting.php:2772

Steps to Reproduce

  1. Create an install running PHP 8.0
  2. Install and activate the plugin
  3. Go to the login screen
  4. Verify SSO button is present
  5. Upgrade to PHP 8.1
  6. Go to the login screen
  7. SSO button is no longer there

Screenshots, screen recording, code snippet

No response

Environment information

No response

WordPress information

`

wp-core

version: 6.0.2 site_language: en_US user_language: en_US timezone: +00:00 permalink: /%postname%/ https_status: true multisite: false user_registration: 0 blog_public: 1 default_comment_status: open environment_type: production user_count: 1 dotorg_communication: true

wp-paths-sizes

wordpress_path: /var/www/html wordpress_size: loading... uploads_path: /var/www/html/wp-content/uploads uploads_size: loading... themes_path: /var/www/html/wp-content/themes themes_size: loading... plugins_path: /var/www/html/wp-content/plugins plugins_size: loading... database_size: loading... total_size: loading...

wp-active-theme

name: Twenty Twenty-Two (twentytwentytwo) version: 1.2 author: the WordPress team author_website: https://wordpress.org/ parent_theme: none theme_features: core-block-patterns, post-thumbnails, responsive-embeds, editor-styles, html5, automatic-feed-links, block-templates, widgets-block-editor, wp-block-styles, editor-style theme_path: /var/www/html/wp-content/themes/twentytwentytwo auto_update: Disabled

wp-themes-inactive (2)

Twenty Twenty: version: 2.0, author: the WordPress team, Auto-updates disabled Twenty Twenty-One: version: 1.6, author: the WordPress team, Auto-updates disabled

wp-plugins-active (1)

10up Experience: version: 1.9.1, author: 10up, Auto-updates disabled

wp-plugins-inactive (2)

Akismet Anti-Spam: version: 5.0, author: Automattic, Auto-updates disabled Hello Dolly: version: 1.7.2, author: Matt Mullenweg, Auto-updates disabled

wp-media

image_editor: WP_Image_Editor_Imagick imagick_module_version: 1692 imagemagick_version: ImageMagick 6.9.12-50 Q16 x86_64 17254 https://legacy.imagemagick.org imagick_version: 3.7.0 file_uploads: File uploads is turned off post_max_size: 150m upload_max_filesize: 150m max_effective_size: 150 MB max_file_uploads: 20 imagick_limits: imagick::RESOURCETYPE_AREA: 12 GB imagick::RESOURCETYPE_DISK: 9.2233720368548E+18 imagick::RESOURCETYPE_FILE: 786432 imagick::RESOURCETYPE_MAP: 12 GB imagick::RESOURCETYPE_MEMORY: 6 GB imagick::RESOURCETYPE_THREAD: 1 imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, APNG, ART, ARW, AVI, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FILE, FITS, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, GV, H, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JBG, JBIG, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, K25, KDC, LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIDEO, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV gd_version: 2.3.3 gd_formats: GIF, JPEG, PNG, WebP, BMP, AVIF, XPM ghostscript_version: not available

wp-server

server_architecture: Linux 5.10.25-linuxkit x86_64 httpd_software: nginx/1.21.1 php_version: 8.1.9 64bit php_sapi: fpm-fcgi max_input_variables: 1000 time_limit: 30 memory_limit: 128M admin_memory_limit: 256M max_input_time: 60 upload_max_filesize: 150m php_post_max_size: 150m curl_version: 7.61.1 OpenSSL/1.1.1k suhosin: false imagick_availability: true pretty_permalinks: true

wp-database

extension: mysqli server_version: 5.7.35 client_version: mysqlnd 8.1.9 max_allowed_packet: 1073741824 max_connections: 20

wp-constants

WP_HOME: undefined WP_SITEURL: undefined WP_CONTENT_DIR: /var/www/html/wp-content WP_PLUGIN_DIR: /var/www/html/wp-content/plugins WP_MEMORY_LIMIT: 40M WP_MAX_MEMORY_LIMIT: 256M WP_DEBUG: true WP_DEBUG_DISPLAY: false WP_DEBUG_LOG: true SCRIPT_DEBUG: false WP_CACHE: false CONCATENATE_SCRIPTS: undefined COMPRESS_SCRIPTS: undefined COMPRESS_CSS: undefined WP_ENVIRONMENT_TYPE: Undefined DB_CHARSET: utf8 DB_COLLATE: undefined

wp-filesystem

wordpress: writable wp-content: writable uploads: writable plugins: writable themes: writable

`

Code of Conduct

johnwatkins0 commented 2 years ago

This is due to a change to the way static variables are handled in inherited class methods.

As of PHP 8.1.0, when a method using static variables is inherited (but not overridden), the inherited method will now share static variables with the parent method. This means that static variables in methods now behave the same way as static properties.

[Source]

I recommend converting the Singleton abstract class to a Trait (and longer-term moving away from the Singleton pattern generally).

johnwatkins0 commented 2 years ago

@claytoncollie Please test #119 when you get a chance.

claytoncollie commented 2 years ago

Thanks for the patch @johnwatkins0

I tested on PHP 8.1.9 and the SSO is now working again.