[TYPO3-english] jmRecaptcha always returns an error

Lamb, Brian blamb at jcvi.org
Mon Dec 5 14:23:58 CET 2011


I got a new recaptcha key and that seemed to fix the issue. 
________________________________________
From: typo3-english-bounces at lists.typo3.org [typo3-english-bounces at lists.typo3.org] On Behalf Of Lamb, Brian [blamb at jcvi.org]
Sent: Saturday, December 03, 2011 11:14 AM
To: typo3-english at lists.typo3.org
Subject: [TYPO3-english] jmRecaptcha always returns an error

Hi all,

With the most recent upgrade of typo3, I've upgraded all of my extensions. In doing so, I had to rebuild my contact form with formhandler. I'm having a problem with the jmRecaptcha piece however. It seems to return an error with every single submission, even if the text is correct.

I've tried other captcha extensions and they seem to work fine but they seem a little simplistic so I'd prefer to use jmRecaptcha if possible.

Here is the relevant configuration:

TYPOSCRIPT

# enter fieldnames of the captcha fields and activate usage of recaptcha
plugin.tx_jmrecaptcha {
 public_key = my_public_key
 private_key =  my_private_key
}

plugin.Tx_Formhandler.settings {
  debug = 1
  templateFile = fileadmin/template/main/html_forms/contact_us.html
  langFile = fileadmin/template/main/scripts/ts/contact_us.xml
  formValuesPrefix = formhandler
  finishers {
    1 {
      class = Tx_Formhandler_Finisher_Mail
    }
    2 {
      class = Tx_Formhandler_Finisher_SubmittedOK
      config.returns = 1
    }
  }

  validators.1.class = Validator_Default
  validators.1.disabled = 0
  validators.1.config.fieldConf {
    recaptcha_response_field.errorCheck.1 = jmRecaptcha
  }

  addErrorAnchors = 1
  singleErrorTemplate {
    totalWrap = |
    singleWrap = <span style="color:red">|</span>
  }
  errorListTemplate {
    totalWrap = <p class="error_message">The following errors occurred: <ul class="error_message">|</ul></p>
    singleWrap = <li>|</li>
  }
}

HTML Template

<div class="csc-mailform-field">
  ###RECAPTCHA###
</div>

Is something set up incorrectly? Why does it always return false?
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


More information about the TYPO3-english mailing list