• Resolved problematichild

    (@problematichild)


    Hello,

    We have integrated hCaptcha with Gravity Forms using the active site key and secret key, and it is configured in invisible mode. The site configuration appears valid https://prnt.sc/hJg0n7o90gl2

    After updating WordPress to version 7.6.1 and the hCaptcha plugin to version 4.7.1, we encountered an issue during form submission. The form prompts an error message requiring the completion of hCaptcha, but no captcha is displayed during the initial submission.

    When we downgraded WordPress and the hCaptcha plugin to their previous versions, the issue persisted. However, on the second attempt at form submission, the captcha appeared and worked https://prnt.sc/EkB9Ia9CUNKV

    Since we have configured hCaptcha in invisible mode and it only worked after a resubmission, it seems there is an underlying issue.

    Upon inspecting the console logs, we found the following error: “Uncaught TypeError: t is not a function” https://prnt.sc/mpd6fyMJVoII The error points to the hcaptcha.js file located at /hcaptcha-for-forms-and-more/assets/js/apps https://prnt.sc/3kc3TLQdyX5Z

    Could you please advise on resolving this issue? Let us know if further details or testing are needed.

    Thank you, and we hope to hear from you as soon as possible.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor kaggdesign

    (@kaggdesign)

    Hi @problematichild,

    Thank you for reporting the issue. It looks like a race condition caused by broken scripts order. This often happens with caching plugins. Some of them do not respect script order defined in WordPress.

    Could you provide a link to your webpage having this problem?

    Please also try the following.

    1. Turn off page caching plugin if you have it.
    2. As a variant, try to turn off the script optimization in the page caching plugin.
    3. To see better JS code during debugging, you may add define('SCRIPT_DEBUG', true); to the wp-config.php. The Captcha plugin will then use non-minified JS code.
    Thread Starter problematichild

    (@problematichild)

    Hi @kaggdesign ,

    We have disabled caching on the page, and the captcha now appears to work as expected on the first submission. While it is not invisible, this setup should be okay for now.

    Thank you for your assistance—I really appreciate it!

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

The topic ‘hCaptcha Issue with Gravity Forms Integration’ is closed to new replies.