Also discovered this data from the Firefox Debugger whenever I click the button:
Uncaught TypeError: this.modal is null
value https://www.[PRIVATE].com/wp-content/plugins/wp-2fa/dist/js/micro-modal.js?ver=1.6.1:1
show https://www.[PRIVATE].com/wp-content/plugins/wp-2fa/dist/js/micro-modal.js?ver=1.6.1:1
<anonymous> https://www.[PRIVATE].com/wp-content/plugins/wp-2fa/dist/js/wp-2fa.js?ver=1.6.1:1
jQuery 2
dispatch
handle
micro-modal.js:1:19326
value https://www.[PRIVATE].com/wp-content/plugins/wp-2fa/dist/js/micro-modal.js?ver=1.6.1:1
show https://www.[PRIVATE].com/wp-content/plugins/wp-2fa/dist/js/micro-modal.js?ver=1.6.1:1
<anonymous> https://www.[PRIVATE].com/wp-content/plugins/wp-2fa/dist/js/wp-2fa.js?ver=1.6.1:1
jQuery 2
dispatch
handle
I am also using Ultimate Member v2.1.20 and mycred v2.1.0.3.
I have disabled minify in WP-Optimize, but I also tested with it enabled.
I had this same issue.
I figured out the issue: the button will show, even though the modal does not exist. The conditionals don’t align.
This happened in particular when User is not required for 2FA
You’re right. By setting “Enforce 2fA on…” the modal functions as expected.
This appears to be a bug. Even if I do not require users to enable 2FA, but I offer them the option to set it up, the modal should function. Correct?
Hello @wbenterprises and @rochow
Thank you for using WP 2FA. We have developed a patch to address this issue but have not released it yet. Can you please download this version of the plugin and confirm to us that it solves the issue?
https://www.wpwhitesecurity.com/downloads/support/wp-2fa_1-6-2-patch.zip
Looking forward to hearing from you.
Normally, I would be very happy to download and test the patch but I cannot this time due to the status of the site. I’ll leave it as-is and wait for the next opportunity to try the patch or the updated version. Apologies to you, and thank you for addressing this.
Hello @wbenterprises
For the record, we have released the latest update of the plugin a few days ago which includes the fix. So please go ahead and update your copy of the plugin to address this issue.
Please let us know if you need anything else from our end.
Have a good day.