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

Fatal error on login screen: Uncaught TypeError: rawurlencode(): Argument #1 ($string) must be of type string, array given #136

Closed claytoncollie closed 1 year ago

claytoncollie commented 1 year ago

Describe the bug

I recently encountered a fatal error on the login screen.

Uncaught TypeError: rawurlencode(): Argument #1 ($string) must be of type string, array given
An error of type E_ERROR was caused in line 301 of the file /wp-content/plugins/10up-experience/includes/classes/SSO/SSO.php. Error message: Uncaught TypeError: rawurlencode(): Argument #1 ($string) must be of type string, array given in /wp-content/plugins/10up-experience/includes/classes/SSO/SSO.php:301
Stack trace:
#0 wp-content/plugins/10up-experience/includes/classes/SSO/SSO.php(301): rawurlencode(Array)
#1 wp-includes/class-wp-hook.php(308): TenUpExperience\SSO\SSO->process_client_login('')
#2 wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
#3 wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#4 wp-login.php(527): do_action('login_form_10up...')
#5 {main}
thrown

Steps to Reproduce

  1. Go to the login screen.
  2. Click the SSO button
  3. Do not have access
  4. Get sent back to the login screen

Screenshots, screen recording, code snippet

No response

Environment information

WordPress version 6.2.2 Current plugin: 10up Experience (version 1.10.2) PHP version 8.0.27

WordPress information

No response

Code of Conduct