Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Error Saving Content - Possible Date Issue On Windows

Go to End



1 Post

26 September 2007 at 7:27am

Hello, I think I found a bug that might be troubling some people when they're trying to develop locally on Windows.

Basically, I get a "Error Saving Content" if I have a Date in the $db array, but no error if I have a Date in the $has_one array. This issue exists with Tutorial 2 as well with the ArticlePage.

[code php]
static $db = array(
"Media" => "Enum('Artist, Writer','Artist')",
"TalkingDate" => "Date"
static $has_one = array(
"BioImage" => "Image",
"SpeakingDate" => "Date"

If I leave TalkingDate in I get the Error Saving. If I remove it, no error. It actually saved the data but requires a flush to see it in the CMS.

This all works fine in a Linux environment...but has caused me a few hours of debugging the issue so I hope to save others from the hassle.

Again, if this is a real issue, this may stump people in tutorial 2.

Windows XP SP2, PHP 5.2.4, Mysql 5.0.41, SS 2.0.2b, Firefox