• Resolved pganesh

    (@pganesh)


    Hi, I installed reCAPTCHA plugin used with contact form 7 but checkbox doesn’t appear. If I change theme to default theme then checkbox works fine but in our theme it doesn’t work. It shows error as “Identifier ‘recaptchaWidgets’ has already been declared”‘and reCAPTCHA placeholder element must be empty. Can this be solved?. Thanks in advance

    The page I need help with: [log in to see the link]

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

    (@iqcomputing)

    Hello,

    It looks like you have a caching plugin that is concatenating all your script files into 1. If you add wpcf7-recaptcha/assets/js/wpcf7-recaptcha-controls.js to the exclusion list, does the issue go away?

    Thread Starter pganesh

    (@pganesh)

    But there is no cache plugin.

    Plugin Author IQComputing

    (@iqcomputing)

    Hello,

    Something is concatenating all your script files into 1 script. Usually, caching plugins do this. You can see the concatenation here.It’s unclear why these errors are cropping up as there are no multiple instances of recaptchaWidgets that we can see looking through the source. The root cause may be easier to find once concatenation has been disabled. If you do not know how these files are being concatenated, it may be worthwhile to reach out to your host and see if it can be disabled.

    Additionally, you can install the WordPress Health Check & Troubleshooting Plugin. This will allow you to disable plugins and revert to a default theme safely. You may read over their documentation for more details. Using this method, you can narrow down if there are any conflicts with other plugins or themes. If this does turn out to be the case, you can report back here and let us know, and we can look into working with that plugin or theme developer to find a solution.

    Hopefully, with the above information, you can help us narrow down the root cause of the issue. Should you have any information or questions please reply back to this thread and we can assist you further. Have a wonderful weekend!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Contact Form 7 – reCaptcha v2 error’ is closed to new replies.