[solved] unknown strftime error

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
alex789
New Member
New Member
Posts: 3
Joined: Tue Sep 22, 2009 7:24 am

[solved] unknown strftime error

Post by alex789 »

have just tried installing cmsms 1.6.5 on a windows pc using xampp 1.7.2

Keep getting the following error messages appearing everywhere ( on admin pages, when viewing site)
Warning: strftime() [function.strftime]: 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 '10.0/no DST' instead in C:\xampp\htdocs\anex\lib\smarty\Smarty_Compiler.class.php on line 400

Warning: strftime() [function.strftime]: 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 '10.0/no DST' instead in C:\xampp\htdocs\anex\lib\smarty\internals\core.write_compiled_include.php on line 28
The following link appears to pertain to the same problem, but is in german.
http://forum.cmsmadesimple.org/index.php/topic,36487.0.html

Hoping someone can help me out

Thank You
Last edited by alex789 on Wed Sep 23, 2009 1:06 am, edited 1 time in total.
baresi
Forum Members
Forum Members
Posts: 129
Joined: Fri Jul 27, 2007 4:15 pm

Re: unknown strftime error

Post by baresi »

XAMMP 1.7.2 is PHP 5.3.0 I believe, not compitable with CMSms currently, 5.2.11 is
alex789
New Member
New Member
Posts: 3
Joined: Tue Sep 22, 2009 7:24 am

Re: unknown strftime error (SOLVED)

Post by alex789 »

XAMMP 1.7.2 is PHP 5.3.0 I believe, not compitable with CMSms currently, 5.2.11 is
thanks baresi, will keep in mind.

Managed to solve this problem. Turned out I was using firefox 2.0. Updated to 3.5.2 and got rid of that problem, unfortunately got some new ones. Probably related to the PHP version. Will use older version of XAMPP and see if that fixes the problem.

Cheers
bDoc
Forum Members
Forum Members
Posts: 31
Joined: Sun Feb 22, 2009 2:09 am

Re: [solved] unknown strftime error

Post by bDoc »

It's not compatible but so that I wouldn't have to do a full downgrade I did the following and it worked fine.

1. Go to this file /lib/smarty/Smarty_Compiler.class.php
2. Go to line 400 and comment it out
3. Add this line under line 400  $template_header = "_version.", created on ".date_default_timezone_set("America/New_York")."\n";

Note: The time zone to put is in the error.  Mine said America/New York.  Put whatever yours says. In this case yours is Australia/Melbourne

So when the new version of CMSMS comes out all I will have to do is uncomment the line and remove this line and apply the updates.

Hope this helps
Locked

Return to “[locked] Installation, Setup and Upgrade”