craigh / Captcha

Captcha is a module for the Zikula Application Framework. The module enables hooking a Captcha to any module. It utilizes the reCAPTCHA PHP library.
13 stars 3 forks source link

PHP Fatal error, when no CAPTCHA submited #3

Closed PhilBau closed 12 years ago

PhilBau commented 12 years ago

Hi, here is the message I get: "PHP Fatal error: Call to a member function dataBound() on a non-object in /.../lib/Zikula/Form/View.php on line 386, referer: https://...index.php?module=clip&type=user&func=edit&tid=10"

Zikula 1.3.2, Captcha (latest release), Hooked with a Clip (latest release) publication type.

When I submit an empty field as a Captcha, instead of receiving a validation error I have a PHP Fatal error. BTW, when I submit a valid Captcha, the system goes on without issue. Thanks, Philippe

PhilBau commented 12 years ago

mmh, sorry please consider this ticket as invalid. I have tried to hook Captcha to an other module and this error doesn't appear. No captcha validation error is given but there is no fatal error. So it seems to be much more a Clip validation issue.

craigh commented 12 years ago

thanks for correcting the problem and closing the ticket. I'm curious what you meant by "No captcha validation error is given..." though - if you don't enter a correct captcha, what happens?

PhilBau commented 12 years ago

the page is not submitted, but no error is displayed saying that the Captcha is wrong. I know that the validation is working here, because when I submit the correct captcha with an invalid field in the form, the validation return an error on the field. Test: Hooked with Content, while adding a new page

craigh commented 12 years ago

thanks for the info - perhaps a notice should be issue then: "Captcha incorrect' or something. I thought it WAS doing that ;-)

PhilBau commented 12 years ago

+1 ;-)