Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-11-11 15:03:49

mono
Member
Registered: 2005-01-05
Posts: 12

internal_error date_default_timezone_set() after update 4.0.4 to 4.5.2

My site is joshames.com. It is currently in debugging mode and I’m getting the following error:

Tag error: <txp:rsd/> -> Textpattern Warning: tag does not exist on line 968

Fatal error: Call to undefined function get_pref() in /users/home/neko2001/domains/joshames.com/web/public/textpattern/lib/txplib_misc.php(512) : eval()’d code on line 62

I can log into textpattern and everything looks fine on the diagnostics. I am using textpattern 4.0.4. I had to change my hosting and did a database export/import to the new server if that is of any help.

{Edited title to describe the current state. – Uli}

Last edited by uli (2012-11-11 17:01:19)

Offline

#2 2012-11-11 15:22:39

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,304

Re: internal_error date_default_timezone_set() after update 4.0.4 to 4.5.2

txp:rsd was introduced in v4.0.7

I’d recommend to upgrade to a more secure version of TXP. This might involve updating some of your plugins as well. If in doubt, ask here.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#3 2012-11-11 15:38:10

mono
Member
Registered: 2005-01-05
Posts: 12

Re: internal_error date_default_timezone_set() after update 4.0.4 to 4.5.2

Great. That would explain it. So I went ahead and updated to the latest version. It’s working, but now I have another error, which is:

internal_error “date_default_timezone_set() [function.date-default-timezone-set]: Timezone ID ‘GMT-05.0’ is invalid”
in /users/home/neko2001/domains/joshames.com/web/public/textpattern/lib/txplib_misc.php at line 3031.

adminErrorHandler()
textpattern/lib/txplib_misc.php:3031 date_default_timezone_set()
textpattern/lib/txplib_misc.php:1560 timezone::is_dst()
textpattern/lib/txplib_misc.php:1594 tz_offset()
textpattern/include/txp_admin.php:381 safe_strftime()

Any clue on this one?

Offline

#4 2012-11-11 16:57:18

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,304

Re: internal_error date_default_timezone_set() after update 4.0.4 to 4.5.2

That’s the first occurrence of this error here. I’ll transfer this topic to the Troubleshooting section and adjust the title accordingly.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#5 2012-11-11 21:38:19

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: internal_error date_default_timezone_set() after update 4.0.4 to 4.5.2

Do you have a date.timezone set in PHP’s configuration file (php.ini or per-directory user.ini)? If not, then you need to.

Offline

#6 2012-11-12 13:57:59

mono
Member
Registered: 2005-01-05
Posts: 12

Re: internal_error date_default_timezone_set() after update 4.0.4 to 4.5.2

I checked my php.ini file and it is set to date.timezone = UTC
So I changed it to date.timezone = “America/New York” but that didn’t work. I don’t know php so I was just guessing based on a quick google search.

Offline

#7 2012-11-12 14:16:02

mono
Member
Registered: 2005-01-05
Posts: 12

Re: internal_error date_default_timezone_set() after update 4.0.4 to 4.5.2

Ok, it looks like I just had to reset my time zone to New York in the text pattern preferences and now it’s working fine. Thanks for your help everyone!

Offline

Board footer

Powered by FluxBB