• Resolved nielk

    (@nielk)


    Hi! Good Day!,

    I am currently experiencing an issue with the Recaptcha v2 for Contact Form 7 plugin. setup and configurations were followed correctly and working fine in WordPress however when I try to check it on the live site the plugin is kind of not working because I have to refresh or reload the page several times to make the plugin working or show. I am seeing this error in the console when I try to inspect the site “reCAPTCHA couldn’t find user-provided function: recaptchaCallback”. here is the page where I am encountering the issue.

    I also tried the other solutions provided similar to this topic, unfortunately it didn’t work.

    could you please help me with this issue if you know any solutions? or an alternative recaptcha plugin that is suitable for contact form 7 plugin.

    Thanks,

    nielk

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author IQComputing

    (@iqcomputing)

    Hello,

    This is likely a WP Rocket issue where the WP Rocket plugin defers loading the reCpatcha script. You may try adding the script to WP Rockets exclusion list to see if that helps:

    https://docs.wp-rocket.me/article/976-exclude-files-from-defer-js

    You’ll want to add the following:

    wpcf7-recaptcha/assets/js/wpcf7-recaptcha-controls.js

    Make sure when you add the above there are no <pre> tags included in the copy/paste. If you’ve done the above and continue to run into issues please reply back to this email and we can try to assist further.

    Thread Starter nielk

    (@nielk)

    Hello,

    I am not familiar with the WP Rocket plugin. I don’t know where to add the file you mentioned on the exclusion list.

    could you guide me where and what to check on my end.

    Thanks,

    nielk

    Plugin Author IQComputing

    (@iqcomputing)

    @nielk Unfortunately, WP Rocket is a premium plugin so we will be unable to give you precise instructions on where to find the exclude settings page. We have linked their documentation in our previous reply and recommend reaching out to their support for further assistance regarding their plugin.

    Thread Starter nielk

    (@nielk)

    Hello @iqcomputing ,

    there is no WP Rocket plugin on my website. I tried checking the docs you provided for the WP rocket and copied the snippet code to exclude the javascript of recaptcha (the one you provided) under the functions.php file. Unfortunately, still the same issue occurs.

    • This reply was modified 5 months, 1 week ago by nielk.
    Thread Starter nielk

    (@nielk)

    Hello @iqcomputing ,

    is there any update on this?

    Thanks,

    nielk

    Plugin Author IQComputing

    (@iqcomputing)

    Hello,

    Looking at the website source it’s not clear which plugin is concatenating your scripts but some kind of optimization plugin is doing so. We saw instances or wprocket in the source which is a usual culprit for these kind of things.

    You may have to go through manual debugging to find out which specific plugin is optimizing your website code. On way to do this is by using the Health Check & Troubleshooting Plugin. We do recommend taking a backup of your website and understanding how to restore this back up in case anything goes wrong during the troubleshooting process. We also recommend referring to their documentation regarding troubleshooting.

    Alternatively, you could skip using plugin entirely and use ReCaptcha v3 built into Contact Form 7. Please refer to their documentation for more information. You may need to uninstall this plugin for ReCaptcha v3 to take place.

    Finally, there are a couple other ReCaptcha plugins we could recommend trying as well such as Contact Form 7 Captcha or hCaptcha for WordPress.

    Hopefully using one of the above solutions you’re able to have ReCaptcha on your Contact Form 7 form.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.