[TYPO3-english] Formhandler and Captcha not working

Karl Wallace karl.wallace at roomthree.com
Wed Jul 14 10:59:51 CEST 2010


Hi there

Is the captcha not working at all? Or is it just the error message that isnt 
displaying when an incorrect capthca is entered?
I was working on getting this working yesterday and It works fine if you 
enter the correct captcha value. But if you get it wrong it just reloads the 
form with no explicit error message.

Here's the TS I'm using, which is slightly different to yours, so try it.

plugin.Tx_Formhandler.settings.validators.1 {
  class = Tx_Formhandler_Validator_Default
  config {
    fieldConf {
      freecapfield.errorCheck.1 = srFreecap
    }
  }
}

I'm using Typo3 4.3.3 Formhandler 0.97 and sr_freeCap 1.2.3

Karl

"Peter Gallagher" <pgallagher at electricretina.com> wrote in message 
news:mailman.1.1279049571.9740.typo3-english at lists.typo3.org...
>I am trying to get the formhandler (0.97) to work with sr_freeCap (1.2.3) 
>on TYPO3 (4.3.2).
>
> I have added the form fields and markers to the template as stated in the 
> manual:
> <div class="type-text">
>  <label for="freecapfield">###SR_FREECAP_NOTICE###</label>
>   ###SR_FREECAP_CANT_READ###
>   <div class="clear"></div>
>   <input type="text" size="15" id="freecapfield" 
> name="formhandler[freecapfield]" title="###SR_FREECAP_NOTICE###" value="">
>      ###SR_FREECAP_IMAGE###
> </div>
>
> and added the following to my TS:
>
> plugin.Tx_Formhandler.settings.predef.contact{
> ...
> //validate captcha
>   validators.2.class = Tx_Formhandler_Validator_Default
>   validators.2.config.fieldConf{
>     freecapfield.errorCheck.1 = srFreecap
>   }
> ...
> }
>
> When I turn on debugging I see that formhandler calls the function:
> Calling class "Tx_Formhandler_ErrorCheck_SrFreecap"
>
> It does state that it is in step 2 of the form processing but the form 
> just reloads with a new captcha image and no message is sent.
>
> Any ideas why this doesn't work?
>
> p.s. the same this happen with the captcha extension.
>
> -Peter Gallagher
> 




More information about the TYPO3-english mailing list