User cannot login after filling in 2FA code
-
Hi, one of the users on our site is facing login issue. He cannot log in after filling in the 2FA code. The error message is “There has been a critical error on this website.”
After resetting the 2FA, he can log in as usual but he needs to set up 2FA (this is required on the website). Then he will face the login issue again the next time he logs in.This is the PHP error log:
[05-Jun-2023 03:14:05 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function WP_Defender\Component\Login_Lockout::process_fail_attempt(), 1 passed in /var/web/site/public_html/wp-includes/class-wp-hook.php on line 308 and exactly 2 expected in /var/web/site/public_html/wp-content/plugins/wp-defender/src/component/login-lockout.php:183
PHP Stacktrace:
– undefined- undefined- undefined- undefined- undefined- undefined- undefined- undefined- undefined- undefined- undefined- undefined- undefined- undefined- undefined- undefined- undefined- undefined- undefined/var/web/site/public_html/wp-includes/class-wp-hook.php(308): WP_Defender\Component\Login_Lockout->process_fail_attempt(‘nhuang@mgprecis…’)/var/web/site/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)/var/web/site/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)/var/web/site/public_html/wp-content/plugins/wp-2fa/includes/classes/Authenticator/class-login.php(720): do_action(‘wp_login_failed’, ‘nhuang@mgprecis…’)/var/web/site/public_html/wp-includes/class-wp-hook.php(308): WP2FA\Authenticator\Login::login_form_validate_2fa(”)/var/web/site/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(”, Array)/var/web/site/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)/var/web/site/public_html/wp-login.php(527): do_action(‘login_form_vali…’)/var/web/site/public_html/wp-content/plugins/wp-defender/src/controller/mask-login.php(183): require_once(‘/var/web/site/p…’)/var/web/site/public_html/wp-content/plugins/wp-defender/src/controller/mask-login.php(243): WP_Defender\Controller\Mask_Login->show_login_page()/var/web/site/public_html/wp-includes/class-wp-hook.php(308): WP_Defender\Controller\Mask_Login->handle_login_request(”)/var/web/site/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)/var/web/site/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)/var/web/site/public_html/wp-settings.php(623): do_action(‘init’)/var/web/site/public_html/wp-config.php(93): require_once(‘/var/web/site/p…’)/var/web/site/public_html/wp-load.php(50): require_once(‘/var/web/site/p…’)/var/web/site/public_html/wp-blog-header.php(13): require_once(‘/var/web/site/p…’)/var/web/site/public_html/index.php(17): require(‘/var/web/site/p…’){main} thrown in /var/web/site/public_html/wp-content/plugins/wp-defender/src/component/login-lockout.php on line 183
I will also contact Defender Pro developer to see which is the plugin that’s causing the issue or any solution to solve this.
- The topic ‘User cannot login after filling in 2FA code’ is closed to new replies.