PHP warnings

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Bitflogger
Posts: 226
Joined: Mon Oct 16, 2017 9:24 am

PHP warnings

Post by Bitflogger »

Hello, I'm running v5.5.3, 64 bit, VM, CentOs 7.

I see a number of warnings in /var/log/http/ssl_error_log like this:

[Mon Oct 22 16:52:50.112284 2018] [:error] [pid 2244] [client 144.92.108.187:58090] PHP Notice: Undefined index: idMaster in /usr/local/nagiosxi/html/includes/components/ccm/classes/data.class.php on line 1593, referer: https://nagiosxi.doit.wisc.edu/nagiosxi ... 26page%3D1

Are the warnings significant? Can they be fixed?

Earl
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: PHP warnings

Post by npolovenko »

Hello, @Bitflogger. Most often these warnings are caused by using unassigned variables in php. It is safe to ignore warnings.
You can stop these messages by changing the parameter in the /etc/php.ini file. Please open it and change the following line:
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
to
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_WARNING
Then run:
service httpd restart
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Bitflogger
Posts: 226
Joined: Mon Oct 16, 2017 9:24 am

Re: PHP warnings

Post by Bitflogger »

Hello,

This is done, please lock the case.

Earl
Locked