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

    (@iqcomputing)

    Hello,

    We usually see this error whenever there are multiple versions of the ReCaptcha script on the same page. Do you have any other plugins that are using reCaptcha? Could you edit your question and add your website link into the URL field so that we may take a look?

    Thread Starter pawandongoloutside

    (@pawandongoloutside)

    We are using sage starter theme 9 for development so it’s error come only when plugins update from 1.8.6 to 1.9.0 but it’s ok in version 1.8.6.
    I am using contact form 7.
    My website url

    Plugin Author IQComputing

    (@iqcomputing)

    Hello,

    We suspect something is wrong with the control attributes being added. If we inspect the form, we can see that for some reason, the <noscript> tag is inside the <span> ReCaptcha control. Looking at this plugin’s ReCaptcha code, this shouldn’t be.

    
    // wpcf7-recaptcha/recaptcha-v2.php LN 112
    // ReCaptcha Control. Closed and empty.
    $html = sprintf( '<span %1$s></span>', wpcf7_format_atts( $atts ) );
    
    // Generated <noscript> tag, after the defined control.
    $html .= iqfix_wpcf7_recaptcha_noscript(
    	array( 'sitekey' => $atts['data-sitekey'] )
    );

    We also see an additional attribute is added to the reCaptcha control, a data-callback which may not be terminated property causing a run-on. That is a guess, but something outside this plugin is causing the controls <noscript> tag to jump inside the controls ReCaptcha <span> tag, which should be empty.

    Unfortunately, you will need to do some debugging on your end to narrow down the root cause. You may be able to use the WordPress Health Check plugin to safely disable plugins and revert to a default theme which may help narrow down the root cause. Please read their documentation for more information.

    Should you have any further questions, you may reply back to this thread, and we can assist further. Have an excellent rest of your week!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Uncaught Error: reCAPTCHA placeholder element must be empty ReCaptcha v2’ is closed to new replies.