with version dev dated april 28 I have the following messages when I want to add a field:
Notice : Undefined index: exception dans calendar_plugin_display_attachment->display_granularity() (ligne 70 dans /homepages/42/d141549472/htdocs/mbc/drupal/sites/all/modules/calendar/includes/calendar_plugin_display_attachment.inc).
Notice : Undefined index: exception dans calendar_plugin_display_attachment->display_granularity() (ligne 70 dans /homepages/42/d141549472/htdocs/mbc/drupal/sites/all/modules/calendar/includes/calendar_plugin_display_attachment.inc).
Notice : Undefined index: field_data_field_date.field_date_value_value dans calendar_build_nodes() (ligne 598 dans /homepages/42/d141549472/htdocs/mbc/drupal/sites/all/modules/calendar/calendar.module).
Notice : Undefined index: exception dans calendar_plugin_display_attachment->display_granularity() (ligne 70 dans /homepages/42/d141549472/htdocs/mbc/drupal/sites/all/modules/calendar/includes/calendar_plugin_display_attachment.inc).
Notice : Undefined index: exception dans calendar_plugin_display_attachment->display_granularity() (ligne 70 dans /homepages/42/d141549472/htdocs/mbc/drupal/sites/all/modules/calendar/includes/calendar_plugin_display_attachment.inc).
Notice : Undefined index: exception dans calendar_plugin_display_attachment->display_granularity() (ligne 70 dans /homepages/42/d141549472/htdocs/mbc/drupal/sites/all/modules/calendar/includes/calendar_plugin_display_attachment.inc).

Comments

aqua_linksunten’s picture

Title: undefined » Notice: Undefined index: exception in calendar_plugin_display_attachment->display_granularity site:drupal.org

I get the same error with (as of today) latest dev-versions of ctools, views, date, calendar, when importing a view. A blank page is presented when I try to edit an existing calendar-view.

pbuyle’s picture

I had the same issue and fixed it by editing my views' contextual date filters (ie. date arguments).

My views are provided by code and I needed to add $handler->display->display_options['arguments']['date_argument']['exception'] = 'all'; for all my contextual date filters. When the views are exported (through the UI), the code does not contain these lines.

@pdeclarens are you working on this? Otherwise, I don't think the issue should be assigned to you?

Anonymous’s picture

Got this error too with views from code, re-setting up the contextual date filter as described in #2 did indeed work

karens’s picture

Status: Active » Fixed

Views re-named a value. You need to be using the latest version of Views or this won't work at all because their API changed. There is no apparent way for me to automatically fix it. Once you are using the right version of Views you need to edit your view and re-save the date argument (you don't need to change anything, just save it).

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

fathershawn’s picture

Status: Closed (fixed) » Active

I have the same error displaying the Upcoming block. I'm using the latest dev versions of all four components - Views dev as of 15 June.

Particularities:
Default Calendar view cloned, exported to code with the Features module. Attempting to edit the view results in:

Fatal error: Maximum execution time of 30 seconds exceeded in /Users/shawn/Sites/stgeorge/sites/all/modules/date/date_api/date_api.module on line 1574

The source of the error is related somehow to Views export/import. I was only getting this error on staging server. I was able to reproduce the error on dev by uninstalling the feature, deleting the view from the database and reenabling the feature module.

fathershawn’s picture

Status: Active » Fixed

The common characteristic in this issue was exported cloned Calendar views. The code based view was from an earlier dev version and did not update with newer dev versions. Deleting all trace of the view, cloning the updated Calendar view and rebuilding the view in the clone eliminated the error even when imported into another install.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.