Hi,
i updated from 1.2.16 to 1.2.17, and all of a sudden it caused an issue with php and timezones
In php.ini the correct timezone is set and it sees the value in the master settings. But for the local value its getting something strange, and default timezone still says UTC..
have a look at these errors and photo attached, as local and master timezone settings dont match, and default timezone still says UTC
ERROR PHP WARNING: ini_set(): Invalid date.timezone value 'Etc/GMT-9.5', we selected the timezone 'UTC' for now. in file: /usr/share/cacti/include/global.php on line: 555
CMDPHP PHP ERROR WARNING Backtrace: (/utilities.php[25]:include(), /include/auth.php[28]:require_once(), /include/global.php[555]:ini_set(), CactiErrorHandler())
i did a whole search on the system and there is only one php.ini, and the date.timezone is correct. I also setup the test php info page to see what its reporting, and it shows the correct timezone Adelaide/Australia that its set to
I cannot find anywhere any record of the invalid timezone value Etc/GMT-9.5, or where its getting this value from, nor why the default timezone still says UTC. The cacti main collector is also set correctly to Adelaide/Australia, so im struggling to understand where Cacti is reading these different values.
I also setup a php info page in the root cacti directory, and shows everything correct, where as cacti itself, still keeps referring to invalid timezone trying to find Etc/GMT-9.5
Any help on this please? Im stuck
Timezone issue in 1.2.17 stuck need help
Moderators: Developers, Moderators
Timezone issue in 1.2.17 stuck need help
- Attachments
-
- cacti_php_values.png (54.31 KiB) Viewed 2311 times
-
- cacti_time_issue.png (43.52 KiB) Viewed 2311 times
Re: Timezone issue in 1.2.17 stuck need help
I just re-ran the installer just to see what it shows, and the PHP Recommendations Web shows the Etc/GMT-9.5 is enabled, while the PHP CLI is set to the correct one.
Still cannot figure out how to remove the Etc/GMT and make it like the php cli..
Still cannot figure out how to remove the Etc/GMT and make it like the php cli..
- Attachments
-
- php_cacti_cli-vs_web.png (109.36 KiB) Viewed 2306 times
Re: Timezone issue in 1.2.17 stuck need help
I found a fix for it
go to /etc/php-fpm.d/www.conf,
and added this, which seems to have fixed the issue.
php_admin_value[date.timezone] = Australia/Adelaide
This issue only occured when i ran "yum update" on my system and its done something weird to PHP now.
On another note, i also noticed the RRD graphs are off by -30mins if i login to cacti via SSL, if its not SSL, the graph time is accurate, it makes no sense
go to /etc/php-fpm.d/www.conf,
and added this, which seems to have fixed the issue.
php_admin_value[date.timezone] = Australia/Adelaide
This issue only occured when i ran "yum update" on my system and its done something weird to PHP now.
On another note, i also noticed the RRD graphs are off by -30mins if i login to cacti via SSL, if its not SSL, the graph time is accurate, it makes no sense
Re: Timezone issue in 1.2.17 stuck need help
was a bug.. resolved at https://github.com/Cacti/cacti/issues/4403
Who is online
Users browsing this forum: No registered users and 0 guests