Title: Undefined function
Last modified: September 22, 2022

---

# Undefined function

 *  Resolved [keengamer](https://wordpress.org/support/users/keengamer/)
 * (@keengamer)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/undefined-function-15/)
 * Hello, well, you have the issues here several times so I’m not really sure why
   you asked me to create a new topic, but as you wish. We have the same issues 
   as others.
 * Error Details
    ============= An error of type E_ERROR was caused in line 813 
   of the file /home/keengamer/public_html/wp-content/plugins/wp-2fa/includes/classes/
   Authenticator/class-login.php. Error message: Uncaught Error: Call to undefined
   function WP2FA\Authenticator\login_header() in /home/keengamer/public_html/wp-
   content/plugins/wp-2fa/includes/classes/Authenticator/class-login.php:813 Stack
   trace: #0 /home/keengamer/public_html/wp-includes/class-wp-hook.php(307): WP2FA\
   Authenticator\Login::login_form_validate_2fa() #1 /home/keengamer/public_html/
   wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #2 /home/keengamer/
   public_html/wp-includes/plugin.php(476): WP_Hook->do_action() #3 /home/keengamer/
   public_html/wp-settings.php(620): do_action() #4 /home/keengamer/public_html/
   wp-config.php(78): require_once(‘/home/keengamer…’) #5 /home/keengamer/public_html/
   wp-load.php(50): require_once(‘/home/keengamer…’) #6 /home/keengamer/public_html/
   wp-blog-header.php(13): require_once(‘/home/keengamer…’) #7 /home/keengamer/public_html/
   index.php(17): require(‘/home/keengamer…’) #8 {main} thrown`

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

 *  Plugin Contributor [robertabela](https://wordpress.org/support/users/robert681/)
 * (@robert681)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/undefined-function-15/#post-16037147)
 * Hello [@keengamer](https://wordpress.org/support/users/keengamer/)
 * Thank you for opening your own thread.
 * We’ve done some troubleshooting but we still do not know what is causing this
   issue, so we will need more information from you to understand the context of
   this issue.
 * From our initial troubleshooting, it seems that a function that should be available
   during an interim login is not there. Can you confirm if this is the case on 
   your setup? If not, can you please tell us how you / your users are reproducing
   the issue on your website?
 * We have prepared a patched version of the plugin that “forces” the function to
   be there. [Click here to download](https://www.wpwhitesecurity.com/support/plugins-patches/)
   the _20220923 WP2FA v2.3.0 – undefined function_ patch.
 * Note that this is a blind fix and a workaround, not a solution. Even if it works,
   we want to learn more about the problem and identify the cause rather than just
   working around it. If you’d like to help us, can you please send us the System
   Information file (from the “Help & Contact Us” section in he plugin) via email
   at [support@wpwhitesecurity.com](https://wordpress.org/support/topic/undefined-function-15/support@wpwhitesecurity.com?output_format=md)?
 * We’d like to see what other plugins you have installed on your website and other
   setup technical details. Please do not share the system information file on this
   forum since it contains technical details about your website’s setup.
 * Looking forward to hearing from you.
 * **P.S.** _We have asked you to open your own support forum thread because even
   though you are experiencing the same problem, the source of the problem can be
   completely different from that of the other user (considering every website has
   a different list of plugins, theme install etc). So by doing so it is easier 
   to troubleshoot issues, keep track of who is experiencing the issue etc, thus
   we can provide you with more efficient support._
    -  This reply was modified 3 years, 8 months ago by [robertabela](https://wordpress.org/support/users/robert681/).
      Reason: minor change to make the text that is not "part of the technical response"
      more visible
 *  Thread Starter [keengamer](https://wordpress.org/support/users/keengamer/)
 * (@keengamer)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/undefined-function-15/#post-16037769)
 * Hello,
 * I just replaced it with your update, we’ll see. However it’s hard to replicate
   it. I use it just for admins and two other people have more rights on the site.
   It hasn’t happened to me but most likely to those two other guys who are not 
   admins but have some critical rights.
 * I will be unavailable till Oct 3rd so for now let’s try and see if it happens
   again. However, I think there is 30 days until they need to reauthorize. I can
   try to force them to redo it but not now. After I’m back…
 *  Plugin Contributor [robertabela](https://wordpress.org/support/users/robert681/)
 * (@robert681)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/undefined-function-15/#post-16039448)
 * Sure, keep us posted please.
 * Have a great weekend.
 *  Plugin Contributor [robertabela](https://wordpress.org/support/users/robert681/)
 * (@robert681)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/undefined-function-15/#post-16084439)
 * Hello [@keengamer](https://wordpress.org/support/users/keengamer/)
 * I just wanted to touch base with you, checking you have an update for us.
 * Looking forward to hearing from you and thank you in advance for your cooperation.
 *  Thread Starter [keengamer](https://wordpress.org/support/users/keengamer/)
 * (@keengamer)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/undefined-function-15/#post-16093411)
 * Hello. For now there is no update and we haven’t got any more issues right now.
   Maybe the update has fixed the problem.
 *  Plugin Contributor [robertabela](https://wordpress.org/support/users/robert681/)
 * (@robert681)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/undefined-function-15/#post-16108549)
 * I am glad to hear [@keengamer](https://wordpress.org/support/users/keengamer/)
 * Should there be anything else we can assist you with, please do not hesitate 
   to ask. Also, please do not forget to spare a minute to **[rate our plugin and service](https://wordpress.org/support/plugin/wp-2fa/reviews/)**.
   These ratings are really helpful.
 * Thanks and have a great day.

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

The topic ‘Undefined function’ is closed to new replies.

 * ![](https://ps.w.org/wp-2fa/assets/icon-256x256.png?rev=2961533)
 * [WP 2FA - Two-factor authentication for WordPress](https://wordpress.org/plugins/wp-2fa/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-2fa/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-2fa/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-2fa/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-2fa/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-2fa/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [robertabela](https://wordpress.org/support/users/robert681/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/undefined-function-15/#post-16108549)
 * Status: resolved