502 Bad Gateway | WordPress.org

Added the 2FA plugin on Sunday, this morning couldn’t log in to wp-admin and had an error email. Now the site is down!

Below is the email. Please help, just want my website back!

===== EMAIL========


Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

In this case, WordPress caught an error with one of your plugins, WP 2FA – Two-factor authentication for WordPress.

First, visit your website (https://captivekids.com/) and check for any visible issues. Next, visit the page where the error was caught (https://captivekids.com/wp-login.php?action=validate_2fa) and check for any visible issues.

Please contact your host for assistance with investigating this issue further.

If your site appears broken and you can’t access your dashboard normally, WordPress now has a special “recovery mode”. This lets you safely login to your dashboard and investigate further.


To keep your site safe, this link will expire in 1 day. Don’t worry about that, though: a new link will be emailed to you if the error occurs again after it expires.

When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.0.3
Active theme: Shopkeeper (version 2.4.5)
Current plugin: WP 2FA – Two-factor authentication for WordPress (version 2.3.0)
PHP version 7.4.30

Error Details
An error of type E_ERROR was caused in line 282 of the file /var/www/wp-content/plugins/wp-2fa/includes/classes/Admin/Controllers/class-settings.php. Error message: Uncaught Exception: Role provided does not exists – “” in /var/www/wp-content/plugins/wp-2fa/includes/classes/Admin/Controllers/class-settings.php:282
Stack trace:
#0 /var/www/wp-content/plugins/wp-2fa/includes/classes/Admin/Controllers/class-settings.php(301): WP2FA\Admin\Controllers\Settings::get_enabled_providers_for_role(”)
#1 /var/www/wp-content/plugins/wp-2fa/includes/classes/Authenticator/class-login.php(706): WP2FA\Admin\Controllers\Settings::is_provider_enabled_for_role(”, ‘totp’)
#2 /var/www/wp-includes/class-wp-hook.php(307): WP2FA\Authenticator\Login::login_form_validate_2fa(”)
#3 /var/www/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
#4 /var/www/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
#5 /var/www/wp-settings.php(620): do_action(‘wp_loaded’)
#6 /var/www/wp-config.php(96): require_once(‘/var/www/wp-set…’)
#7 /var/www/wp-load.php(50): require_once(‘/var/www/wp-con…’)
#8 /var/www/wp-login.php(12): require(‘/var/www/wp-loa…’)
#9 {main}

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


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer