• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 Google ReCAPTCHA error

abdfahim

Active member
#1
Suddenly since this morning, I am receiving below error regularly. This is happening during registration. Is it a Google error or XF error?

I never had this error in last few years, and I have always been using ReCAPTCHA (No CAPTCHA) since it was introduced.



Error Info
Zend_Http_Client_Adapter_Exception: ReCAPTCHA (No CAPTCHA) connection error: Unable to Connect to ssl://www.google.com:443. Error #0: php_network_getaddresses: getaddrinfo failed: Name or service not known - library/Zend/Http/Client/Adapter/Socket.php:235
Generated By: Unknown Account, 1 minute ago
Stack Trace
#0 /home/example.com/library/Zend/Http/Client.php(973): Zend_Http_Client_Adapter_Socket->connect('ssl://www.googl...', 443, true)
#1 /home/example.com/library/XenForo/Captcha/NoCaptcha.php(76): Zend_Http_Client->request('POST')
#2 /home/example.com/library/XenForo/Captcha/Abstract.php(129): XenForo_Captcha_NoCaptcha->isValid(Array)
#3 /home/example.com/library/XenForo/ControllerPublic/Register.php(355): XenForo_Captcha_Abstract::validateDefault(Array)
#4 /home/example.com/library/XenForo/FrontController.php(351): XenForo_ControllerPublic_Register->actionRegister()
#5 /home/example.com/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#6 /home/example.com/index.php(13): XenForo_FrontController->run()
#7 {main}
Request State
array(3) {
["url"] => string(47) "https://www.example.com/register/register"
["_GET"] => array(0) {
}
["_POST"] => array(12) {
["username"] => string(0) ""
["................................................"] => string(5) "test5"
["................................................"] => string(0) ""
["................................................"] => string(26) "example@outlook.com"
["password"] => string(8) "********"
["................................................"] => array(1) {
["over_13_years"] => array(1) {
[1] => string(1) "1"
}
}
["custom_fields_shown"] => array(1) {
[0] => string(13) "custom_field"
}
["................................................"] => string(16) "Australia/Sydney"
["g-recaptcha-response"] => string(356) "................................................GOOGLE_KEY................................................"
["agree"] => string(1) "1"
["_xfToken"] => string(8) "********"
["reg_key"] => string(32) "................................................"
}
}
 
Last edited:

abdfahim

Active member
#2
Just to add, I am getting below error as well, started approximately the same time

Zend_Http_Client_Adapter_Exception: Error submitting sitemap to Google: Unable to Connect to tcp://www.google.com:80. Error #0: php_network_getaddresses: getaddrinfo failed: Name or service not known - library/Zend/Http/Client/Adapter/Socket.php:235
 

Tracy Perry

Well-known member
#3
Simply means a connection error to the Google recaptcha service. It could be temporary or it could be being blocked upstream.
Normally it's a temporary issue - but if it continues you most likely need to contact your hosting provider.
 

abdfahim

Active member
#5
Simply means a connection error to the Google recaptcha service. It could be temporary or it could be being blocked upstream.
Normally it's a temporary issue - but if it continues you most likely need to contact your hosting provider.
Thanks, I have been receiving this for last 18 hours. I'll keep under observation for some time before contacting my host.
 
#6
Hi, im taking the same error:
Zend_Http_Client_Adapter_Exception: ReCAPTCHA (No CAPTCHA) connection error: Unable to Connect to ssl://www.google.com:443. Error #0: php_network_getaddresses: getaddrinfo failed: Name or service not known - library/Zend/Http/Client/Adapter/Socket.php:235

But it is only happening sometimes not always.

Code:
#0 /home/www/library/Zend/Http/Client.php(973): Zend_Http_Client_Adapter_Socket->connect('www.google.com', 443, true)
#1 /home/www/library/XenForo/Captcha/NoCaptcha.php(76): Zend_Http_Client->request('POST')
#2 /home/www/library/XenForo/Captcha/Abstract.php(129): XenForo_Captcha_NoCaptcha->isValid(Array)
#3 /home/www/library/XenForo/ControllerPublic/Register.php(355): XenForo_Captcha_Abstract::validateDefault(Object(XenForo_Input))
#4 /home/www/library/XenForo/FrontController.php(351): XenForo_ControllerPublic_Register->actionRegister()
#5 /home/www/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#6 /home/www/index.php(13): XenForo_FrontController->run()
#7 {main}
Code:
array(3) {
  ["url"] => string(43) "https://www.uniocraft.com/register/register"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(18) {
    ["username"] => string(0) ""
    ["c7f3a74e383b02e9b42765a756bfa46e"] => string(7) "BURAKSD"
    ["60d0735dd83a11c891c711997be7ab7f"] => string(0) ""
    ["2e576171d61bfef22f634b3e3ab54522"] => string(25) "burak19992009@outlook.com"
    ["password"] => string(8) "********"
    ["a6a8102afdfd848cfcee1e7ea611912c"] => string(8) "05354240"
    ["c2daebeddd1e3d695d5485cceffe10fc"] => string(8) "05354240"
    ["daa858b1908e34d9127d2c9704ae86cd"] => string(4) "male"
    ["dob_month"] => string(1) "7"
    ["dob_day"] => string(2) "22"
    ["dob_year"] => string(4) "1999"
    ["183ede30aeba6653e1c7c9d60f055cfb"] => array(5) {
      ["gercekad"] => string(0) ""
      ["skype"] => string(0) ""
      ["facebook"] => string(0) ""
      ["twitter"] => string(0) ""
      ["youtube"] => string(0) ""
    }
    ["custom_fields_shown"] => array(5) {
      [0] => string(8) "gercekad"
      [1] => string(5) "skype"
      [2] => string(8) "facebook"
      [3] => string(7) "twitter"
      [4] => string(7) "youtube"
    }
    ["3f323b894258a0cabf2c4700d8c5faa9"] => string(13) "Europe/Athens"
    ["g-recaptcha-response"] => string(334) "03AIezHSZOj9JqF3T0GU__c9mejZuek93v6gcddFHmlff6AWjn74AwpuDV8rYZsVLLJA381P34gcPBTXHJCdZuo9_ecDVcKDI1QX7qOeS9IcOfCvCZdrp9DHMbLBWRx38SXkFlKVg3WivhOhJ4qeGfZ8g5EJPjHONK6QXIS02jg8BJ-2IAxJ-nWCBf30a4xLBE6gE8TSYfsLGpt9tOpp5IKzGcKWubqd4ifepihGjUVXOgSVhZ3hIe_-fJLmNqpsb6S4aH_GF4eLje6scEh40LwswMW5WBa27XV78gG_pf0iPX8DyhoiD6rzLCaVUZBNod5_dmv4-7mwAu"
    ["agree"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["reg_key"] => string(32) "7881f02cdfc8c595b4e860ab907acc16"
  }
}