Forums

reCAPTCHA - Could not open socket error

erc 24 Sep, 2011
Hello, I'm attempting to use reCAPTCHA on a simple email contact form. When I submit the form with anything typed in the ReCaptcha box, I get the following error in plain text on a white page with no styling:

Could not open socket: 137487456 - Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?


Here's what I've done to set things up with my form:

- custom element with code "{ReCaptcha}" in my form
- Load ReCaptcha action On Load
- Check ReCaptcha On Submit
- ReCaptcha OnSuccess: Send Email and Show Thanks Message actions
- ReCpatcha OnFail: Event Loop action

I've tried the default ReCaptcha private key as well as my own, both with the same results.

ReCaptcha verify server: http://www.google.com/recaptcha/api/verify

You can view the form here:
http://www.greenmarkit.com/dev/contact

Joomla 1.7 and latest version of ChronoForms.

Oh, and one other small unrelated thing... I've validated my installation on this domain. Is there anything special I have to do to remove the "Powered By ChronoForms" text from the form?

EDIT: Nevermind that last thing. It just took a little while for the validation to go through, I guess.
GreyHead 25 Sep, 2011
Hi erc,

First, if your installation is validated then the Strap-line should automatically be removed. If that isn't working please contact Max through the Contact Us form here as he knows how that works and I don't.

Please try setting the ReCaptcha verify server to just www.google.com (no http://) I don't know why there are different but that seems to be what is needed at the moment :-(

Bob
erc 25 Sep, 2011
Isn't that odd. Well that did seem to get rid of the error, although now the problem is that the captcha fails every time.

There are some threads about that, but most of their solutions involve changing the verify URL as well, so now I'm kind of stuck.
GreyHead 25 Sep, 2011
Hi erc,

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
erc 25 Sep, 2011
The backup is attached, thanks for taking a look. Let me know if you require Joomla/FTP/cPanel access to the server.

EDIT: I downloaded the recaptcha exmple for php from Google, put my keys in, and tried it to rule out a server issue. The example works fine:

http://www.greenmarkit.com/dev/recaptcha/example-captcha.php
GreyHead 26 Sep, 2011
Hi erc,

I don't see the socket error at all here. If you consistently get this please check with your Hosting provider and see if they have any suggestions.

Please also check that you are using the same ReCaptcha public key in the Load ReCaptcha and Check ReCaptcha actions.

Bob
erc 26 Sep, 2011
Turned out to be another dumb problem. I had the Public key wrong.

Having some of the configuration options under in one place (Load ReCaptcha action) and the rest of the configuration options in another (Check ReCaptcha action) is a little confusing, but programatically I understand why those options are where they are.

Thanks for your help!
GreyHead 26 Sep, 2011
Hi erc,

I agree with you about the settings. I'll take a look a see if we can't tidy them up. Part of the problem is historic; the code was originally taken more or less directly from a ReCaptcha code example. Part is also that we need to keep the key secure and available to both actions. WE can probabl do this by saving it in the User session rather than re-loading it.

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