• Hello, we currently have the problem that the Recaptcha of Contactform 7 is blocked by our consent management system. As a result, we have uninstalled Contactform7 as we have not found any other solution. Now, however, there is still an error in the console, which I do not understand.

    Screenshots from Browser: Screenshot by Lightshot

    The recaptcha script from CF7 still seems to be included, but where from? We have deleted all files that were on the server.

    • This topic was modified 10 months, 4 weeks ago by davidru.
    • This topic was modified 10 months, 4 weeks ago by davidru.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Where can we see the website in question?

    Thread Starter davidru

    (@davidru)

    You can see it here: WIKA Blog – Pressure / Temperature / Level / Force / Flow / Calibration

    Its a strange problem. I’cant tell where it is coming from:


    var onloadCallback = function() {
    var e;wpcf7_recaptcha={...null!==(e=wpcf7_recaptcha)&&void 0!==e?e:{}};const c=wpcf7_recaptcha.sitekey,{homepage:n,contactform:a}=wpcf7_recaptcha.actions,o=t=>{const{action:e,func:n,params:a}=t;grecaptcha.execute(c,{action:e}).then((t=>{const c=new CustomEvent("wpcf7grecaptchaexecuted",{detail:{action:e,token:t}});document.dispatchEvent(c)})).then((()=>{"function"==typeof n&&n(...a)})).catch((t=>console.error(t)))};if(grecaptcha.ready((()=>{o({action:n})})),document.addEventListener("change",(t=>{o({action:a})})),"undefined"!=typeof wpcf7&&"function"==typeof wpcf7.submit){const t=wpcf7.submit;wpcf7.submit=function(e){o({action:a,func:t,params:[e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}]})}}document.addEventListener("wpcf7grecaptchaexecuted",(t=>{const e=document.querySelectorAll('form.wpcf7-form input[name="_wpcf7_recaptcha_response"]');for(let c=0;c<e.length;c++)e[c].setAttribute("value",t.detail.token)}))
    };

    Best case would be that our consentmanager and cf7 is working together but for now an uninstall would help.

    • This reply was modified 10 months, 4 weeks ago by davidru.
    • This reply was modified 10 months, 4 weeks ago by davidru.
    Plugin Author Takayuki Miyoshi

    (@takayukister)

    What other plugins and theme do you use on the site?

    Thread Starter davidru

    (@davidru)

    Helo, It’s hard to say because we use a custom theme and many different plugins. However, there is no CF7 call in the theme. We have found out that it is loaded in wp_head().

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

The topic ‘Contactform7 recaptcha Issue’ is closed to new replies.