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
XI2014 R1.4 Error on top of page
Re: XI2014 R1.4 Error on top of page
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
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
Error reporting may be bumped up for php, what is the output of:
Do you notice this in the header of any other XI pages?
Code: Select all
cat /etc/php.ini | grep 'error_reporting = '
Code: Select all
cat /etc/php.ini | grep 'display_errors'
-
devinacosta
- Posts: 21
- Joined: Mon Jun 11, 2012 11:57 am
Re: XI2014 R1.4 Error on top of page
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
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
Ah, display_errors is on for some reason, please edit that php.ini file and change:
To:
Then save it, and for good measure, restart apache:
Code: Select all
display_errors = On
Code: Select all
display_errors = Off
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
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
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.