• Can anyone help?

    I have just tried to upload a sandbox theme blog to Plusnet who run php version 4.3.10 and I got the following error message

    Fatal error: Call to undefined function: date_default_timezone_set() in /share/storage/03/pe/peoplespace/wp-config.php on line 17

    – I know that one possible answer would be to change the php.ini file but I am unable – is there another way to deal with this problem??

    I have developed this blog on my own xampp server php version 5.3 and whilst I was doing this I uploaded atahualpa to my website which worked perfectly.

    hope someone can come up with the answer.

    Thanks

    Melanie Rich

Viewing 2 replies - 1 through 2 (of 2 total)
  • date_default_timezone_set()
    that feature wasn’t introduced until PHP 5.1.0 so your host’s php version is way out of date for it to function
    I think php5.2.9 is the earliest stable release for it

    you might try a putenv in the theme’s header.php – no guarantee it will work and back up 1st

    if(function_exists('date_default_timezone_set')
    {
       date_default_timezone_set('UTC');
    }
    else
    {
       putenv("TZ=UTC");
    }
    Thread Starter melanierich

    (@melanierich)

    Thanks very much for this I will try it.

    Plusnet said they were going to upgrade soon !!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error: Call to undefined function: date_default_timezone_set()’ is closed to new replies.