Forums

CAPTCHA not working unless manually refreshed

dryke_chris 03 Aug, 2015
When I submit my form, it throws me an error saying that the CAPTCHA was entered wrong even when it's correct. If I hit the refresh icon on the CAPTCHA and then enter it and submit the form, it goes through fine. Any ideas?
GreyHead 04 Aug, 2015
Hi dryke_chris,

It sounds as though the form page is being cached so there is an 'old' Captcha code being shown. If you have caching on please try turning it off and see if that solves the problem. If it does and you need caching then you will need to use a captcha that doesn't rely on a saved key. A traditional HoneyPot should be OK (not the CF version) or one of the Google Captchas.

Bob
dryke_chris 04 Aug, 2015
My caching has been disabled throughout the entire process.

I tried switching to honeypot and now it's not passing successfully past the honey pot.
GreyHead 05 Aug, 2015
Hi dryke_chris,

The ChronoForms HoneyPot works in the same way as the Captcha so that won't help. If caching isn't the problem it's hard to see what is happening.

By all means PM me the site URL, the form name, and a SuperAdmin login and I'll take a quick look.

Bob
pat01 05 Aug, 2015
Hi Bob

I have the same problem!

Cache is off. I use Joomla 3.4.3 and CF 5.0.10.

I hope you'll find the problem on the installation from dryke_chris,

Thank you.

Patrick
GreyHead 06 Aug, 2015
Hi dryke_chris,

I think that the problem is that instead of just using an Event Loop action in the On Fail events you have new Load Captcha and HTML (Render Form) actions that aren't needed. I have made a copy of your form and re-structured the actions to simplify them like this:
On submit:
  Check Captcha:
    On success << leave empty
    On Fail
      Event Loop 
  Server Validation:
    On success << leave empty
    On Fail
      Event Loop 
  Email
  DB Save
  Display Message

Bob
pat01 06 Aug, 2015
Hi Bob

I use the structure you suggest (but without Server Validation). I have placed the Event Loop in the On Fail Event, but no Load Captcha or anything else there.

It's a very strange problem, since I have about 30 CF Forms using this Captcha without any problem.
I did backup the form and restore it on another (local) Joomla installation. The problem persists.

Nevertheless, I now use reCaptcha and so I got rid of the problem.
But still, it would be interesting to know what's wrong...

Patrick
dryke_chris 06 Aug, 2015
Thanks, Bob. I went ahead and tested the form you created with your changes and the behavior is still the same. I will try using a recaptcha as well and see if that doesn't work for me.

Thank you Patrick for the suggestion. 😀
dryke_chris 06 Aug, 2015
Unfortunately, I tried replacing the CAPTCHA using a ReCaptcha and I can't even get the method to even pass through entering the code correctly repeatedly.
pat01 07 Aug, 2015
Hi Chris

For testing purposes and to see how to set your form up, you can restore the form attached.

Patrick
dryke_chris 07 Aug, 2015
1 Likes
I think it got it working now. It looks my confusion was not realizing the "Load ReCaptcha" action needed the public key and the "Check ReCaptcha" action needed the private key.

Thank you guys for your help.
This topic is locked and no more replies can be posted.