Jump to:

10979 Posts in 2722 Topics by 1815 members

All other Modules

SilverStripe Forums » All other Modules » ReCaptcha doens't accept validation code

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 400 Views
  • s_a_m_y
    Community Member
    25 Posts

    ReCaptcha doens't accept validation code Link to this post

    Hi to all,

    I have had some SPAM-issues lately and decided to install a Captcha-Module. According to the installation-guide I first installed the Spam Protection Module, ran a /dev/build and then placed the ReCaptcha Module and added the following lines to my _config.php:

    // Spam Protection Module

    // Recaptcha
    RecaptchaField::$public_api_key = 'publickeyhere';
    RecaptchaField::$private_api_key = 'privatekeyhere';

    I was a little confused because the installation note for the Spam Protector said to include:


    However, after a flush I could add a Spam Protection Field and the Captcha was correctly displayed on the page. I additionally changed the theme:

    RecaptchaField::$js_options = array('theme' => 'clean');

    All looked fine. However, when I tested the form and entered the validation code it won't go through. The custom error message keeps being displayed and no email is send.
    I have no clue what's happening and I haven't found any hints in the forum or online otherwise. I am grateful for any idea!

    Thanks. Sam

    P.S. This project is still running on 2.4...

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.