This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

Recaptcha invalid public key


  1. jonathanryan
    Member

    I just implemented recaptcha on a form. When i test it I get invalid public key. I've copied and pasted very carefully to the config file. Any ideas what's going wrong?

    Public key is the first entry, right?

    Posted 15 years ago #
  2. yuniar

    Hmm.. usually people is having the keys copied into the wrong section.
    It should be similar as this:

    define('RECAPTCHA_PUBLIC_KEY','6LfYXQAAIUEAAKRsi15lY0-pVhznlvTv1fC');
    define('RECAPTCHA_PRIVATE_KEY','6LfYXQANBHAAAOJrNpeWDOTdYtHTGdfg-ert');

    Or you can also use the built-in CAPTCHA instead of reCaptcha.
    Edit this line:

    define('USE_INTERNAL_CAPTCHA',false);

    to be like this:

    define('USE_INTERNAL_CAPTCHA',true);


    MachForm Founder

    Posted 15 years ago #
  3. jonathanryan
    Member

    Ah that's me being stupid then. I replaced the text with the key so it read

    define('6LfYXQAAIUEAAKRsi15lY0-pVhznlvTv1fC','');

    If I'd actually read the whole line this would have been obvious.....

    Posted 15 years ago #

RSS feed for this topic

Reply