You are not logged in.
Pages: 1
For the record, I hit a problem after upgrading my PHP installation. The following message was displayed in TXP admin and on the website:
Warning: date_default_timezone_get() [function.date-default-timezone-get]: 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 'Australia/Melbourne' for 'EST/11.0/DST' instead in ......../textpattern/lib/txplib_misc.php on line 2525
In my case I was upgrading from PHP 5.3.1 to 5.3.5. Problem seen in TXP 4.2.0 & 4.3.0
The fix is to set the timezone explicitly in the php.ini file:
date.timezone = Australia/Melbourne
The line was commented out & I’m not sure if PHP has suddenly become picky or my php.ini file had been overwritten during the upgrade.
Offline
I have the same warning, but i can’t edit my php.ini.
There is another way to solve the problem?
Last edited by MarcoK (2011-05-03 13:42:57)
Offline
I have txp 4.4.
I have solved the problem, by editing config.php in textpattern/ dir adding
date_default_timezone_set('Europe/Rome'); //Rome in my case
Offline
Just for the records either, i had the same bug with txp 4.4.1 after the hosting company upgraded php to 5.3.5. MarcoK solution did it… (I can´t access php.ini on this server).
Thx a lot…
Offline
Marcok, where is that config.php file you mention where to add the configuration for the time zone settings?
thanks
Offline
config.php is in /textpattern/.
<txp:Els /> ;)
Tag Reference | Unexpected behaviour? Check the tag trace | Still no clue? Check the names of your custom fields
Offline
Pages: 1