Forums

Captcha in Chrome Fails Unexpectedly

sean.regehr 08 Sep, 2016
I have come across a strange Captcha related issue which only occurs within the Chrome browser.

On an event form we have been using for quite some time, the Captcha will always fail, even when entered correctly. Only in the Chrome browser mind you. This was only noticed a week ago. and coincides with upgrading from Joomla 3.4.8 to Joomla 3.6.2. I tested this out extensively. The strange thing was that another contact form, that also has Captcha works as expected, in the Chrome browser. This allowed me to narrow down the issue to the event form.

I verified that the Joomla Captcha plugin was using the newer version 2.0, vs older 1.0, and that valid codes were present. I was not certain if Chronoforms relies on this or uses its own code base.

I verified that the Captcha load and verification actions were set correctly in the event form.

I also confirmed the event form to successfully submit the Captcha within any browser but Chrome.

I have had to remove the Captcha from the site for the time being as it is causing issues. Obviously this is not a desired long term solution. If you need more information, just let me know and I'll provide it ASAP.
GreyHead 15 Sep, 2016
Hi sean.regehr,

I don't know of any Chrome specific problems with ReCaptcha. I use Chrome and probably click form ReCaptchas a few times a day with no apparent issues. The only one that I know of at present is that there is a problem if there is more than one ReCaptcha on the same page in the site. There is a Google workaround for that but it's not straightforward to apply in CF IIRC.

Can you create a simple test form that shows the error and post or PM a link so that I can see what is happening?

Bob
sean.regehr 15 Sep, 2016
Bob,

My issue is specifically with using the Captcha, not the ReCaptcha.

I did try switching to use the ReCaptcha briefly, however validation would never work in any browser when I did so. I did ensure valid up to date keys were used as well.

Also there is only a single Captcha on the page where this form occurs, so we can rule out the multiple Captcha issue.

The error message displayed is always the saying "the validation code was entered incorrectly". I had previously added CSS to enlarge the code image itself so it is very legible and to reduce user error when entering the code. I have tested this many times with multiple correct codes and will always fail in Chrome, but only in Chrome and only this form. Testing out other forms with Captcha was unable to reproduce the validation error and worked right away as expected when entering a valid code.
GreyHead 17 Sep, 2016
Hi Sean,

I can't replicate this - I restored your form here and there is no Captcha problem in Chrome.

Note: I have added a Debugger and a ShowStopper action after the Check Captcha action to block the remaining actions otherwise the form is unchanged (the PHP Notices are because the Session values don't exist here).

Bob
sean.regehr 19 Sep, 2016
Bob,

I setup a staging area and turned off public access for testing purposes. I also confirmed the Captcha issue is reproduced.

This is private content



If you need anything else just let me know.
GreyHead 20 Sep, 2016
Answer
Hi Sean,

I'm not sure exactly what is happening here. I still can't think of any reason why the form would behave differently in Chrome.

I did notice that there is an Ask me a question pop-up that is using the same Captcha on the page and wonder if that is the cause of the problem - ChronoForms can't handle the same Captcha twice on the same page.

Bob
sean.regehr 21 Sep, 2016
Bob,

Thanks for narrowing down the issue. I did some testing and the two captcha's in the same page was the issue. Still was only an issue within Chrome for some reason.

I ended up using Captcha on one form and ReCaptcha on the other. This was able to work correctly.

I marked your response as the solution. Consider this issue closed.
This topic is locked and no more replies can be posted.