Error message in WP2FA.php on line 351
-
We receive emails from our website that there is a problem with the 2fa plugin.
An error of type E_ERROR was caused on line number 351 of the file …/wp-content/plugins/wp-2fa/includes/classes/WP2FA.php. Error: Uncaught TypeError: Argument 4 passed to WP2FA\WP2FA::get_wp2fa_setting() must be of the type string, null given, called in …/wp-content/plugins/wp-2fa/includes/classes/Admin/Controllers/class-settings.php on line 202 and defined in …/wp-content/plugins/wp-2fa/includes/classes/WP2FA.php:351
Stack trace:
#0 …/wp-content/plugins/wp-2fa/includes/classes/Admin/Controllers/class-settings.php(202): WP2FA\WP2FA::get_wp2fa_setting()
#1 …/wp-content/plugins/wp-2fa/includes/classes/Utils/UserUtils.php(144): WP2FA\Admin\Controllers\Settings::get_role_or_default_setting()
#2 …/wp-content/plugins/wp-2fa/includes/classes/Admin/User.php(690): WP2FA\Utils\UserUtils::get_available_2fa_methods()
#3 …/wp-content/plugins/wp-2fa/includes/classes/Admin/User.php(87): WP2FA\Admin\User-How can we solve this?
We’re using:
WordPress 5.8.2
WP 2FA – Two-factor authentication for WordPress (version 2.0.0)
PHP version 7.4.26
The topic ‘Error message in WP2FA.php on line 351’ is closed to new replies.