Igalia / phpreport

Web tool for project time tracking and project management.
http://igalia.github.io/phpreport/
GNU General Public License v3.0
30 stars 12 forks source link

Projects summary don't works #130

Closed jaragunde closed 8 years ago

jaragunde commented 8 years ago

[Trac import] Reported by: rocapal Original date: Tuesday, 11 January 2011 11:04

The feature projects -> projects summary don't works.

The apache log says this:

[Tue Jan 11 11:00:36 2011] [error] [client 193.147.51.122] 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 'Europe/Berlin' for 'CET/1.0/no DST' 
instead' in /var/www/phpreport/model/facade/action/GetGlobalProjectsUsersReportAction.php:77\nStack trace:\n#0 
/var/www/phpreport/model/facade/action/GetGlobalProjectsUsersReportAction.php(77): DateTime->__construct()\n#1 
/var/www/phpreport/model/facade/TasksFacade.php(360): 
GetGlobalProjectsUsersReportAction->__construct(NULL, NULL)\n#2 
/var/www/phpreport/web/services/getProjectUserReportJsonService.php(93): 
TasksFacade::GetGlobalProjectsUsersReport(NULL, NULL)\n#3 {main}\n  thrown 
in 
/var/www/phpreport/model/facade/action/GetGlobalProjectsUsersReportAction.
php on line 77, referer: 
https://timetracking.libresoft.es/web/projectsSummary.php

Phpreport run with PHP 5.3.3-0.dotdeb.1

jaragunde commented 8 years ago

[Trac import] Comment by: jaragunde Original date: Wednesday, 12 January 2011 13:33

Hi rocapal, and thanks for trying !PhpReport.

I wasn't able to reproduce the bug, but I'm running PHP 5.3.2-1ubuntu4; I remember having got such messages in the past, but they were just warnings, not fatal errors, and didn't break the execution.

To fix it, try to configure the timezone in your PHP installation. In the file /etc/php5/apache2/php.ini, add the line:

date.timezone = Europe/Madrid
jaragunde commented 8 years ago

[Trac import] Comment by: rocapal Original date: Monday, 24 January 2011 09:49

Hello jaragunde!

Sorry for my delay of the response.

Phpreport works fine with the change than you tell me. Now, Projects Summary works :-)

Thank you!

jaragunde commented 8 years ago

[Trac import] Comment by: jaragunde Original date: Monday, 24 January 2011 17:34

I'm glad to hear that :) .

Anyway, I leave the ticket open, because this should be reproduced to study a solution. Or at least, it should be documented as a possible problem.

Thanks for your feedback ;) .

jaragunde commented 8 years ago

[Trac import] Comment by: jaragunde Original date: Thursday, 24 January 2013 12:45

This error and the solution was documented in a FAQ inside the INSTALL file some time ago.