OS: CentOS 7 on Hyper-V (Windows Server 2019 Datacenter)
Pi-hole version is v5.0 (Latest: v5.0)
AdminLTE version is v5.0 (Latest: v5.0)
FTL version is v5.0 (Latest: v5.0)
Just curious if you are having the same issue with me. When I run 'pihole -d', under the 'lighttpd" section I get the following errors:
2020-05-19 11:34:05: (mod_fastcgi.c.421) FastCGI-stderr: PHP Notice: Undefined offset: 0 in /var/www/html/pihole/index.php on line 205
2020-05-19 11:34:05: (mod_fastcgi.c.421) FastCGI-stderr: PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/html/pihole/index.php on line 206
Both pi-hole and lighttpd are up to date for me as well. This error on lines 205/206 are:
// QoL addition: Determine appropriate info message if CNAME exists
// Suggests to the user that $serverName has a CNAME (alias) that may be blocked
$dnsRecord = dns_get_record("$serverName")[0];
if (array_key_exists("target", $dnsRecord)) {
$wlInfo = $dnsRecord['target'];
} else {
$wlInfo = "unknown";
}
}
So I have no solution as of yet, but I am having the same error, with the same version of Pi-hole and FTL, but using Raspberry Pi OS. Just adding it here to link the two threads.