PHP Warning: strftime() & simplexml errors
Posted: Mon Jul 29, 2013 3:26 pm
My logs continue to fill up on my Nagios server. So I ran a tail -f /var/log/httpd/error_log to see what was the culprit. I'm getting a tone of the following two error messages.
So this is what I've done so far to verify and troubleshoot (for error #1). I have no idea what is causing the second error message. IP address x.x.110.49 and x.x.110.96 are workstations connecting to the Nagios XI GUI.
-I've verified that the settings in /etc/php/php.ini for the timezone is correct.
-Verified the date and time is correct on the CentOS server.
Code: Select all
[error] [client 192.168.110.49] PHP Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /usr/local/nagiosxi/html/includes/utilsl.inc.php on line 381, referer: http://192.168.100.77/nagiosxi/includes/components/xicore/tac.php
Code: Select all
[error] [client 192.168.110.96] PHP Warning: simplexml_load_string(): Entity: line 2: parser error : Start tag expected, '<' not found in /usr/local/nagiosxi/html/includes/utils-backend.inc.php on line 27, referer: http://192.168.100.77/nagiosxi/includes/components/xicore/status.php?show=processSo this is what I've done so far to verify and troubleshoot (for error #1). I have no idea what is causing the second error message. IP address x.x.110.49 and x.x.110.96 are workstations connecting to the Nagios XI GUI.
-I've verified that the settings in /etc/php/php.ini for the timezone is correct.
-Verified the date and time is correct on the CentOS server.