date() error

Das Forum ist für das Melden von Bugs gedacht. // This forum is intended to report bugs with the APF.
Gesperrt
Benutzeravatar
dr.e.
Administrator
Beiträge: 4527
Registriert: 04.11.2007, 16:13:53

date() error

Beitrag von dr.e. » 10.01.2009, 12:49:40

In PHP 5 environments that do not have configured the php.ini option

Code: Alles auswählen

date.timezone
the following error is displayed:
date(): It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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
Further, at the end of the page you can see the following text:
Fatal error: [filterFactory::getFilter()] Requested filter "pagecontrollerRewriteRequestFilter" cannot be loaded from namespace "core::filter"! in /var/www/html/adventure/apps/core/filter/filterFactory.php5 on line 81 Call Stack: 0.1889 1314308 1. flushLogger() /var/www/html/adventure/apps/core/logging/Logger.php:0 0.1892 1314308 2. Logger->flushLogBuffer() /var/www/html/adventure/apps/core/logging/Logger.php:21 0.1893 1314308 3. Logger->__getLogFileName(string(3)) /var/www/html/adventure/apps/core/logging/Logger.php:239 0.1893 1314308 4. date(string(5)) /var/www/html/adventure/apps/core/logging/Logger.php:280 0.1894 1315308 5. errorHandler(long, string(363), string(52), long, array(1)) /var/www/html/adventure/apps/core/errorhandler/errorHandler.php:0 0.1895 1315308 6. errorManager->raiseError(long, string(363), string(52), long) /var/www/html/adventure/apps/core/errorhandler/errorHandler.php:36 0.1902 1315856 7. errorManager->__buildErrorPage() /var/www/html/adventure/apps/core/errorhandler/errorHandler.php:112 0.1902 1315856 8. Page->Page(string(10), ???) /var/www/html/adventure/apps/core/errorhandler/errorHandler.php:175 0.1904 1315856 9. filterFactory::getFilter(string(12), string(34)) /var/www/html/adventure/apps/core/pagecontroller/pagecontroller.php5:882 0.1905 1316108 10. trigger_error(string(130), long) /var/www/html/adventure/apps/core/filter/filterFactory.php5:81
In this case, set the default timezone within the php.ini like this:

Code: Alles auswählen

date.timezone = "Europe/Berlin"
Further information can be read about on
Viele Grüße,
Christian

Gesperrt

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast