Title: WP2FA integration error
Last modified: September 15, 2023

---

# WP2FA integration error

 *  Resolved [serhiiko911](https://wordpress.org/support/users/serhiiko911/)
 * (@serhiiko911)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/wp2fa-integration-error/)
 * 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.0Uncanny-
   Toolkit-for-LearnDash plugin version: 3.6.4.4I hope it gives you enough context.
   Please let me know if any more details required.
 *     ```wp-block-code
       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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwp2fa-integration-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Uncanny Owl](https://wordpress.org/support/users/uncannyowl/)
 * (@uncannyowl)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/wp2fa-integration-error/#post-17063476)
 * Hi [@serhiiko911](https://wordpress.org/support/users/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](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](https://wordpress.org/support/users/serhiiko911/)
 * (@serhiiko911)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/wp2fa-integration-error/#post-17117020)
 * 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.

 * ![](https://ps.w.org/uncanny-learndash-toolkit/assets/icon-256x256.jpg?rev=3400711)
 * [Uncanny Toolkit for LearnDash](https://wordpress.org/plugins/uncanny-learndash-toolkit/)
 * [Support Threads](https://wordpress.org/support/plugin/uncanny-learndash-toolkit/)
 * [Active Topics](https://wordpress.org/support/plugin/uncanny-learndash-toolkit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/uncanny-learndash-toolkit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/uncanny-learndash-toolkit/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [serhiiko911](https://wordpress.org/support/users/serhiiko911/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/wp2fa-integration-error/#post-17117020)
 * Status: resolved