Hello @rask44,
I’m sorry to hear about this issue! To better understand what’s happening, I have a few questions:
- You mentioned that the main issue is users being unable to change their passwords from the WordPress profile page—is that correct? If not, could you clarify how these users are attempting to change their passwords and where the issue occurs?
- What happens when users try to reset their passwords via the password reset form on your website? Does that process work as expected for all users? If not, does disabling our plugin temporarily resolve the issue?
- Could you check for any JavaScript errors in your browser console or PHP errors logged in the
debug.log file when users attempt to update their password or click on “Configure 2FA”? If needed, you can enable debugging by following the instructions in this article. Feel free to share any relevant errors for further analysis.
- You mentioned that everything works correctly for the main administrator but not for other administrators. Could you clarify what you mean by “main administrator”? Are there any differences in role permissions or capabilities between this user and the others? Any additional details would be helpful.
- Does the same issue occur for non-administrator WordPress roles (e.g., Editors, Authors, Subscribers)?
Let me know what you find, and I’d be happy to assist further!
Thread Starter
rask44
(@rask44)
Hello,
I’m sorry for the long delay in replying.
My problem is that it’s not possible to set up 2FA during the first login; the inability to change the password also occurs, but it is linked to the 2FA error.
In the console, I have an error: “Uncaught ReferenceError: wp2fa_fireWizard is not defined”. Clicking on this error takes me to this code:
window.addEventListener("load", function() {
wp2fa_fireWizard();
});
I thought that maybe some plugin files were missing, so I reinstalled them, but that didn’t help.
I would appreciate your assistance.
Hello again @rask44,
Thank you for following up on this!
The error suggests that a JavaScript function from our plugin is missing or not loading correctly. Since you’ve already reinstalled the plugin (which I would have also recommended), we can rule out missing files. This points to a possible conflict with another plugin or a site-specific issue preventing the function from executing properly.
As a next step, I suggest temporarily disabling all other plugins except WP 2FA and checking if the issue persists. If the error disappears, re-enable your plugins one by one to identify the culprit. I would start with the caching plugins first, for a “quick test”, and if that does not solve the problem, I will try and disable everything (including the custom theme).
Note: be sure that all plugins/themes are at their latest versions as well when performing these tests.
For the safest approach, of course, I recommend performing this test on a staging site.
Let me know how it goes, and if needed, we can explore additional troubleshooting steps!