Page 1 of 1

XI2014 R1.4 Error on top of page

Posted: Thu Aug 14, 2014 3:10 pm
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

Re: XI2014 R1.4 Error on top of page

Posted: Thu Aug 14, 2014 3:18 pm
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.

Re: XI2014 R1.4 Error on top of page

Posted: Thu Aug 14, 2014 3:22 pm
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?

Re: XI2014 R1.4 Error on top of page

Posted: Thu Aug 14, 2014 3:47 pm
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?

Re: XI2014 R1.4 Error on top of page

Posted: Thu Aug 14, 2014 4:25 pm
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

Re: XI2014 R1.4 Error on top of page

Posted: Thu Aug 14, 2014 4:31 pm
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

Re: XI2014 R1.4 Error on top of page

Posted: Thu Aug 14, 2014 5:02 pm
by devinacosta
Ok that fixed the errors, thanks much.

Re: XI2014 R1.4 Error on top of page

Posted: Thu Aug 14, 2014 5:03 pm
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.