1. If time stamp is set without default value, I get a notice:
Notice: Undefined index: timezone in date_field_validate() (line 330 of /sites/all/modules/date/date.field.inc).
2. If default value is set for "Now", I get a crash:
CRASH: PHP segmentation violation in date_field_validate() called at [/sites/all/modules/date/date.field.inc:332], in date_field_validate() called at [/modules/field/field.attach.inc:198], in _field_invoke() called at [/modules/field/field.attach.inc:766], in field_attach_validate() called at [/modules/field/field.attach.inc:815], in field_attach_form_validate() called at [/includes/common.inc:7654], in entity_form_field_validate() called at [/modules/node/node.pages.inc:77], in node_form_validate() called at [/includes/form.inc:1430], in form_execute_handlers() called at [/includes/form.inc:1371], ..., in call_user_func_array() called at [/includes/menu.inc:503], in menu_execute_active_handler() called at [/index.php:21]
Comments
Comment #1
AndrzejG commentedOK.
Both errors appear only when the settings of default date are changed AFTER at least one node has been saved.
Comment #2
AndrzejG commentedReopen.
Probably default date should also been dimed and locked after saving the first node, such as hours-mins... and timezone do.
Comment #3
AndrzejG commentedHmm,
Error #2 occurs only when a timestamp field has a default value and is hidden using Node Form Columns.
Continuing research.
Comment #4
tim.plunkettThis is a duplicate of #1387890: Using form_alter to set a date field to #disabled removes the field from the form and/or #1388190: PHP Fatal and PDOException when saving a disabled timestamp Date Field.