• Resolved wbenterprises

    (@wbenterprises)


    Created a page for configuring 2FA for my users. When testing, I load the 2FA Setup page I’ve made and use the [wp-2fa-setup-form show_preamble=false] shortcode to produce the button [Configure 2FA]. However, clicking on it has no response. I have tested on Firefox and Chrome with no plugins installed. Nothing happens, like the script won’t execute. Please help. What am I doing wrong?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter wbenterprises

    (@wbenterprises)

    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
    Thread Starter wbenterprises

    (@wbenterprises)

    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

    Thread Starter wbenterprises

    (@wbenterprises)

    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?

    Plugin Contributor robertabela

    (@robert681)

    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.

    Thread Starter wbenterprises

    (@wbenterprises)

    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.

    Plugin Contributor robertabela

    (@robert681)

    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Cannot click Buttons’ is closed to new replies.