• Resolved gchrist

    (@gchrist)


    Hello,

    The woocommerce integration feature prevents customers from registering when it is enabled. It almost certainly has to do with Google recaptcha. The error provided is: “REGISTRATION ATTEMPT BLOCKED: This site requires a security token created when the page loads for all registration attempts. Please ensure JavaScript is enabled and try again.”

    • This topic was modified 3 years, 1 month ago by gchrist.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support wfpeter

    (@wfpeter)

    Hi @gchrist,

    Are you running the latest version of Wordfence (7.5.6)? The recent update from 7.5.5 was to prevent WooCommerce, when configured to allow users to register, from receiving malformed login requests that resulted in an error like this.

    If you are on the latest version of Wordfence, any errors you’re seeing in the browser console on the registration page might help point us in the right direction. You can include screenshots to highlight the issue if you wish by using a service like Snipboard.

    Thanks,

    Peter.

    Thread Starter gchrist

    (@gchrist)

    Hi @wfpeter,

    I am running the latest version 7.5.6. Initially I thought that it was a CSP issue as it was blocking the recaptcha script but after amending it to allow it, it still doesn’t work. There are no errors in the console except from the following warning:

    [DOM] Found 2 elements with non-unique id #wfls-email-verification: (More info: https://goo.gl/9p2vKq)

    Plugin Support wfpeter

    (@wfpeter)

    Hi @gchrist, thanks for the feedback and telling me what you’ve seen/tried.

    I have seen the non-unique warning before which seems to be flagged in Chrome but not all browsers pick up on it, and it was a different field when I saw it last. The initial error message you reported though is presented by reCAPTCHA as you suspected, so can I confirm whether you have reCAPTCHA turned on or off in Wordfence? If it’s off, do you have CAPTCHA enabled anywhere on your site in another plugin or directly in your theme?

    If you are running any caching plugins or server-level caching, that may need to be flushed in order to definitely confirm the latest version of everything is being presented.

    Also, it could be worth changing your theme to a default theme such as Twenty Twenty-One and disabling all plugins other than Wordfence to see if it’s a conflict. Reenable plugins and the theme one-by-one to see when the issue returns. It may be worth installing a maintenance mode plugin during this period of testing if site visitors are likely to be affected.

    Thanks,

    Peter.

    Thread Starter gchrist

    (@gchrist)

    Hi Peter,

    If “Enable reCAPTCHA on the login and user registration pages” is ticked in WordFence, new customers cannot get registered. The error as specified before is: “REGISTRATION ATTEMPT BLOCKED: This site requires a security token created when the page loads for all registration attempts. Please ensure JavaScript is enabled and try again.”

    If it is unticked, it works fine. I have also enabled recaptcha on a form through Elementor. I have disabled it but it didn’t make any difference.

    I deleted all cache files and changed themes. The only thing that seems to work is to disable the WordFence recapthca option as stated above, which is far from ideal.

    Plugin Support wfpeter

    (@wfpeter)

    Hi @gchrist,

    Thanks for trying those steps and I’m sorry to see none of them resolved the issue. Does your reCAPTCHA site key and secret correspond to an account that supports both the www and non-www version of your domain? I have seen that cause a different message in most cases, but want to rule out all possible external factors.

    Before I speak with the development team, could you send us a site diagnostic to wftest @ wordfence . com so that we can look into the behavior ourselves as this includes your domain? You can find the link to do so at the top of the Wordfence > Tools > Diagnostics page. Then click on “Send Report by Email”. Please add your forum username where indicated and respond here after you have sent it.

    NOTE: It should look as follows – Screenshot of Tools > Diagnostic > Send by Email

    Thanks,

    Peter.

    Thread Starter gchrist

    (@gchrist)

    Hi @wfpeter,

    The diagnostics log has been sent. The recaptcha key and secret do correspond to both www and non-www versions of the site.

    Plugin Support wfpeter

    (@wfpeter)

    Hi @gchrist,

    I have not received any diagnostics from your username (I’ve checked spam folders too) that would help me look into what’s going on, so please could you click EXPORT on Wordfence > Tools > Diagnostics which will download a .txt file? Please forward it to wftest @ wordfence . com with your username in the subject line so I can easily identify it.

    It’s possible that communication issues such as email not sending from your site could be linked to why the error message is being returned when attempting to authenticate a user. Perhaps a server-side firewall not permitting Wordfence requests or the site connecting back to itself? I can look into this possibility too once I see the diagnostics.

    Thanks,

    Peter.

    Thread Starter gchrist

    (@gchrist)

    An email with the diagnostics file attached has been sent.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘WooCommerce integration doesn’t work correctly’ is closed to new replies.