#1 2015-07-21 09:25:56

nynol
Mitglied
2014-08-15
2

[geklärt] Fehler nach Server-Update

Hallo,

nach einem Server-update erhalte ich im piwigo folgende Fehlermeldungen...
Wenn ich auf Administration gehe:

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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/piwigo/admin/intro.php on line 116

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/piwigo/include/functions.inc.php:584 Stack trace: #0 /var/www/piwigo/include/functions.inc.php(584): DateTime->__construct() #1 /var/www/piwigo/include/functions.inc.php(605): str2DateTime('2014-08-08 09:5...', NULL) #2 /var/www/piwigo/admin/intro.php(230): format_date('2014-08-08 09:5...') #3 /var/www/piwigo/admin.php(288): include('/var/www/piwigo...') #4 {main} thrown in /var/www/piwigo/include/functions.inc.php on line 584

und wenn ich ein Foto anklicke:

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/piwigo/include/functions.inc.php:584 Stack trace: #0 /var/www/piwigo/include/functions.inc.php(584): DateTime->__construct() #1 /var/www/piwigo/include/functions.inc.php(605): str2DateTime('2015-07-08 13:0...', NULL) #2 /var/www/piwigo/picture.php(832): format_date('2015-07-08 13:0...') #3 {main} thrown in /var/www/piwigo/include/functions.inc.php on line 584

Wo und wie muss ich die Zeitzone ändern und warum?

Danke
nynol

Offline

#2 2015-07-21 10:47:45

nynol
Mitglied
2014-08-15
2

Re: [geklärt] Fehler nach Server-Update

Hallo,

ich habe die Lösung selbst gefunden ;-)

in der Datei /include/functions.inc.php folgendes einfügen

date_default_timezone_set('Europe/Berlin');

und alles funktioniert wieder....

nynol

Offline

Brett Fußzeile

Unterstützt von FluxBB

github twitter newsletter Spenden Piwigo.org © 2002-2024 · Kontakt