I upgraded to and not I get the following error when I try to create a node for a content type:
Warning: Invalid argument supplied for foreach() in date_combo_validate() (line 498 of /home/public_html/xxx/sites/all/modules/date/date_elements.inc).
There are errors in 'field years' value #1:
The dates are invalid.
How do I get rid of the error?
Comments
Comment #1
karens commentedI can't possibly do anything with a report like this. I don't know what type of field you created, what widget you're using, how you configured it or what value was in the field that got reported as being invalid.
Comment #2
LTech commentedHi, I'm sorry if I didn't give enough information.
I'm using panels 7.x-3.0-alpha3 and ctools 7.x-1.0-rc1 for a node edit form.
When I try to save the node form I get the error:
"Warning: Invalid argument supplied for foreach() in date_combo_validate() (line 498 of /home/petwiki/public_html/xxx/sites/all/modules/date/date_elements.inc).
There are errors in Years value #1:
The dates are invalid."
I've deleted the field Years from my content type and it isn't part of my form so I have no idea where the error is coming from. In fact a different form that was using the field Years did not have an error!
The field was a date field, widget: text field.
I've tried using the dev version of date and I still got the error.
If you could help me out I would be most grateful, thanks.
Comment #3
LTech commentedI added the field Years to my form and the error went away. Although I don't understand why it was causing and error initially as it isn't a required field.
Comment #4
arlinsandbulte commentedmarking as fixed then. Original issue might have been related to this: #1417872: Date Select does no granularity validation unless year is filled out
Comment #5
LTech commentedI set up a new date field with no end data and I got the same error. Do you need an end date? Could this be the problem?