• Resolved serhiiko911

    (@serhiiko911)


    It seems that the integration script calls is_user_using_two_factor() method on the wrong class and causes the Call to undefined method error.
    As the error shows, this method is called on WP2FA/Authenticator/Login while this method is from WP2FA\Admin\Helpers\User_Helper.

    WP2FA plugin version: 2.5.0
    Uncanny-Toolkit-for-LearnDash plugin version: 3.6.4.4

    I hope it gives you enough context.
    Please let me know if any more details required.

    Notice: Undefined index: action in /wp-content/plugins/uncanny-learndash-toolkit/src/includes/class-frontend-login-plus-2fa.php on line 439
    
    Fatal error: Uncaught Error: Call to undefined method WP2FA\Authenticator\Login::is_user_using_two_factor() in /wp-content/plugins/uncanny-learndash-toolkit/src/includes/class-frontend-login-plus-2fa.php:443 Stack trace: #0 /wp-includes/class-wp-hook.php(308): uncanny_learndash_toolkit\Frontend_Login_Plus_2fa->wp_login() #1 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #2 /wp-includes/plugin.php(517): WP_Hook->do_action() #3 /wp-includes/user.php(110): do_action() #4 /wp-login.php(1231): wp_signon() #5 {main} thrown in /wp-content/plugins/uncanny-learndash-toolkit/src/includes/class-frontend-login-plus-2fa.php on line 443
    

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Uncanny Owl

    (@uncannyowl)

    Hi @serhiiko911

    You’re right, thanks for alerting us to this. It seems like WP2FA changed some classes, resulting in the issue you reported.

    We have implemented a fix that supports both 2.4 and 2.5, as the methods are in different classes between the versions. We will include the change in the next release, and until then, the modified file has been uploaded here:

    https://we.tl/t-0wqF6144gd

    You can upload that file to your site by FTP, replacing the existing version, at this path:

    uncanny-learndash-toolkit/src/includes/class-frontend-login-plus-2fa.php

    Thread Starter serhiiko911

    (@serhiiko911)

    Thanks a lot for your help ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP2FA integration error’ is closed to new replies.