• Resolved compressor

    (@compressor)


    Feeling kind of dumb right now… But I am unable to register at your site so I can log in to send you a question πŸ™ Sorry…

    I’m using WPForms Lite: 1.3.6 and ReCaptcha did function correctly on 1.3.5.
    Since I’m working on my site, I had to test some things and thought to try and fill out my form, which I did. But the ReCaptcha box is not showing so I can’t send the form. I disabled the recaptcha function from within WPForms settings and then the form does work again.

    Just to test: when I put the <div class=”g-recaptcha” data-sitekey=”xxxxxxxxxxxx”></div> code that google is suggesting on their recaptcha page into the post/page that holds the form (i.e.: after the [wpforms *number*]) it does load the form and the recaptcha box, which then both work. But of course not in relation to the form, helas.

    Could you tell me what is going wrong?

    Thanks and keep up the good work!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey compressor,

    When you get a chance can you provide a link to where the form is embedded? This will allow me to take a look and see if there are any javascript errors.

    Let me know!

    Thread Starter compressor

    (@compressor)

    Hey Jared,

    Here is the link: *edited away after jared replied.*

    It is still under construction, sort of, so…

    Thanks in advance!!

    Thanks!

    Currently it looks like reCAPTCHA is not enabled on that form.

    However, I think I see the issue. The reCAPTCHA API is already loading on the site (maybe from the google-captcha plugin?)

    The WPForms reCAPTCHA can’t run if reCAPTCHA is already being used. Disabling the other reCAPTCHAs on the page so that the reCAPTCHA API isn’t loaded multiple times (and only is loaded by WPForms) should get working.

    This can be difficult admittedly. WPForms is very smart about our asset loading – by that I mean we only load files on your site or page if absolutely needed. Meaning, if you load a page that doesn’t have a form, we don’t load any of our files. If you load a page that contains a form, but does not have reCAPTCHA enabled, we don’t load the reCAPTCHA API.

    Unfortunately, the majority of plugins/themes out there don’t bother to do this detection. Instead they just load everything on every page regardless if its even used or not. So what we see is plugins/themes loading the reCAPTCHA API, which then causes an error when _we_ load the reCAPTCHA API, even though its not even being used.

    Sorry about that!

    Thread Starter compressor

    (@compressor)

    Hi Jared,

    Thanks for your quick reply.

    No need to say sorry about that. Sounds like a very solid base.

    I just can’t figure out what went wrong where anf when. That’s why I assumed it had something to do with the update. Have to go to a customer now but I am going to try and change the recaptcha settings and backtrace when I get home again.

    Thanks again!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘ReCaptcha question’ is closed to new replies.