Multisite error: Uncaught Exception: Role provided does not exists
-
Hello,
we are getting the error below for “site admins”:
PHP Fatal error: Uncaught Exception: Role provided does not exists - "" in ROOT/wp-content/plugins/wp-2fa/includes/classes/Admin/Controllers/class-settings.php:282 Stack trace: #0 ROOT/wp-content/plugins/wp-2fa/includes/classes/Admin/Controllers/class-settings.php(301): WP2FA\Admin\Controllers\Settings::get_enabled_providers_for_role('') #1 ROOT/wp-content/plugins/wp-2fa/includes/classes/Authenticator/class-login.php(706): WP2FA\Admin\Controllers\Settings::is_provider_enabled_for_role('', 'email') #2 ROOT/wp-includes/class-wp-hook.php(307): WP2FA\Authenticator\Login::login_form_validate_2fa('') #3 ROOT/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #4 ROOT/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #5 ROOT/wp-settings.php(620): do_action('wp_loaded') #6 ROOT/wp-config.php(142): require_once('/var/www/html/i...') #7 ROOT/wp-load.php(50): require_once('/var/www/html/i in ROOT/wp-content/plugins/wp-2fa/includes/classes/Admin/Controllers/class-settings.php on line 282
We have had 2FA enabled for super-admins only and it’s been working fine.
We started testing the option “Only super admins and site admins”, and we are getting the same error in 2 situations (as we could check):1) Sub-site admins logging directly on the root domain (eg. domain.com/wp-admin)
2) Sub-site admins logging on other sub-site where they are administrators (role), but not the “main administrator” (it’s not the user setup on Administration Email Address)
3) [OK – WORKING] Sub-site admins logging on a sub-site where they are administrators (role), and also “main administrator” (it’s the user setup on Administration Email Address)NOTE: we updated to the latest version 2.3.0 released today, but no luck, we are getting the same error.
WordPress version: 6.0.2
PHP version: 7.4.30 (Supports 64bit values)Thank you,
Rafael
- The topic ‘Multisite error: Uncaught Exception: Role provided does not exists’ is closed to new replies.