Joomla 2.5.x - reCaptcha - Could not open socket - Joomla! Forum - community, help and support


hi,

since few weeks, on of joomla sites, use joomla built in recaptcha on contact form, started error message "could not open socket"

the issue present in versions anywhere joomla 2.5.3 2.5.8

to reproduce :
- enable recaptcha contact form
- complete contact form , fill in recaptcha
- hit send
- error comes after hitting send

i read somewhere has being on server ipv6

how fix:

/public_html/plugins/captcha/recaptcha/recaptcha.php
on or around line 189:

replace :

code: select all

if (($fs = @fsockopen($host, $port, $errno, $errstr, 10)) == false )

by :

code: select all

if (($fs = @fsockopen(gethostbyname($host), $port, $errno, $errstr, 10)) == false )


that seems resolve issue now

not sure how needs rolled in joomla next releases
because fix may not work when need ipv6

l.

thank you!!!





Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support