Critical Error with SSO Authentication
-
My LearnPress have recently updated to 4.2.0 and caused a serious problem that we may have to roll back or disable in the meantime. First and foremost, we use Learnpress for an intranet site that forces a login via an SSO authentication, we are using Login by Auth0. By default, we use a Force Login plugin that anyone pointing at the domain redirects to wp-login.php page (in which our Auth0 plugin is forced to authenticate the user without displaying the WordPress login fields). The site was displaying “Call to a member function get() on null” in an PHP Error Thrown message. We learned that the Login by Auth0 plugin was the culprit. But because all of the users are authenticated with the plugin, we had audited the plugins list and discovered that when activating LearnPress it was causing 500 error messages when users are logged out or not yet authenticated with wp-login.
Below is the stack trace of the error (directories and domain was modified):
Stack trace: #0 /samplerootdirectory/wp-content/plugins/auth0/functions.php(105): get_query_var('auth0_login_suc...') #1 /samplerootdirectory/wp-content/plugins/auth0/WP_Auth0.php(752): wp_auth0_can_show_wp_login_form() #2 /samplerootdirectory/wp-includes/class-wp-hook.php(310): wp_auth0_filter_login_override_url('https://www.sam...') #3 /samplerootdirectory/wp-includes/plugin.php(205): WP_Hook->apply_filters('https://www.sam...', Array) #4 /samplerootdirectory/wp-includes/general-template.php(459): apply_filters('login_url', 'https://www.sam...', '', false) #5 /samplerootdirectory/wp-content/plugins/learnpress/inc/lp-core-functions.php(1817): wp_login_url() #6 /samplerootdirectory/wp-content/plugins/learnpress/inc/class-lp-s in /samplerootdirectory/wp-includes/query.php on line 28 [21-Dec-2022 04:31:20 UTC] PHP Fatal error: Uncaught Error: Call to a member function get() on null in /samplerootdirectory/wp-includes/query.php:28We are using WordPress 6.1.1 in a PHP version 7.4 environment. This is occurring on both our sandbox and production environment. Any help will be appreciated.
The topic ‘Critical Error with SSO Authentication’ is closed to new replies.