Role provided does not exists
-
Hi,
This is an issue I’ve seen in other Multisite plugins.
Basically I have 2fa enabled for super_admins. On a multisite subsite the super_admin is a member of the site, but has not got a role (role is “none” or “”)
This means that I get the following error as 2fa is looking for a “role”, but super_admins don’t technically have a role.
PHP Fatal error: Uncaught Exception: Role provided does not exists - "" in /ROOT/wp-content/plugins/wp-2fa/includes/classes/Admin/Controllers/class-settings.php:288 Stack trace: #0 /ROOT/wp-content/plugins/wp-2fa/includes/classes/Admin/Controllers/class-settings.php(307): WP2FA\Admin\Controllers\Settings::get_enabled_providers_for_role() #1 /ROOT/wp-content/plugins/wp-2fa/includes/classes/Authenticator/class-login.php(682): WP2FA\Admin\Controllers\Settings::is_provider_enabled_for_role() #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() #4 /ROOT/wp-includes/plugin.php(476): WP_Hook->do_action() #5 /ROOT/wp-login.php(518): do_action() #6 {main} thrown in /ROOT/wp-content/plugins/wp-2fa/includes/classes/Admin/Controllers/class-settings.php on line 288
Any ideas or expected updates would be welcome. Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Role provided does not exists’ is closed to new replies.