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.
I simply created a calendar views from a calendar template on date field from an article.
Visit to the page created by the template /calendar-field_date_evenement/month
Got the error :
Fatal error: Call to a member function getGranularity() on a non-object in /modules/calendar/src/CalendarHelper.php on line 850
After small debug, it turned out that the $argument on line 850 could be false and is not tested before getGranularity() is called.
So simple fix is testing for this $argument to be true.
Comment | File | Size | Author |
---|---|---|---|
#2 | getGranularity_non_object-2851396-0.patch | 579 bytes | sneo |
Comments
Comment #2
sneo CreditAttribution: sneo commentedComment #3
dpi#2785771: Fatal error using template Content Field Date on Calendar (Content) getGranularity() on a non-object
Comment #4
dpi