Opened 11 months ago
Closed 11 months ago
#1488546 closed Bugs (fixed)
date.timezone changed to a requirement?
| Reported by: | SKaero | Owned by: | |
|---|---|---|---|
| Priority: | 10 - Lowest | Milestone: | 0.8-stable |
| Component: | PHP backend | Version: | 0.8-rc |
| Severity: | trivial | Keywords: | date.timezone |
| Cc: |
Description
RoundCube seems to be showing a blank page if date.timezone isn't set. Along with this report: http://www.roundcubeforum.net/index.php/topic,9790.0/topicseen.html I also ran into the problem on a new server that didn't have date.timezone set. So maybe it should be changed to a RoundCube requirement instead of being optional.
Change History (3)
comment:1 Changed 11 months ago by alec
- Milestone changed from later to 0.8-stable
comment:2 follow-up: ↓ 3 Changed 11 months ago by SKaero
Sorry for the delay, I tested with the latest 0.9 git and had the same problem occur. I'm running Debian with PHP-FPM 5.3.14 on Nginx so it maybe one of those. The errors I get are the following:
[28-Jun-2012 05:20:48 UTC] 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 'Europe/Moscow' for 'MSK/4.0/no DST' instead in /usr/share/nginx/www/roundcube-roundcubemail-acf5bec/program/include/rcube_config.php on line 397
[28-Jun-2012 05:20:48 UTC] PHP Warning: strtotime(): 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/Moscow' for 'MSK/4.0/no DST' instead in /usr/share/nginx/www/roundcube-roundcubemail-acf5bec/program/include/rcube_session.php on line 132
[28-Jun-2012 05:20:49 UTC] PHP Warning: date(): 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/Moscow' for 'MSK/4.0/no DST' instead in /usr/share/nginx/www/roundcube-roundcubemail-acf5bec/program/include/rcube_session.php on line 589
[28-Jun-2012 05:20:49 UTC] 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/Moscow' for 'MSK/4.0/no DST' instead' in /usr/share/nginx/www/roundcube-roundcubemail-acf5bec/program/steps/settings/func.inc:184
Stack trace:
#0 /usr/share/nginx/www/roundcube-roundcubemail-acf5bec/program/steps/settings/func.inc(184): DateTime->__construct()
#1 /usr/share/nginx/www/roundcube-roundcubemail-acf5bec/program/steps/settings/func.inc(51): rcmail_user_prefs()
#2 [internal function]: rcmail_sections_list(Array)
#3 /usr/share/nginx/www/roundcube-roundcubemail-acf5bec/program/include/rcube_output_html.php(751): call_user_func('rcmail_sections...', Array)
#4 [internal function]: rcube_output_html->xml_command(Array)
#5 /usr/share/ngi in /usr/share/nginx/www/roundcube-roundcubemail-acf5bec/program/steps/settings/func.inc on line 184
[28-Jun-2012 05:20:49 UTC] PHP Warning: date(): 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/Moscow' for 'MSK/4.0/no DST' instead in /usr/share/nginx/www/roundcube-roundcubemail-acf5bec/program/include/rcube_mdb2.php on line 649
[28-Jun-2012 05:20:49 UTC] PHP Warning: strtotime(): 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/Moscow' for 'MSK/4.0/no DST' instead in /usr/share/nginx/www/roundcube-roundcubemail-acf5bec/program/include/rcube_session.php on line 132
I'm not even sure whats going on seeing that there is two PHP Warning warring after the PHP Fatal error. This is all setup on one of my test boxes so if you want I can give you access to it to test it out.
comment:3 in reply to: ↑ 2 Changed 11 months ago by alec
- Resolution set to fixed
- Status changed from new to closed
Replying to SKaero:
[28-Jun-2012 05:20:49 UTC] 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/Moscow' for 'MSK/4.0/no DST' instead' in /usr/share/nginx/www/roundcube-roundcubemail-acf5bec/program/steps/settings/func.inc:184
I'm still unable to reproduce. For some reason my PHP is able to fix date.timezone setting resetting to proper value. However, this fatal error is fixed in [ceaaebbc].

I'm unable to reproduce this issue with date.timezone not set using PHP 5.3.10 and git release-0.8 branch. Maybe fixed or PHP 5.4 only?