Support » Plugin: WP 2FA - Two-factor authentication for WordPress » Ciritcal error on PHP 8

  • After upgrading to PHP8, I’m getting the following error.

    Error Details
    =============
    An error of type E_ERROR was caused in line 291 of the file /public/wp-content/plugins/wp-2fa/includes/classes/Authenticator/class-authentication.php. Error message: Uncaught Exception: Invalid characters in the base32 string. in /public/wp-content/plugins/wp-2fa/includes/classes/Authenticator/class-authentication.php:291
    Stack trace:
    #0 /public/wp-content/plugins/wp-2fa/includes/classes/Authenticator/class-authentication.php(255): WP2FA\Authenticator\Authentication::base32_decode()
    #1 /public/wp-content/plugins/wp-2fa/includes/classes/Authenticator/class-authentication.php(234): WP2FA\Authenticator\Authentication::calc_totp()
    #2 /public/wp-content/plugins/wp-2fa/includes/classes/Authenticator/class-login.php(903): WP2FA\Authenticator\Authentication::is_valid_authcode()
    #3 /public/wp-content/plugins/wp-2fa/includes/classes/Authenticator/class-login.php(719): WP2FA\Authenticator\Login::validate_totp_authentication()
    #4 /public/wp-includes/class-wp-hook.php(307): WP2FA\Authenticator\Login::login_form_validate_2fa()
    #5 /public/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #6 /public/wp-includes/plugin.php(476): WP_Hook->do_action()
    #7 /public/wp-settings.php(620): do_action()
    #8 /public/wp-config.php(182): require_once(‘…’)
    #9 /public/wp-load.php(50): require_once(‘…’)
    #10 /public/wp-login.php(12): require(‘…’)
    #11 {main}
    thrown`

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

    (@robert681)

    Hello @gelform

    Other people has already reported this error and it is not related to PHP 8.0. Maybe it’s a timing coincidence.

    Just to confirm, you get this error when trying to log in, right? Can you confirm if the plugin works after you reset your user 2FA configuration, as in reconfigure 2FA?

    Can you also let us know if you have the Sucuri plugin installed?

    Looking forward to hearing from you.

    Thread Starter gelform

    (@gelform)

    Yes, it might be a coincidence. The plugin worked fine for weeks. The server was updated from 7 to 8.0 and I could no longer login. I entered my username and password. Then I got an error.

    I removed the plugin and I could sign in fine. I could re-add the plugin then but couldn’t get to the settings to choose to delete the plugin data on uninstall. So I was never able to get back to reconfiguring the plugin.

    Corey

    Plugin Contributor robertabela

    (@robert681)

    Thank you for the update @gelform

    The plugin does have a setting to delete all plugin data upon uninstall. It didn’t work for you?

    Can you confirm if you have the Sucuri plugin installed please?

    Thread Starter gelform

    (@gelform)

    As I mentioned, I wasn’t able to browse to the settings page in order to check the box to delete the settings on uninstall.

    I do not have the Sucuri plugin installed.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Ciritcal error on PHP 8’ is closed to new replies.