Support » Plugin: Contact Form 7 » reCaptcha fails since 5.4 when user is not logged in

  • Resolved pbik


    Since the latest 5.4 update, my forms will only send if the user is logged in.

    When trying to send a form while not logged in, it freezes at the “spinning” phase and console has the following error:
    wpcf7-recaptcha.min.js:1 TypeError: Cannot read property 'hasQueryArg' of undefined
    and also references the file: api-fetch.min.js

    Rolling back to 5.3.2 until a fix comes.

    • This topic was modified 2 years ago by pbik.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Takayuki Miyoshi


    Where can we see the website in question?



    I am having the same issue with this but the error is

    TypeError: Cannot set property ‘innerText’ of null

    but when the recaptcha is not active it works but the form is not redirecting anymore either. 5.3.2 works as expected

    Thread Starter pbik


    I’ve found a similar issue here:

    Following the thoughts in it I could track back my issue to SiteGround’s “Defer Render-blocking JS” functionality:

    • When it is turned on as before, sending the form produces the error I’ve reported above.
    • When it is turned off, CF7 is properly sending.
    • If I turn it on and put the /plugins/contact-form-7/modules/recaptcha/index.js on the exclusion list, then the error still appears in the console, but everything seems to be working.

    Since this looks like an issue with SiteGround, I’m closing this ticket as resolved.
    @thenewguy_14 I hope this can help you too.



    Defiantly not a just a siteground issue I reverted back to 5.3.2 and everything works fine it is defiantly something to do with the new plugin update.



    Having the same problem here and I don’t use Siteground. Going to revert back.

    I am facing the same issue
    cannot set property ‘innerText’ of null

    All I am getting is this and the form is not passing the email.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘reCaptcha fails since 5.4 when user is not logged in’ is closed to new replies.