Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-09-01 17:10:16

JeremyCherfas
Member
Registered: 2012-09-01
Posts: 18

Just installed, getting an error

I just installed TxP for the firs time.

I get this error immediately:

Internal error “mktime(): 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 the timezone ‘UTC’ for now, but please set date.timezone to select your timezone.”.

I searched here, and went in to Admin Preferences and set my timezone. I still get the error, and other similar ones.

Is there a fix, please?

Thanks

Jeremy

Offline

#2 2012-09-01 17:23:10

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

Re: Just installed, getting an error

Maybe this will help?

Offline

#3 2012-09-02 07:53:15

JeremyCherfas
Member
Registered: 2012-09-01
Posts: 18

Re: Just installed, getting an error

I’m sure it would, if I were able to edit my php.ini.

By way of background, I was fleeing from the debacle at Joyent, and thought I would give TxP a try as well, to get away from WordPress. I chose simple hosting at Gandi, which in some respects has been very good, and in others not so much. Editing php.ini being one of them. In response to:

Can I change the PHP configuration files (php.ini) and MySQL (my.cnf)?

Gandi says:

No, not yet. We are considering the possibility (and risk) of allowing this level of configuration on a Simple Hosting instance. Of course, you can do so with a VPS.

So I guess I might go over and try a VPS. Or I could relax and see how the new Textdrive emerges from Joyent.

Thanks

Jeremy

Offline

#4 2012-09-02 07:57:37

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,323
Website Mastodon

Re: Just installed, getting an error

Add this line to your textpattern/config.php just before the closing ?>:

date_default_timezone_set('Europe/Paris');

Offline

#5 2012-09-02 08:18:02

JeremyCherfas
Member
Registered: 2012-09-01
Posts: 18

Re: Just installed, getting an error

Ooh. That did it!

Thank you very much.

Offline

Board footer

Powered by FluxBB