PHP Fatal Error on Login
-
Hello,
After updating to WordPress 5.2, I began receiving WordPress Site Health error emails and errors in my logs:
#0 /home/{theme}/public_html/wp-includes/class-wp-hook.php(286): convert_post_types(‘{email}…’)
#1 /home/{theme}/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
#2 /home/{theme}/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#3 /home/{theme}/public_html/wp-content/plugins/neoncrm-sign-in/neoncrm-sso.php(763): do_action(‘wp_login’, ‘{email}…’)
#4 /home/{theme}/public_html/wp-includes/class-wp-hook.php(286): neonsso_detect_sso_login(”)
#5 /home/{theme}/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#6 /home/{theme}/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#7 /home/{theme}/public_html/wp-settings.phpThese errors were preventing people from logging in via Neon.
I was able to trace the error back to this line from neoncrm-sso.php on line 763:
do_action( ‘wp_login’, $user->user_login );
I’ve changed that line to:
do_action( ‘wp_login’, $user->user_login, $user );
And the errors have stopped. Basing this off https://developer.ww.wp.xz.cn/reference/hooks/wp_login/
Hope this gets included in the next update! Thanks!
The topic ‘PHP Fatal Error on Login’ is closed to new replies.