• Resolved IQComputing

    (@iqcomputing)


    Hello,

    I’m not sure why but my website keeps getting notices about the following Fatal Error:

    PHP Fatal error:  Uncaught Exception: Non existing provider  in wp-content/plugins/wp-2fa/includes/classes/Admin/Controllers/class-settings.php:315
    Stack trace:
    #0 wp-content/plugins/wp-2fa/includes/classes/Authenticator/class-login.php(682): WP2FA\Admin\Controllers\Settings::is_provider_enabled_for_role()
    #1 wp-includes/class-wp-hook.php(307): WP2FA\Authenticator\Login::login_form_validate_2fa()
    #2 wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #3 wp-includes/plugin.php(476): WP_Hook->do_action()
    #4 wp-login.php(518): do_action()
    #5 {main}
      thrown in wp-content/plugins/wp-2fa/includes/classes/Admin/Controllers/class-settings.php on line 315

    Any ideas why this is happening and how it can be circumvented?

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

    (@robert681)

    Hello @iqcomputing

    Thank you for your email and for using our plugin.

    I am sorry to read about your issue. can you please answer the below questions to help us better understand the problem?

    1) What version of the plugin, WordPress and PHP are you running?
    2) When are you getting this error? Do you know how to reproduce it? If yes, can you please tell us how?
    3) Would you be able to share a screenshot of the plugin settings? If not, can you tell us about the setup, for example which methods you have available, if you have excluded any users etc?

    Looking forward to hearing from you.

    Trialing the (inexplicably pricey) paid version. Getting the same as @iqcomputing with plugin version 2.2.1 and WP 6.0. This is when email is used as backup method. TOTP and backup codes working fine, but email backup method gives after the code is submitted :

    Fatal error: Uncaught Exception: Non existing provider backup_email in ***\wp-content\plugins\wp-2fa-premium\includes\classes\Admin\Controllers\class-settings.php:315 
    Stack trace: 
    #0 ***\wp-content\plugins\wp-2fa-premium\includes\classes\Authenticator\class-login.php(682): WP2FA\Admin\Controllers\Settings::is_provider_enabled_for_role('subscriber', 'backup_email') 
    #1 ***\wp-includes\class-wp-hook.php(307): WP2FA\Authenticator\Login::login_form_validate_2fa('') 
    #2 ***\wp-includes\class-wp-hook.php(331): WP_Hook->apply_filters('', Array) 
    #3 ***\wp-includes\plugin.php(476): WP_Hook->do_action(Array) 
    #4 ***\wp-content\plugins\theme-my-login\includes\actions.php(361): do_action('login_form_vali...') 
    #5 ***\wp-includes\class-wp-hook.php(307): tml_action_handler('') 
    #6 ***\wp-includes\class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) 
    #7 ***\wp-includes\plugin.php(476): WP_Hook->do_action(Array) 
    #8 ***\wp-includes\template-loader.php(13): do_action('template_redire...') 
    #9 ***\wp-blog-header.php(19): require_once('***...') 
    #10 ***\index.php(17): require('***...') 
    #11 {main} thrown in ***\wp-content\plugins\wp-2fa-premium\includes\classes\Admin\Controllers\class-settings.php on line 315

    Have in mind I’m using this in conjunction with “Theme My login” plugin (and it works for TOTP and Backup codes, as I mentioned), although very … very unfortunately “WP 2FA” does no offer any kind of integration with it (or other login types like ajax logins for that matter).

    Plugin Contributor robertabela

    (@robert681)

    Hello @joroabv

    Thank you for trying our plugin. I am sorry to read about your issue. As per the forums’ guidelines please open your own forum thread if you need support from us.

    You can also send us an email at [email protected] if you require support, especially if you are trying / using the premium edition of the plugin.

    Thank you for your cooperation. We look forward to hearing from you.

    Hello @robert681

    I’m working with @iqcomputing on this issue. The problem might be another plugin handling user registration on the front end. Is there anything special happening when creating a user in the admin panel that should happen if the user is registered with the frontend registration method?

    What ends up happening is the user logs in, and it is met with a screen with a blank modal in the center. When they refresh, they’re met with the front page as expected.

    The settings are more or less default.

    [x] One-time code via email (HOTP)
    Allow user to specify the email address of choice? [No]
    [x] Backup codes
    [x] Only for specific users and roles

    We have 2 custom roles on the website, which are input into the Roles select. The specific user’s box is empty.

    [x] Users have to configure 2FA straight away.
    [x] Frontend 2FA settings page (/configure-2-factor-authentication/)

    Please let me know if there’s anything else I can do to help with this issue.

    Plugin Contributor robertabela

    (@robert681)

    Hello @howdy_mcgee

    Thank you for your update.

    What plugin are you using for users registrations please? The error is created when there is no “2FA method” configured for a user, but this should not be the case.

    We’ll try to recreate your setup on our end and see if we can reproduce the issue. If we cannot (because of the many different parameters) let’s get in touch over email (via [email protected]) so you can share more details about your setup and we can work on the issue.

    Looking forward to hearing from you.

    Hello @robert681

    The user registration process is a custom form. In the end we still call wp_insert_user(). Maybe we need to set specific metadata after user creation? Otherwise, I can reach out via email for more information.

    Plugin Contributor robertabela

    (@robert681)

    Hello @howdy_mcgee

    Yes please, send us an email at [email protected] so you can share more technical details etc.

    Please make reference to this ticket in the email.

    Looking forward to hearing from you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Fatal Error: Non-Existing Provider’ is closed to new replies.