Make sure your server is running PHP 5
GHengeveld |
|
---|---|
Since Cotonti requires PHP 5, I found it convenient (or actually neccesary) to add a single line to my .htaccess file so the server (Mediatemple Grid Service) would treat my .php files as PHP 5.
If your server is executing files as PHP 4 you will soon find your site to die with a fatal error: Call to undefined function: date_default_timezone_set() Here's what I've added in .htaccess: AddHandler php5-script .php Perhaps we should include this in Cotonti by default. |
pieter |
|
---|---|
Welcome back.
Or not? ... can we help you ...
|
GHengeveld |
|
---|---|
I'm still working with Cotonti for a big client project (hence the overpowered clustered gridservers). This is likely to become the largest Cotonti powered webservice.
|
Trustmaster |
|
---|---|
I'm not sure, this might be host-specific. I thought about adding a PHP version check to config.php as well as functions.php. Or a better solution is leaving the timezone config in config.php whereas the function itself is called in common.php.
May the Source be with you!
|