Operations Center spamming logs with PHP Undefined variable

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rpike
Posts: 12
Joined: Mon Apr 20, 2015 12:17 pm

Operations Center spamming logs with PHP Undefined variable

Post by rpike »

For example:

PHP Notice: Undefined variable: class in /usr/local/nagiosxi/html/includes/components/nocscreen/nocscreenapi.php on line 425

I confirmed that "display_errors = Off" is in /etc/php.ini.
Is there any other way to stop these messages?

I also have the spinning "Update in progress".

Nagios XI version: 5.6.1
CentOS release 6.10 (Final)
PHP Version: 5.3.3
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Operations Center spamming logs with PHP Undefined varia

Post by benjaminsmith »

Hello @rpike,

This is a known issue with upgrades that should be resolved in a later release. However, if you can stop the page, then run the upgrade from the command line instead:

Code: Select all

wget -O upgrade.sh https://assets.nagios.com/downloads/nagiosxi/upgrade.sh
sh ./upgrade.sh
and let me know if you able to successfully upgrade. As far as the notices, try to set display_errors = 0 and then re-start Apache.

Code: Select all

service httpd restart
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked