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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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


1421 Views

Avatar
Dehru

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 2.0.0.7