I am using D7+views+date+calendar modules (all latest 7.x-2.x-dev versions as of March 24).
I am getting the following error messages when enabling the upcoming block or calendar.
Notice: Undefined index: group in _date_views_fields() (line 61 of /opt/lampp/htdocs/d7/modules/date/date_views/includes/date_views_fields.inc).
Strict warning: Declaration of views_handler_filter_user_name::value_submit() should be compatible with that of views_handler_filter_in_operator::value_submit() in _registry_check_code() (line 2789 of /opt/lampp/htdocs/d7/includes/bootstrap.inc).
Strict warning: Declaration of views_handler_filter_term_node_tid_depth::operator_options() should be compatible with that of views_handler_filter_in_operator::operator_options() in _registry_check_code() (line 2789 of /opt/lampp/htdocs/d7/includes/bootstrap.inc).
| Comment | File | Size | Author |
|---|---|---|---|
| #49 | date-7.x-2.x-1103790-2.patch | 700 bytes | thekevinday |
| #15 | date-7.x-2.x-1103790-1.patch | 743 bytes | thekevinday |
Comments
Comment #1
geevee commentedForgot to mention: I added a content type with a Datetime fields. Added this field to the calendar , upcoming block, and also set the argument to it.
Comment #2
bjlewis2 commentedI am also getting this error. I just did a fresh install this morning with:
Views 7.x-3.x-dev
CTools 7.x-1.x-dev
Date 7.x-2.x-dev
Calendar 7.x-2.x-dev
Enabled these modules:
Chaos tools
Calendar
Date
Date API
Date Popup
Date Views
Views
Views UI
Created a content type and changed the following settings:
Event
Add Field: Date/date/Datetime/Popup
(Save)
To Date: Optional
(Save field settings)
Event Settings: Required/Help Text: Enter the date and time of your event./Default: blank/Input format
(Save settings)
Created an event:
Title: My birthday party!
Body: Come eat cake, sing, dance and do other crazy stuff!
Date: 07/11/2011 5:00PM-11:00PM
(Save)
Went to the calendar view, and got this message:
Any ideas as to what is causing this?
Comment #3
Anonymous (not verified) commentedI am also getting this error with this combination:
Views 7.x-3.x-dev
CTools 7.x-1.x-dev
Date 7.x-2.x-dev
Calendar 7.x-2.x-dev
Looking forward to a solution. Thanks, Charles
Comment #4
bjlewis2 commentedAlso, when I go to a month view that has events on it, I get this:
It looks like I get the "line 424" error once for each event (there are two events.)
I decided to look at the other views.
(Day and year views both give the same error as month.)
This is what I got in the week view, whether or not there were events showing.
Comment #5
carsonwI'm getting the same error message. It has to do with this block of code in date_views_fields.inc :
Comment #6
stoltoguzzi commentedsame error here
Comment #7
agill commentedsame here, using datetime fields too.
Comment #8
GrahamB commented+1
tearing my hair out!
Comment #9
GrahamB commentedNot present on my system for
calendar-7.x-1.0-alpha3
date-7.x-1.x-dev
ctools-7.x-1.0-alpha4
views-7.x-3.0-beta2
Comment #10
admuzic commentedsame problem.
Comment #11
pedrowabam commentedsame issue
Notice: Undefined index: group in _date_views_fields() (line 61of /home/../public_html/../sites/all/modules/date/date_views/includes/date_views_fields.inc).
Comment #12
dibya commentedI m also facing the same problem viz.
Notice: Undefined index: group in _date_views_fields() (line 61 of C:\wamp\www\iaylocal\sites\all\modules\date\date_views\includes\date_views_fields.inc).
Initially there was no error code after installing date, calender, view, ctools etc, but it came after enabling a few other modules.
Comment #13
syntax-2 commentedFor:
"handler" => "views_handler_filter_broken"
"table" => "node"
"field" => "uid_revision"
"title" => "Nieprawidłowa procedura node.uid_revision"
there is no "group". Try:
before:
if ($handler->definition['group'] == 'Fields') {
after:
if (isset($handler->definition['group']) && ($handler->definition['group'] == t('Fields'))) {
Notice that there are TWO changes:
- isset($handler->definition['group']) and
- t('Fields') - t('Fields') solves another problem: #1094408: Date field not showing up in views arguments in localized site
Comment #14
arlinsandbulte commentedIs the
isset($handler->definition['group'])check needed?This appears redundant to me as if it is not set, the second condition will fail anyway.
Comment #15
thekevinday commentedI put #13 in patch form.
It seems to solve the problem for me.
Comment #16
zabelc commentedThe patch in #16 worked for me...at least for the line 61 error
Comment #17
kneep commentedThe patch in #15 worked for me too, for the line 61 error. So only the line 110 error is still there:
Notice: Undefined index: field_data_field_date.field_date_value in date_views_argument_handler->admin_summary() (regel 110 van /var/www/vhosts/gav.nl/httpdocs/modules/date/date_views/includes/date_views_argument_handler.inc).
(Views 7.x-3.x-dev, CTools 7.x-1.x-dev, Date 7.x-2.x-dev, Calendar 7.x-2.x-dev)
Comment #18
Elegar commentedsubscribe
Comment #19
hplunkett commentedI am also receiving this error after a fresh installation.
Running Drupal 7 and these module versions:
Calendar 7.x-2.x-dev
Date 7.x-2.0-alpha1
CTools 7.x-1.0-alpha4
Views 7.x-3.0-beta3
Comment #20
Elegar commentedDoes anybody knows stable combination of Calendar + Date + CTools + Views ?
Comment #21
Ole Martin commentedWhat file to patch?
Comment #22
mattbk commentedElegar:
I wish I did.
Comment #23
cwyant commentedI upgraded Views and Ctools and experienced major errors. I went back to my previous stable installation:
CTools 7.x-1.0-alpha3
Calendar 7.x-1.0-alpha3
Date 7.x-1.0-alpha2
Views 7.x-3.0-alpha1
Comment #24
paranormals commentedSubscribe.
Comment #25
shinz83 commentedsubscribe
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in date_field_views_data_alter() (line 252 of /sites/all/modules/date/date_views/date_views.module).Comment #26
bensnyder commentedDate 7.x-2.0-alpha1
Views 7.x-3.0-beta3
Ctools 7.x-1.0-alpha4
NOTE that I am not using the Calendar module.
Comment #27
karilu_ec commented#13 fixed my problem with the notice error showing up in all my calendar displays
Date 7.x-2.x-dev
Calendar 7.x-2.x-dev
Views 7.x-3.0-beta3
Chaos tools 7.x-1.0-alpha4
Comment #28
thekevinday commentedA number of the other bugs are separate calendar issues already addressed here:
- http://drupal.org/node/1090718
- http://drupal.org/node/1108542
- http://drupal.org/node/1087528
Comment #29
Steven.Pescador commentedSubscribing
Comment #30
marcusx commentedsubscribing
Comment #31
cezaryrk commentedAfter checking the group in date_views_fields.inc line 61, the field info is retrieved, but in my instance (7.x-dev) the $handler->definition['group'] value for date fields is "Content" and some of the as "Content" marked elements, doesn't have a field_name, so i changed line 61 to
Comment #32
shinz83 commentedThe first coding portion of #31 worked for me. However, I don't fully understand what the second part is for or where it would go.
Comment #33
cezaryrk commentedThe second is only an output example of $handler->definition, it describes a date field, but the $handler->definition['group'] is "Content" and not "Fields", like in if($handler->definition['group'] == t("Fields")).
Comment #34
ytsurk#15 helps, probably #31 too
Comment #35
g089h515r806 commentedSubscribing
Comment #36
cezaryrk commentedsome problem, my workaround for #26 is
http://drupal.org/node/1112206#comment-4312004
Comment #37
zabelc commented#31 successfully removed the error: "Undefined index: group in _date_views_fields() line 61"
Comment #38
oregonwebsiteservices commentedSame error:
Notice: Undefined index: group in _date_views_fields() (line 61 of /var/www/vhosts/mysacrifice.org/httpdocs/sites/all/modules/date/date_views/includes/date_views_fields.inc)..
#31 worked for me many thanks!!
Comment #39
bjlewis2 commented#31 still works!
Comment #40
wcarpent commentedHow does one implement the fix from #31? I've never used a patch before.
~Many Thanks!
Comment #41
thekevinday commentedThe problem with week view is the following:
date_views/includes/date_views_argument_handler_simple.inc:210
The variable $field is called, but it is not defined anywhere.
We need to get $field from somewhere.
I found a way to get the $field, example:
When I do this, however, there seems to be a new problem of:
# Notice: Undefined variable: format in date_views_argument_handler_simple->query() (line 219 of date/date_views/includes/date_views_argument_handler_simple.inc).
# Notice: Undefined variable: format in date_views_argument_handler_simple->query() (line 220 of date/date_views/includes/date_views_argument_handler_simple.inc).
Comment #42
danielphenry commentedsubscribing
Comment #43
druper commentedsubscribing
Comment #44
spovlot commentedsubscribing
Comment #45
TimelessDomain commented#31 solved #1115442: Views Contextual Filter Relationship not showing all fields - thanks
Comment #46
brightboldSubscribing. Fix in #15 worked for me, but undoubtedly I'll upgrade Date and overwrite all my patches, so now I can find this thread again.
Comment #47
enxox commented#13 works fine for me, but #31 solves also this issue
http://drupal.org/node/1115442
Comment #48
kreynen commented#31 isn't necessary with a recent dev release of Date when using Views-7.x-3.0-beta3. In every version of Views, #31 causes problems with Calendar. Started an issue in that queue.
#1126650: Date fix for #1115442 causes problems with Calendar.
Comment #49
thekevinday commentedI did not see the problem that #31 fixes until I switched from views-7.x-3.x-beta3 to views-7.x-3.x-dev.
Once that happens, I was able to confirm that specific bug as well as confirm that specific solution.
For convenience purposes, I put cezaryrk's fix from #31 in patch form.
Reviewing both cases I am starting to believe the fix from #31 may be more correct than the fix from #13 (whose patch is in #15). However, it could be that #13 fixes the problem when using views-7.x-3.x-beta3 and #31 fixes the problem when using views-7.x-3.x-dev.
Please keep in mind that there seem to be multiple similar bugs in this thread which may require separate solutions. (I may have to open up a separate issue for #41)
Comment #50
scthomps312 commentedSubscribing
Comment #51
asyn commentedPatch from #49 fixes this issue for me. Please add this to the repo.
Comment #52
Wappie08 commentedI applied the patch from #49 by hand to date-7.x-1.0-alpha2 and the errors where gone, thanks guys for the work!
(btw I'm using views-7.x-3.0-beta3)
EDIT: Actually the errors appear again, sometimes, I think due to problems with cache..
* Notice: Undefined index: additional fields in date_field_views_data_alter() (line 252 of /sites/all/modules/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 /sites/all/modules/date/date_views/date_views.module).
* Notice: Undefined index: additional fields in date_field_views_data_alter() (line 252 of /sites/all/modules/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 /sites/all/modules/date/date_views/date_views.module).
Greets
Comment #53
karens commentedThe latest version of Views changed the grouping of fields from 'Fields' to 'Content'. Date and Calendar were using that group to identify the fields that were eligible for use in date filters and arguments, so everything broke. I have been committing fixes that should correct this.
Comment #54
bryancasler commented#49 works for me
Comment #55
bibble_235 commentedMany thanks to karilu_ec for providing which packages will make this work.