Closed (fixed)
Project:
Date
Version:
7.x-1.0-alpha2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Jan 2011 at 16:51 UTC
Updated:
6 May 2011 at 15:31 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
zarudnyi commentedI have the same error with clean Drupal install and default Date module settings.
Comment #2
wa2nlinux commentedSame error using profile 2 on date field
Granularity: select Year
Comment #3
das-peter commentedLooks like this error occurs if the date is used in a tree structure of form values.
Atm. I'm not sure what the two conditions on line 334 / 335 are for. But I hope to code below is an usable approach to iterate to the position of the field values:
Comment #4
bvbunnik commentedApplied this code instead of the original lines (334 & 335 of date_elements.inc) and can confirm this is (for me) a working solution!
Thanks a lot for your effort!
Comment #5
aanjaneyam commented#3 works for me too.
Comment #6
Anonymous (not verified) commentedSame issue here also.
Comment #7
griz commentedI had a similar but different error referring to lines 334 and 335.
I then tried the patch in #3 - no beans.
Next I tried the dev, with and without the patch... Still no beans.
Then I downloaded a fresh copy of the dev and deleted my field and created another one with a different machine name.
Everything is green.
Moral of the story? Read the trouble-shooting guide.
Comment #8
mortona2k commentedWorks, thanks!
Comment #9
arlinsandbulte commentedSo... is a patch needed?
Or is this fixed in -dev? (#7 is not clear about that)
Thanks
Comment #10
clauded commentedI have a similar issue with the latest dev modules but on different lines :
Notice: Undefined index: timezone dans date_field_validate() (ligne 311 dans var/www/drupal/sites/all/modules/date/date.field.inc).
Notice: Undefined index: value2 dans date_field_validate() (ligne 312 dans /var/www/drupal/sites/all/modules/date/date.field.inc).
Recreating the date filed after the updates don't work for me.
Sorry for the noise : issue with line 334 is gone with latest dev but now I have this : http://drupal.org/node/1021512#comment-4066984
Comment #11
alpritt commentedConfirmed with Profile2. Also tested with the field attached to a node (which worked previously and continues to work with this patch).
Basically the same as #3 but using the helper function.
Comment #12
das-peter commentedThanks alpritt - didn't even know such a nice function exists :)
Comment #13
sw3b commented#11 work like a charm ! Thanks !
Comment #14
karens commentedAlready saw #1021512: Errors when using Profile 2 with Date module, didn't see this issue. Looks that is unrelated to this one, just linking them in case.
Comment #15
karens commentedI avoided that function because it wasn't working right in some cases. This needs to be tested when using a complex date that uses a repeating date with a RRULE and a date-specific timezone and empty values in the 'To' date that need to be populated with values from the 'From' date to be sure that still works right.
Comment #16
karens commentedThere was another similar issue with a similar patch that I committed this morning. This should no longer be an issue.