I’m using the Two Factor plugin with PHP 7.3.1 and everything is working as expected. I’ve been updating PHP with every new release since PHP 7.0 and all of the data is intact.
All the data is stored and accessed using standard WordPress APIs so there shouldn’t be any reason why only the Two-Factor data is cleared.
Could it be related to changes in the version of PHP and how it accesses the database on your particular hosting? Please let us know if you confirm the cause of the issue.
-
This reply was modified 7 years, 3 months ago by
Kaspars. Reason: Suggested next steps
Thank you for your reply.
I attempted again to reestablish 2FA in my profile. This time it worked.
I then recalled an instance several months ago while the site was still running PHP 5.6 when another admin had her 2FA profile settings clear on her. She, however, was able to immediately reestablish her settings. At the time, she was the only user impacted. Only three of us could have changed her settings, and we know we didn’t do anything knowingly to cause it.
Therefore, this seems like an intermittent issue with quite a lag between events and the cause of which issue may be rather difficult to pin down.
If it happens again, I’ll take the time to disable other plugins and take other steps if necessary to try to at least get some idea of what might be the cause.
Apparently, it’s not likely the PHP version.
Thanks for your efforts. You’re doing the WP community a great service bringing forth 2FA. Ah, speaking of which, isn’t it time to get rid of the “Dummy Method”?