Closed (duplicate)
Project:
Date
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
17 Feb 2011 at 01:52 UTC
Updated:
21 Apr 2011 at 10:25 UTC
Jump to comment: Most recent file
Comments
Comment #1
akoepke commentedI am having this same issue and just upgraded to the dev version of Date with no change.
Comment #2
akoepke commentedComment #3
jennypanighetti commentedI am amused by the comment directly above the offending line:
Yeahhh.. that didn't work...
The offending line, for anyone's reference:
$result[$table][$key]['field']['additional fields'] = array_merge($result[$table][$key]['field']['additional fields'], $additional);It seems to me that any key of 'additional fields' is buried pretty far in the $result table. It seems to be in an array under 'field_postedon_value' for [argument], [filter], and [sort]. Interestingly, 'field_postedon_value' is a date field in the content type of this view, but I never actually use it in the view. It's just in the list.
Comment #4
jennypanighetti commentedA little more of my own investigation without actually knowing what I'm investigating...
When I print out $result[$table][$key]['field'], I get the following array:
It's complaining because there's nothing IN $result[$table][$key]['field']['additional fields'], and thus cannot merge it. Would it help to just ASSIGN the $additional array to the ['additional fields'] key? Or, check for if_array_key_exists first and then merge, else, assign? I can patch it to do that, I just don't know what the purpose of this line is and if that code would indeed get that done...
Comment #5
jennypanighetti commentedSuggested patch of the code I just mentioned.
Comment #6
aanjaneyam commentedWell it also makes calender entries (dated events) disappear from calendar view and calendar blocks. I reverted the views update of 17-Feb-2011 and the errors disappeared.
Comment #7
akoepke commentedI installed the patch on my dev site and it does get rid of the errors at least.
Comment #8
jennypanighetti commented#6 amsri - What makes the calendar entries disappear, the bug or my patch?
#7 akoepke - Good to know. That's what it does for me too. Since I don't use a date anywhere yet, I don't know if it actually keeps the expected behavior...
Comment #9
akoepke commentedI am filtering on date fields in my views and have just had a look at the SQL.
The date views is not working at all, broken.
I have date fields in my Filters list, along with a taxonomy and article type filter. I can see the taxonomy and article type filter in the WHERE clause of the SQL query but there is no trace of the date fields in there. It does do joins on the date fields, but no filtering.
Your patch makes the errors go away but there is some other bug that is stopping it from working.
Comment #10
jennypanighetti commentedakoepke - sounds like a new bug report perhaps?
Comment #11
FrequenceBanane commentedCould it be a problem with the latest dev version of Views3 (which is more recent than the latest dev version of Date) ?
Comment #12
aanjaneyam commentedWell it is the bug which stops calendar view from working. I did not apply the patch.
Comment #13
aanjaneyam commentedMarking it critical as it renders the site to an unusable state. There is no calendar view calendar block. I also think that this is a views bug.
Comment #14
karens commentedSee #1031184: Error after updating Views and Date modules, I made some work-around commits, but Views has changed enough that everything is broken now.
Comment #15
karens commentedWrong link, should be #1066690: Many D7 views are broken
Comment #16
karens commentedAs to the comment in #3, Views changed and broke things, I made a fix that got it working again, then Views changed again.
I have been chasing Views all through the D7 cycle, trying to keep up as best I can.
Comment #17
FrequenceBanane commentedUpdating to latest dev version of Views3 and applying patch given in #1062506: Misnamed parameter for creation of broken handlers. solved this issue for me
Comment #18
eugen80 commentedsubscribing
Comment #19
kehan commentedsubscribing
Comment #20
joostvdl commentedsubscribe
Comment #21
blup commentedsubscribe
Comment #22
teh_catt commentedsubscribe
Comment #23
tinefin commentedsubscribe
Comment #24
arlinsandbulte commented???? why is everyone subscribing to this issue?
This issue has been marked as closed(duplicate) of #1066690: Many D7 views are broken.
That is what you should be watching, not here.
Nothing is going happen here.
Comment #25
bryancasler commentedI upgraded to the latest views and date modules today, still getting a slew of line 252 errors.
Comment #26
goldlilys commentedI keep getting these errors too with updated views and date. Yes, both modules need to keep track of each other.
Subscribing.
Notice: Undefined index: additional fields in date_field_views_data_alter() (line 252 of ... \date\date_views\date_views.module).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in date_field_views_data_alter() (line 252 of ... \date\date_views\date_views.module).
Comment #27
skilip commentedPatch posted @#5 fixes the error.