Forums

Captcha not working

kecker 01 Mar, 2012
Yes I watched the video but it's still not working.

Added Captcha Input as one of the fields.

Added Load Captcha as one of the events before the Show HTML event in the On Load area.

Added Check Captcha as the first event in the On Submit area.

But when I go and fill out the form I get both the "You have entered a wrong verification code!" error messages. It simply will not let me submit at all.

Using 4.0 RC3.2 on Joomla 2.5.1
kecker 01 Mar, 2012
Also now sure if this is related but after I submit, instead of my email address being displayed in the last field (which is the email input field) I see the following:

 <script type='text/javascript'> <!-- var prefix = 'ma' + 'il' + 'to'; var path = 'hr' + 'ef' + '='; var addy57535 = 'kevin' + '@'; addy57535 = addy57535 + 'eckernet' + '.' + 'com'; document.write('<a ' + path + '\'' + prefix + ':' + addy57535 + '\'>'); document.write(addy57535); document.write('<\/a>'); //-->\n </script><script type='text/javascript'> <!-- document.write('<span style=\'display: none;\'>'); //--> </script>This email address is being protected from spambots. You need JavaScript enabled to view it. <script type='text/javascript'> <!-- document.write('</'); document.write('span>'); //--> </script>
kecker 01 Mar, 2012
Nevermind figured it out...but it might still be a bug.

I had the form on the page twice, in two different areas. Once I removed one of them then it worked just fine.
GreyHead 01 Mar, 2012
Hi kecker,

And the other error is because you have the Joomla! Email Cloaking Plug-in enabled and it is trying to cloak the sample e-mail in the ChronoForms validation message. Disable the plug-in temporarily to check this is the problem. If you need the plug-in change the plug-ins order so that Email Cloaking runs before ChronoForms.

NB These are Joomla! plug-ins that you manage from Site Admin | Extensions | Plug-in Manager

Bob
jinx52 04 Mar, 2012
HI,
I have followed the video, placed a captcha image field and the two events, but every time I try to submit my form I get an error message that the code is wrong. Is there anything further I need to do other than what is shown in the video?
Thanks.
GreyHead 04 Mar, 2012
Hi jinx52,

No, there is nothing else to do. Pleae check the settings and if it still doesn't work please take a Form Backup using the icon in the Forms Manager and post it here (as a zipped file) or PM or email it to me and I'll take a closer look.

Bob
GreyHead 06 Mar, 2012
Hi jinx52,

The Captcah appears to be working OK. I get an error message "You must provide your password."
but that is because the Joomla! Registration action isn't configured at all.

I suggest that you don't use the On Success event of the Check Captcha action but instead put following events in the main On Submit event body. The effect is the same but it is tidier and may be more reliable.

Bob
andrea68it 26 Mar, 2012
HI again🙂

The form work fine, except the check of the Captcha code.
Worng code make the form pass to next step.

Where am I doing wrong?

Thanks
Andrea
GreyHead 26 Mar, 2012
Hi Andrea,

What is the Event Switcher doing? What code do you have in it?

Bob
GreyHead 26 Mar, 2012
Hi Andrea,

If there is no code in the Event Switcher then none of the events will be run - that's why your Captcha is being missed.

Bob
andrea68it 27 Mar, 2012
Hi Bob
Now I put this code in EventSwitcher

<?php
if ( !isset($form->data['confirmation']) || $form->data['confirmation'] != 'yes' ) {
return 'event_a';
}
?>

the captcha check work fine, I see the ConfirmationPage but on submit I see the error message of worng captcha code instead the thank you page.

This the output of the Debugger in OnSubmit TAB.

Data Array:

Array
(
[option] => com_chronoforms
[chronoform] => test
[event] => submit
[Itemid] =>
[Nome] => Hi Bob
[chrono_verification] => Vujwd
[input_submit_1] => Submit
[e0040f8362c408c9d852d11ed4ba014e] => 1
)

Validation Errors:

Array
(
)

Confirmation Page
Hi Bob
Debug Data
SUBMIT CANCEL
Core Captcha
Passed the core captcha check!

I've tried also put the ThankYouPage on the bottom OnSubmit TAB.

Noting change

can you help me again?

Thanks

Andrea
webinis 20 Sep, 2013
What is the solution andrea68it? Kindly please share with us
GreyHead 20 Sep, 2013
Hi webinis,

What problem do you have exactly? Have you checked the Captcha FAQ?

Bob
This topic is locked and no more replies can be posted.