XI2014 R1.4 Error on top of page

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
devinacosta
Posts: 21
Joined: Mon Jun 11, 2012 11:57 am

XI2014 R1.4 Error on top of page

Post by devinacosta »

When I am inside the Core Config Manager in the new NagiosXI 2014R1.4 and i click on either hosts or services inside the core config manager, i get error message at the top of my pages:

Notice: Undefined variable: ac_needed_js_inject in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 175 Notice: Undefined variable: sync_table_status in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 195
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: XI2014 R1.4 Error on top of page

Post by tmcdonald »

Have you applied your configs since updating? Try that and see if the error goes away. That section of code deals with alerting you if you need to apply your configuration, and it doesn't have an "else" clause so the variable kinda sits in limbo if not defined as 1.
Former Nagios employee
devinacosta
Posts: 21
Joined: Mon Jun 11, 2012 11:57 am

Re: XI2014 R1.4 Error on top of page

Post by devinacosta »

I have applied the configuration twice by using the "Apply Configuration" and it applies OK but still getting the message on top of my screen. Any other ideas?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: XI2014 R1.4 Error on top of page

Post by slansing »

Error reporting may be bumped up for php, what is the output of:

Code: Select all

cat /etc/php.ini | grep 'error_reporting = '

Code: Select all

cat /etc/php.ini | grep 'display_errors'
Do you notice this in the header of any other XI pages?
devinacosta
Posts: 21
Joined: Mon Jun 11, 2012 11:57 am

Re: XI2014 R1.4 Error on top of page

Post by devinacosta »

cat /etc/php.ini | grep 'error_reporting = '
error_reporting = E_ALL & ~E_DEPRECATED

cat /etc/php.ini | grep 'display_errors'
; display_errors
display_errors = On
; separately from display_errors. PHP's default behavior is to suppress those
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: XI2014 R1.4 Error on top of page

Post by slansing »

Ah, display_errors is on for some reason, please edit that php.ini file and change:

Code: Select all

display_errors = On
To:

Code: Select all

display_errors = Off
Then save it, and for good measure, restart apache:

Code: Select all

service httpd restart
devinacosta
Posts: 21
Joined: Mon Jun 11, 2012 11:57 am

Re: XI2014 R1.4 Error on top of page

Post by devinacosta »

Ok that fixed the errors, thanks much.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: XI2014 R1.4 Error on top of page

Post by slansing »

No problem! Thanks for letting us know! I didn't see this when I updated, I'll check to see if it happens on a full install, so far it just looks like it was manually set at some point on your system.
Locked