Page 1 of 1

PHP warnings

Posted: Tue Oct 23, 2018 8:36 am
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

Re: PHP warnings

Posted: Tue Oct 23, 2018 3:10 pm
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

Re: PHP warnings

Posted: Wed Oct 24, 2018 8:40 am
by Bitflogger
Hello,

This is done, please lock the case.

Earl