Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter birgitrothaus

    (@birgitrothaus)

    Hi,

    First of all, thanks for your message.

    But the error seems to persist:

    reCAPTCHA render error: Error: reCAPTCHA has already been rendered in this element
    at recaptcha__de_ch.js:110:453
    at renderRecaptcha (rcfwc.js?x41567&ver=1.0:26:48)
    at waitForRecaptcha (rcfwc.js?x41567&ver=1.0:53:13)

    I see that you changed the URL to ‘https://www.google.com/recaptcha/api.js‘ which results in the reCAPTCHAS being rendered onload because that’s the default.

    In my case the wp and wp.data objects are available on the my account page, so your code in the rcfwc.js file starting from line 16 gets executed.

    So the CAPTCHAS render onload, AND then they get rendered again in your code, which most likely leads to the error message.

    I think the problem boils down to that ( wp && wp.data ) is not an efficient way to check if the current page is using the Woo Checkout Block, as the implementation of the WooCommerce Minicart Block on the page also makes these objects available (in my case, I use the minicart on almost every page, including the my account page).

    Let me know if I’m completely off track or if you understand what I mean.

    • This reply was modified 9 months, 2 weeks ago by birgitrothaus.
Viewing 1 replies (of 1 total)