Page 1 of 1

Upgrade issues

Posted: Fri Jul 25, 2008 7:37 pm
by xjb2003x
I just upgraded from 1.2.1 to 1.3.1 today.  I copied my config.php to another place, blew out my old CMS directory, extracted the new version, deleted the install directory, removed the SITEDOWN, and finally moved my config.php back.  That went smooth, all my info was there.  The only problem I came across is with the timezone.  Below is the error:

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 had to select 'UTC' because your platform doesn't provide functionality for the guessing algorithm in /opt/coolstack/apache2/htdocs/lib/content.functions.php(675) : eval()'d code on line 5

I remember running into this whenever I initially installed CMSMS, but I can't remember - and haven't found info - on how to resolve the issue.  At last resort, I was hoping to get some help from this forum.

Thanks in advance.

Re: Upgrade issues

Posted: Sat Jul 26, 2008 2:35 pm
by Pierre M.
Hello,

I wouldn't use an old config.php on a new version. I'd rather it be managed by install/upgrade.php or regenerated by the install wizard (not recreating the db tables to keep your content). Of course you may need to retune it by end hand (edit:typo) at the end of the upgrade process.

Pierre M.

Re: Upgrade issues

Posted: Tue Jul 29, 2008 7:24 pm
by xjb2003x
I did your recommendation and upgraded everything rather than using the old configuration.  That didn't work though.  I was able to fix it by adding the following line to my php.ini file:

date.timezone = "America/New_York"

Once I restarted apache, the timezone messages disappeared.

Thanks for your help though