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.

Archive /

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

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

Error talking to server

Go to End



Community Member, 63 Posts

26 March 2008 at 7:06am

Hi I get this error when trying to save a record using DateField or CalendarDateField on a CalendarDateField, any hint on debugging that stuff?

class Event extends DataObject {

static $db = array(
'Lieu' => 'Text',
'CodePostal' => 'Text',
'DateDebut' => 'Date',
'DateFin' => 'Date'
static $has_one = array(
'MyProject' => 'Project'
function getCMSFields_forPopup() {
$fields = new FieldSet();
$fields->push( new TextField( 'Lieu' ) );
$fields->push( new TextField( 'CodePostal' ) );
$fields->push( new CalendarDateField( 'DateDebut' ) );
$fields->push( new CalendarDateField( 'DateFin' ) );
return $fields;