Error: Timezone ID '' is invalid


#1

Hi,

I get the following error when I try to install Piwik.
Typo3 Version 4.5.0

There is an error. Please report the message and full backtrace in the Piwik forums.

Notice: date_default_timezone_set() [function.date-default-timezone-set]: Timezone ID ‘’ is invalid in /homepages/4/d23401398/htdocs/typo3conf/piwik/piwik/core/Date.php on line 88

Backtrace -->
#0 Piwik_ErrorHandler(8, date_default_timezone_set() [function.date-default-timezone-set]: Timezone ID ‘’ is invalid, /homepages/4/d23401398/htdocs/typo3conf/piwik/piwik/core/Date.php, 88, Array ([dateString] => yesterdaySameTime,[timezone] => ,[date] => Piwik_Date Object ([] => 1302973200,[] => UTC),[utcOffset] => ))#1 date_default_timezone_set() called at [/homepages/4/d23401398/htdocs/typo3conf/piwik/piwik/core/Date.php:88]#2 Piwik_Date::factory(yesterdaySameTime, ) called at [/homepages/4/d23401398/htdocs/typo3conf/piwik/piwik/core/Controller.php:97]#3 Piwik_Controller->getDateParameterInTimezone(yesterday, ) called at [/homepages/4/d23401398/htdocs/typo3conf/piwik/piwik/core/Controller.php:63]#4 Piwik_Controller->init() called at [/homepages/4/d23401398/htdocs/typo3conf/piwik/piwik/core/Controller.php:52]#5 Piwik_Controller->__construct() called at [/homepages/4/d23401398/htdocs/typo3conf/piwik/piwik/core/FrontController.php:114]#6 Piwik_FrontController->dispatch() called at [/homepages/4/d23401398/htdocs/typo3conf/piwik/piwik/index.php:57]

Does anyone have an idea how to fix this?


(Matthieu Aubry) #2

please try this patch: http://dev.piwik.org/trac/changeset/4494

However, there must be a bug in the TYPO3 integration because it is not supposed to pass to Piwik an empty timezone. If Typo3 has timezone support, then it is expected that the timezone for the website is passed to Piwik.
Please try to contact typo3 extension author to let him know about this problem, cheers


#3

thanks matt,

I couldn’t try your solution jet, but I will let you know if it solves my problem.


#4

it works for me… thanks