• Agnes

    (@agneslesagegmailcom)


    Hi,

    I have just implemented reCAPTCHA, following the instructions from here

    I have created the key and inserted the CAPTCHA tag on a form that appears in a modal window (“contact telephonique” here)

    Now I get the console error:

    Uncaught Error: ReCAPTCHA placeholder element must be empty
        at Fn (https://www.gstatic.com/recaptcha/api2/r201612151xxxx/recaptcha__fr.js:294:413)
        at https://www.gstatic.com/recaptcha/api2/r2016121516xxxx/recaptcha__fr.js:298:446
        at He (https://www.gstatic.com/recaptcha/api2/r2016121516xxxx/recaptcha__fr.js:57:654)
        at https://www.gstatic.com/recaptcha/api2/r20161215161951/recaptcha__fr.js:298:406
        at https://www.gstatic.com/recaptcha/api2/r2016121516xxxx/recaptcha__fr.js:381:1494

    It seems this error comes usually when the script is called twice, and actually it is the case:

    <script type='text/javascript' src='https://www.google.com/recaptcha/api.js'></script>
    <script type='text/javascript' src='https://www.google.com/recaptcha/api.js?onload=recaptchaCallback&render=explicit'></script>

    Why is that and what may I do..?
    Thanks for the help

    • This topic was modified 7 years, 10 months ago by Agnes.
    • This topic was modified 7 years, 10 months ago by Agnes. Reason: script loading twice
Viewing 1 replies (of 1 total)
  • Thread Starter Agnes

    (@agneslesagegmailcom)

    PS: I have 2 forms on that page, and only the 1st one appears.
    I read somewhere your plugin normally enables the use of 2 forms.
    I desactivated all plugins and found the one that is causing the issue: SendinBlue Subscribe Form And WP SMTP. If I desactivate it, both reCAPTHCA work and I get no error.
    (But if I desactivate it, no meail goes out!)
    On your side, do you see anything I could do?
    I also wonder if another plugin may work, or if the issue is reCAPTCHA connected anyhow.
    I will ask on Sendinblue side…

Viewing 1 replies (of 1 total)
  • The topic ‘reCAPTCHA causes console error’ is closed to new replies.