The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/printthread.php 16 require_once



UserSpice
Issue with Captcha. - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23)
+--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26)
+--- Thread: Issue with Captcha. (/showthread.php?tid=776)



Issue with Captcha. - Froggle - 09-26-2017

Im not too sure where this issue has come from however when I attempt to login this error appears;

<pre>
Code:
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/html/users/includes/recaptcha.config.php on line 86

Warning: file_get_contents(https://www.google.com/recaptcha/api/siteverify?secret=6Le0rywUAAAAAA4ViCASCH2btp2KVcJncQFN3uPt&remoteip=141.101.98.46&v=php_1.0&response=03AJzQf7NlrEv1rXLLaqwAzT__9GyxqDLc9DFsVyOSz4YmxD-n_EkX7dkYDiDOTuSlDLRGhmvewDJqWgAYpNmayZ8NzcVaV1XbIba06IbC6VCbYps27LOD1agJE0yAI0TScKt1EGtl2lxcMQX9wC2BXdvugE_6jtsJGYIA2VsHX7Y7OOvzoIsHIB5mmzNRZQV5v6Pvy-cKmTmItnlSyE_cB008yZGdeI_NyfHdAOhDg0abTu5rmgD6XW6m-iegqEj_2joPodZuxb-kaC6rPDL-KPoh0iB-x7Qass_nc-E2WfCR3JRcUaSvirwRuAP3azqYb9wSqmb6v-9S2AzRlmU-m_iCe9kOq1uxm3WEy2PG3nbgehqyYQaWLL6Wkv61LNYMWFkHRw1ZTvd2O75-40m_sRAmGDICtyh2FbAN9zapUcmOmYP7Fxud2l-mAJR0HGxns7yGNErY15FxyqdUrDa4QguXa5S0JJixkQ): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/html/users/includes/recaptcha.config.php on line 86
</pre>


- When I turn recaptcha off, the login works as it should.
- I have checked my recaptcha settings are they are fine, as they have always been in working order.

This issue has come out of nowhere, I have also not touched or edited the recaptcha config file, to be 100{3bc1fe685386cc4c3ab89a3f76566d8931e181ad17f08aed9ad73b30bf28114d} sure I have replaced it with the original download also.


Issue with Captcha. - Brandin - 09-26-2017

This is unrelated to UserSpice.

https://stackoverflow.com/questions/20064372/file-get-contents-php-network-getaddresses-getaddrinfo-failed-name-or-servi


Issue with Captcha. - Froggle - 09-26-2017

Thanks for the reply Brandin, I did actually check that link believe it or not and changed up my DNS servers on the server to googles, I found the issue pretty quickly as when I was attempting "ping google.com" it was bouncing back an error. After doing an apt-get update/upgrade and server reboot it vanished.

Again, thanks for your support. If anybody does ever happen to experience this issue do the following (Debian based);

sudo apt-get update
sudo apt-get upgrade

sudo nano /etc/resolv.conf

Replace the contents with or input as an addition;

nameserver 8.8.8.8
nameserver 8.8.4.4


Issue with Captcha. - mudmin - 09-26-2017

Hmm. That's pretty interesting. That's one of those things you run across when managing your own servers. I do it for all my sites, and I've definitely spent time pulling my hair out.

Thanks for sharing.


Issue with Captcha. - Brandin - 09-26-2017

Bizarre! Thanks for sharing your solution!