Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Fatal error: Uncaught exception 'Exception' with message DateTime #192

Closed
irumman opened this issue Aug 25, 2017 · 1 comment
Closed

Comments

@irumman
Copy link

irumman commented Aug 25, 2017

Hi,

I am trying to configure this application in Centos 7 with Mysql 5.7 and Php 5.4.
When I am calling index.php, it is showing the following error:

[Fri Aug 25 12:26:01.711832 2017] [:error] [pid 9803] [client ::1:33432] PHP Notice:  date_default_timezone_set(): Timezone ID 'PDT' is invalid in /var/www/html/anemometer/lib/Anemometer.php on line 47
[Fri Aug 25 12:26:01.711858 2017] [:error] [pid 9803] [client ::1:33432] PHP Warning:  date_default_timezone_get(): 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/anemometer/lib/Anemometer.php on line 48
[Fri Aug 25 12:26:01.711924 2017] [:error] [pid 9803] [client ::1:33432] PHP Fatal error:  Uncaught exception 'Exception' with message 'DateTime::__construct(): 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in /var/www/html/anemometer/lib/Anemometer.php:50\nStack trace:\n#0 /var/www/html/anemometer/lib/Anemometer.php(50): DateTime->__construct()\n#1 /var/www/html/anemometer/index.php(36): Anemometer->__construct(Array)\n#2 {main}\n  thrown in /var/www/html/anemometer/lib/Anemometer.php on line 50

Please advice.

Thanks.

@tkarraker
Copy link
Contributor

Hi @irumman,

This is a documented problem with Anemometer and running on 5.7 as a backend host. There is a workaround in #175 that will allow you to finish the install. If you would like, we would gladly merge a change that creates and modifies a mysql57-install.sql file.

Thank you for this report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants