Fatal error: Call to undefined function timezone_identifiers_list()


(tongo91) #1

Hi,

i’m using CentOS with PHP 5.1.6 and after updating of piwik to 0.9.9 i got this:

Fatal error: Call to undefined function timezone_identifiers_list() in /var/www/vhosts/*/httpdocs/st/core/Updates/0.9.1.php on line 21

How can i fix this?

This function is only avaiable when php was compiled with “-DEXPERIMENTAL_DATE_SUPPORT”.

greets


(tongo91) #2

Was able to fix this problem.

I just add an dummy function above the main code:

function timezone_identifiers_list() {
    return array(
        '495' => 'Europe/Berlin',
    );
}

(Matthieu Aubry) #3

Thanks for the report. this is now fixed


(earwax) #4

[quote=tongo91 @ Aug 27 2010, 06:33 AM]Was able to fix this problem.

I just add an dummy function above the main code:

function timezone_identifiers_list() {
    return array(
        '495' => 'Europe/Berlin',
    );
}

[/quote]

What’s the identifier code for US/Pacific? I am having this problem even though matthieu claims it is fixed. For the time being, I just copied your ‘495’=>‘Europe/Berlin’, but not sure what effect this has, if any.


(Matthieu Aubry) #5

Please download the latest.zip again, and the bug will be fixed.


(rharrison) #6

I am still seeing the issue after downloading the updated zip.


(Matthieu Aubry) #7

The zip was probably cached in your proxy, try applying the patch manually


(Matthieu Aubry) #8

The bug was fixed in 1.0. If you still experience the issue, please let us know