Google reCAPTCHA (v3) not working

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
User avatar
Harold Marshall
Posts: 7
Joined: Sun Jan 19, 2020 4:19 pm

Google reCAPTCHA (v3) not working

Post by Harold Marshall »

Trying to get reCAPTCHA working:

The authentication phase seems to go thru, including ZoneMinder credentials, but the server returns HTTP ERROR 500.

sudo tail -f /var/log/apache2/error.log :
[php7:error] [pid 855] [client 10.1.1.1:42170] PHP Fatal error: Uncaught Exception: Problem with https://www.google.com/recaptcha/api/siteverify, Array\n(\n [type] => 2\n [message] => fopen(https://www.google.com/recaptcha/api/siteverify): failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution\n [file] => /usr/share/zoneminder/www/includes/functions.php\n [line] => 2466\n)\n in /usr/share/zoneminder/www/includes/functions.php:2468\nStack trace:\n#0 /usr/share/zoneminder/www/includes/actions/login.php(40): do_post_request('https://www.goo...', 'secret=********')\n#1 /usr/share/zoneminder/www/index.php(228): require_once('/usr/share/zone...')\n#2 {main}\n thrown in /usr/share/zoneminder/www/includes/functions.php on line 2468, referer: https://*********/zm/

Works fine without the reCAPTCHA (configured to use SSL/HTTPS [Let's Encrypt / Certbot]).
User avatar
Harold Marshall
Posts: 7
Joined: Sun Jan 19, 2020 4:19 pm

Re: Google reCAPTCHA (v3) not working

Post by Harold Marshall »

Harold Marshall wrote: Sat Jan 25, 2020 10:32 am Trying to get reCAPTCHA working:

The authentication phase seems to go thru, including ZoneMinder credentials, but the server returns HTTP ERROR 500.

sudo tail -f /var/log/apache2/error.log :
[php7:error] [pid 855] [client 10.1.1.1:42170] PHP Fatal error: Uncaught Exception: Problem with https://www.google.com/recaptcha/api/siteverify, Array\n(\n [type] => 2\n [message] => fopen(https://www.google.com/recaptcha/api/siteverify): failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution\n [file] => /usr/share/zoneminder/www/includes/functions.php\n [line] => 2466\n)\n in /usr/share/zoneminder/www/includes/functions.php:2468\nStack trace:\n#0 /usr/share/zoneminder/www/includes/actions/login.php(40): do_post_request('https://www.goo...', 'secret=********')\n#1 /usr/share/zoneminder/www/index.php(228): require_once('/usr/share/zone...')\n#2 {main}\n thrown in /usr/share/zoneminder/www/includes/functions.php on line 2468, referer: https://*********/zm/

Works fine without the reCAPTCHA (configured to use SSL/HTTPS [Let's Encrypt / Certbot]).
There really was an issue in name resolution... :) Got that fixed, and now it throws an "Invalid username or password" error when "OPT_USE_GOOG_RECAPTCHA" is enabled (otherwise works fine).
Post Reply