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.

CommentFileSizeAuthor
#2 getGranularity_non_object-2851396-0.patch579 bytessneo
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

spiderneo created an issue. See original summary.

sneo’s picture

dpi’s picture