Notice: Trying to access array offset on value of type bool

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Helmut
Posts: 2
Joined: Thu Feb 11, 2021 8:40 am

Notice: Trying to access array offset on value of type bool

Post by Helmut »

Hi,

I recently upgraded to PHP74 on FreeBSD. When I enter the website I get a blank screen and:

Notice: Trying to access array offset on value of type bool in /var/www/nagios/includes/utils.inc.php on line 217

if(($fh=@fopen($fname,'r'))!=FALSE){
// read all lines in the config file
while(!feof($fh)){
$s=fgets($fh);

// skip comments
if($s[0]=='#')
continue;

217: if($s[0]=='#')

I'm using 4.4.6

Any ideas?

Thank you!
Locked