Page 1 of 1

[solved] unknown strftime error

Posted: Tue Sep 22, 2009 7:52 am
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

Re: unknown strftime error

Posted: Tue Sep 22, 2009 8:04 am
by baresi
XAMMP 1.7.2 is PHP 5.3.0 I believe, not compitable with CMSms currently, 5.2.11 is

Re: unknown strftime error (SOLVED)

Posted: Wed Sep 23, 2009 1:05 am
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

Re: [solved] unknown strftime error

Posted: Thu Sep 24, 2009 6:03 pm
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