Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
On enabling Calendar module, getting this error:
Notice: Undefined index: id in calendar_views_data_alter() (line 16 of modules/calendar/calendar.views.inc).
Later on creating Calendar View from template, getting this error:
Notice: Undefined index: id in Drupal\views\Plugin\ViewsHandlerManager->getHandler() (line 104 of core/modules/views/src/Plugin/ViewsHandlerManager.php).
Edit: This issue is now closed as duplicate of the newer issue #2969675: Notice: Undefined index: id in calendar/calendar.views.inc on line 16
Comment | File | Size | Author |
---|---|---|---|
#21 | 2764741-21.diff | 643 bytes | TommyChris |
calendar-error2.JPG | 128.2 KB | andyasas | |
calendar-error1.JPG | 131.76 KB | andyasas |
Comments
Comment #2
andyasas CreditAttribution: andyasas commentedComment #3
andyasas CreditAttribution: andyasas commentedComment #4
meramo CreditAttribution: meramo at Bright Solutions GmbH commentedSame here. Drupal 8.2.1 and the latest dev.
After creating a calendar from template (using the "Content authored on" template getting lots of errors, like
Comment #5
meramo CreditAttribution: meramo at Bright Solutions GmbH commentedComment #6
nasinandes CreditAttribution: nasinandes commentedHello,
I have the same problem. After enabling Calendar module I'm getting a lots of errors, like:
Notice: Undefined index: id in calendar_views_data_alter() (line 16 of modules/calendar/calendar.views.inc).
And Not yet created any calendar view.
Thanks!
Comment #7
georgedamonkey CreditAttribution: georgedamonkey commentedSame problem here. The calendar itself seems to work and display ok, just has those errors above it.
Comment #8
kittysunshineFor what it's worth, we had a similar problem with our Calendar and it ended up being a conflict with the Scheduler module. This Scheduler patch resolved our problem: https://www.drupal.org/node/2849490
Comment #9
RaSpirit CreditAttribution: RaSpirit commentedProposed patch
Comment #10
Isaw CreditAttribution: Isaw commentedWe had the same error and we were apply the patch.
The error has been solved.
Thanks!
Comment #11
Isaw CreditAttribution: Isaw commentedComment #12
georgedamonkey CreditAttribution: georgedamonkey commentedI applied the patch, as well as updated scheduler and the errors persist.
Comment #13
benelori CreditAttribution: benelori commentedI can't reproduce the issue with the latest dev and Drupal 8.3.0.
Comment #14
othermachines CreditAttribution: othermachines commentedUnable to reproduce this issue with fresh 8.3.2 installation and calendar 8.x-1.x-dev (downloaded today).
Not surprising since this seems to arise when other modules neglect to set 'id'. I don't see the harm in applying this patch but maybe better to first explore whether there might be a better way to flag that the property is missing.
Comment #15
Isaw CreditAttribution: Isaw commentedI get this error again in Drupal core 8.3.4
Comment #16
oriol_e9gComment #17
snlnz CreditAttribution: snlnz commentedError is present with Drupal core 8.3.5 and calendar 8.x-1.x-dev
Update:
The suggested patch does not resolve the issue and log events occur randomly.
Comment #18
jonathan1055 CreditAttribution: jonathan1055 as a volunteer commentedJust for info, the Scheduler issue #2849490: Scheduler + Calendar module throws notice for "Undefined index: id" is now fixed.
Comment #19
oriol_e9gSame issue and fix related here: #2845257: Undefined index: id in calendar_views_data_alter() I'm still having the same error.
Comment #20
Christopher Riley CreditAttribution: Christopher Riley commentedPatch does not apply via composer nor does it patch with patch -p1 < calendar-2764741-9-properties-check-fix.patch however if you do a patch < calendar-2764741-9-properties-check-fix.patch it will patch. Would be nice to get this resolved and committed.
Comment #21
TommyChrisAttached a re-rolled patch.
Comment #22
stefan.kornI think this has been fixed with: https://www.drupal.org/project/calendar/issues/2969675
Comment #23
jonathan1055 CreditAttribution: jonathan1055 as a volunteer commentedYes the fix in #9 and #21 above is identical to #2969675-4: Notice: Undefined index: id in calendar/calendar.views.inc on line 16 commit on 3rd July
Not sure why this original issue (from July 2016) went so long without any commit, but then the new one created in May 2018 gets fixed within 2 monrhs with identical patch. But good that is it done.