Support » Plugin: Contact Form 7 » reCaptcha error

  • Hi. I use reСaptcha. When I send a form with captcha I get an error: “Uncaught ReferenceError: recaptchaWidgets is not defined”. I am trying to find the problem, but nothing happened. Someone faced with such a problem?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Until last update plugin everything worked.

    • This reply was modified 1 year, 3 months ago by  sapronov.
    Plugin Author Takayuki Miyoshi

    (@takayukister)

    I read this article . And I did everything like it says

    Same error here 🙁

    PlayerWeb

    (@spielerinternet)

    Same error here. And i had to add

    // Fix für Recaptcha-Bug in Contact Form 7
    wp_register_script(‘recaptcha_api’, ‘https://www.google.com/recaptcha/api.js’);
    wp_enqueue_script(‘recaptcha_api’);

    in the header to get the Recaptcha displayed

    Same problem here. After updated, but I am not sure which update affects it – WordPress or CF7.

    My widget get displayed, and can verify people. After I press send, the error shows in the console log although email can actually goes through.

    I roll back to to the version I used before (4.4.2) and it works.

    AlexeyK

    (@alexeyk)

    Hello guys!

    Same problem, I figured out when add Contact Form 7 in widgets it doesn’t enque recaptcha scripts.

    Just add in your functions.php

    function pp_recaptcha_scripts() {
        wp_enqueue_script('google-recaptcha');
    }
    add_action( 'wp_enqueue_scripts', 'pp_recaptcha_scripts' );
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘reCaptcha error’ is closed to new replies.