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.
Using current dev of calendar I saw this notice:
Notice: Undefined variable: node in calendar_plugin_row->explode_values() (line 558 of /opt/www/test7h.whs/modules/calendar/includes/calendar_plugin_row.inc).
Notice: Trying to get property of non-object in calendar_plugin_row->explode_values() (line 558 of /opt/www/test7h.whs/modules/calendar/includes/calendar_plugin_row.inc).
I had a look and indeed $node is there but it is not defined anywhere in the function, looking at the code I decided that it should be changed to $entity, did that and the error went away.
Patch attached.
Comment | File | Size | Author |
---|---|---|---|
calendar-calendar_plugin_row-node-bug.patch | 817 bytes | hutch | |
Comments
Comment #1
Gribnif CreditAttribution: Gribnif commentedThis one is a no-brainer. RTBC.
Comment #2
joelpittetRTBC++
Comment #3
joelpittetbump
Comment #4
geru CreditAttribution: geru as a volunteer commentedThis was found, fixed 5.5 years ago by @hutch. It has been reviewed and tested by @Gribniff and @joelpittet and the community for years now, and yet it still has not been committed. I'm trying to understand what the correct Drupal process is to get this committed so more people don't have the same problem.
If it is any help, I can confirm that this patch fixes an obvious and simple error. How can this patch get committed?
Comment #5
joelpittet@geru maybe you can offer to co-maintain this project?
Documentation on how to do that:
https://www.drupal.org/node/251466
https://www.drupal.org/node/363367
Comment #6
darby3 CreditAttribution: darby3 commentedThanks from 2018, patch works for me.
Comment #7
solideogloria CreditAttribution: solideogloria commentedComment #8
wylbur CreditAttribution: wylbur commentedComment #10
Neslee Canil PintoThanks, Committed.