• Resolved ruen06

    (@ruen06)


    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor robertabela

    (@robert681)

    Hello @ruen06

    Thank you for using our plugin. Is this happening to just one user on your website, while it works well for all the others? If so, that is very strange.

    Does this user use a different login page / setup than the other users?

    By the way, we have a patch available for a similar / related issue and I’d recommend you to try it. Can you download the WP 2FA patch from our plugins patches section and advise if it helps?

    Looking forward to hearing from you.

    Thread Starter ruen06

    (@ruen06)

    Yes, it works well on other users. Only this user faces this issue.

    He is an admin. He logins as how I am but he is the only one who faces this. He faces this issue whenever his login session expires and he has to login again.

    This is the error log when he faces this issue again just now:

    [27-Jun-2023 06:38:00 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(242): 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 haven’t tried to download the patch release yet. Does anyone else using your plugin face this issue too?

    Plugin Contributor robertabela

    (@robert681)

    Hello @ruen06

    I’m afraid that no one else have reported the same issue. Can you please try the patch and advise if that works?

    Looking forward to hearing from you.

    Plugin Contributor robertabela

    (@robert681)

    Hello,

    We have just released update 2.5.0 of the plugin. Please update your copy of the plugin to ensure you use the latest version of the plugin with the latest fixes.

    Should you have any questions, please do not hesitate to ask.

    Have a great day.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘User cannot login after filling in 2FA code’ is closed to new replies.