• lernerleben

    (@lernerleben)


    Hi, I use the plugin WP 2FA in conjunction with the Frontend Login module for admin and editor roles only. Since I updated to PHP 8.2, I am getting the following error when WP 2FA page loads: ERROR: Cannot display authentication form.

    The debug log shows the following error:

    PHP Deprecated: Creation of dynamic property uncanny_learndash_toolkit\Frontend_Login_Plus_2fa::$two_factor_class_name is deprecated in /xxxx/xxxxx/xxxxx/wp-content/plugins/uncanny-learndash-toolkit/src/includes/class-frontend-login-plus-2fa.php on line 62

    Deactivating WP 2FA via FTP allows me to enter the site.

    My WordPress: 6.8.1

    Uncanny Toolkit: 3.7.0.2

    WP 2FA: 2.8.0

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support David Chambo

    (@uncannydavid)

    Hello,

    The issue you are reporting is actually related to the WP 2FA 2.8.0.

    We have reached out to Melapress regarding a fix. In the meantime, downgrading WP 2FA to version 2.7.0 should allow 2FA to work as expected until a fix is available. Thanks!

    David @ Uncanny Owl

    Thread Starter lernerleben

    (@lernerleben)

    Thanks for your reply. Could you give me some background on the issue? The reason is that I have had 2.8.0 installed since last year (since at least October) and it is only recently that there have been issues. It looks like it is a PHP issue. I recently (within the last 2 months, I think) updated the PHP on all sites from 7.4. to 8.2.

    I just did a rollback to 2.7.0 and the error persisted.

    Plugin Support David Chambo

    (@uncannydavid)

    Hello,

    I ran a test on our staging site that is running PHP 8.2.28 and with 2FA 2.7, I was able to log in using the code sent via email and from the initial set of codes provided when you activate the 2FA plugin.

    It might be best if you could provide us with temporary admin level access to your site so we can install the plugin Health Check & Troubleshooting and run a quick diagnostic on the site. Please use the email address [email protected] and send us a temporary password in an email to that address (do not post any information in this chat as it is public). Thanks!

    David @ Uncanny Owl

    Thread Starter lernerleben

    (@lernerleben)

    OK, will do. Only one question: If I give you admin access, how exactly will you get in? For security reasons, WP 2FA is active and acts as a block to anyone attempting to gain access as an admin. In order to get in myself, I need to deactivate WP 2FA via FTP (by renaming the plugin folder) and then reactivate it once I am in.

    Question: is it possible to deactivate the FrontEnd Login module for admins, so that they can log in via the wp-login.php page? We only use 2FA for admins. Normal subscribers do not require 2FA.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘WP 2FA does not load’ is closed to new replies.