quickapps / cms

Modular CMS powered by CakePHP
GNU General Public License v3.0
164 stars 69 forks source link

minor: Recaptcha and fsockopen #63

Closed Gabri closed 12 years ago

Gabri commented 12 years ago

Hi Chris,

I was having problem using ReCaptcha in comments. I had a connection time out during the fsockopen. I thought was something with the hosting service, but it seems not this. The problem seems to be that www.google.com has an IPv6 address, and fsockopen() tries to connect to it. Also, the IPv6 address on www.google.com doesn't seem to allow connections on port 80. To make sure the connection to the IPv4 address I added a line "$host = gethostbyname($host);". With this it works.

Not sure it's a real QACMS issue because I think you already using ReCaptcha on the QA website...

quickapps commented 12 years ago

Hmm, QuickApps uses the official PHP plugin (v1.11), and as you mentioned, the official web site seems to work ok (even on localhost).

Googling a bit I found other peole with similar issues. for example: http://code.google.com/p/recaptcha/issues/detail?id=26

In some hosting providers, fsockopen is sometimes blocked for security reasons: http://hellowahab.wordpress.com/2012/02/15/recaptcha-cannot-connect-to-host-problem-behind-a-proxy/

All seems to be a hosting server issue :S

Gabri commented 12 years ago

Yes, I think you're right. I'm awaiting a confirmation from the server hoster and then I close the ticket! Thanks for your time

Gabri commented 12 years ago

Now it works (with original sources), so no issue Thanks