Hello,
after updating to the latest beta3, re-saving the calendar view, I'm getting the following warning/error:

Notice: Undefined index: field_event_date_1 in fullcalendar_plugin_style_fullcalendar->fullcalendar_parse_fields() (line 181 of /var/www/html/mysite/sites/all/modules/fullcalendar/includes/views/plugins/fullcalendar_plugin_style_fullcalendar.inc).

any idea what could be going wrong?
Thanks in advance

Comments

tim.plunkett’s picture

Status: Active » Postponed (maintainer needs more info)

Sorry you're having this trouble.

Can you export your view?
Paste it into http://paste.pocoo.org and post the link here.

kmare’s picture

yes of course. Here's the link to the view export:
http://paste.pocoo.org/show/550564/
The warning is not causing a real problem as it *looks* like everything works fine. Of course I tried to build a new view getting the very same result. I also tested the fullcalendar plugin 1.5.2 and 1.5.3.
If you need anything else, don't hasitate to ask.. and thank you for all your hard work, it's really appreciated!

tim.plunkett’s picture

And the error is on example.com/events_calendar? Meaning, the "Events Page" display?

tim.plunkett’s picture

Can you open includes/views/plugins/fullcalendar_plugin_style_fullcalendar.inc in fullcalendar, go to line 178, and after $this->display->handler->get_field_labels(); put debug($labels);? It should print out that value to the screen. The information from that would be helpful.

kmare’s picture

sure, here you are

Debug:

array (
  'title' => 'Title',
  'field_event_date_1' => 'Event Date',
)

in fullcalendar_plugin_style_fullcalendar->fullcalendar_parse_fields() (line 178 of /var/www/html/mysite/sites/all/modules/fullcalendar/includes/views/plugins/fullcalendar_plugin_style_fullcalendar.inc).
Debug:

array (
  'title' => 'Title',
  'field_service_e_date' => 'Service End Date',
  'field_service_s_date' => 'Service Start Date',
  'field_project_e_date' => 'Project End Date',
  'field_project_s_date' => 'Project Start Date',
  'field_trans_delivery_deadline' => 'Delivery Deadline',
  'field_trans_payment_deadline' => 'Payment Deadline',
  'field_trans_quote_deadline' => 'Quote Deadline',
  'field_contract_s_date' => 'Support Starts',
  'field_contract_e_date' => 'Support Ends',
)

in fullcalendar_plugin_style_fullcalendar->fullcalendar_parse_fields() (line 178 of /var/www/html/mysite/sites/all/modules/fullcalendar/includes/views/plugins/fullcalendar_plugin_style_fullcalendar.inc).
kmare’s picture

and yes it's on the "Events Page" display.. (sorry, I missed that comment before).
Thank you

tim.plunkett’s picture

Your debug statements indicate that the view is being run twice on one page?
Once for Events Page and once for Due Dates Page. And it looks like the Events page is fine, because field_event_date_1 is clearly there. But not in the Due Dates page.

I'm not sure I understand why it's running that function twice, or why the second display's fields are showing in the debug.

kmare’s picture

hello,
after rebuilding and testing again, I noticed that the error doesn't appear as long as there's only one display on the view I create. As soon as I create a new display, the error reappears for all the displays of the view. Deleting the second display of the view leaving only the first one, makes the notice/error go away again. It doesn't really bother the functionality, as everything looks like it's working fine beside the error/warning.

tim.plunkett’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
DeNelo’s picture

I get it too:

Debug:
array (
  'title' => 'Titel',
  'field_date' => 'Dato',
  'field_lejrdato' => 'Datoer',
)
i fullcalendar_plugin_style_fullcalendar->fullcalendar_parse_fields() (linje 178 af /home/kristentf/public_html/sites/all/modules/fullcalendar/includes/views/plugins/fullcalendar_plugin_style_fullcalendar.inc).
Debug:
array (
  'gcal' => 'FullCalendar: Google Calendar',
)
i fullcalendar_plugin_style_fullcalendar->fullcalendar_parse_fields() (linje 178 af /home/kristentf/public_html/sites/all/modules/fullcalendar/includes/views/plugins/fullcalendar_plugin_style_fullcalendar.inc).

And I, too, have two displays.

calefilm’s picture

I get this error when I add two date fields. I want two because I would like to use two different date formats on my view. But as was stated above it seems my pages run fine without incident (other than having to look at this after I save my view):

Notice: Undefined index: field_event_date_event_1 in fullcalendar_plugin_style_fullcalendar->fullcalendar_parse_fields() (line 181 of /Users/me/Sites/acquia-drupal/sites/all/modules/fullcalendar/includes/views/plugins/fullcalendar_plugin_style_fullcalendar.inc).
Notice: Undefined index: field_event_date_event_1 in fullcalendar_plugin_style_fullcalendar->fullcalendar_parse_fields() (line 181 of /Users/me/Sites/acquia-drupal/sites/all/modules/fullcalendar/includes/views/plugins/fullcalendar_plugin_style_fullcalendar.inc).
Notice: Undefined index: field_event_date_event_1 in fullcalendar_plugin_style_fullcalendar->fullcalendar_parse_fields() (line 181 of /Users/me/Sites/acquia-drupal/sites/all/modules/fullcalendar/includes/views/plugins/fullcalendar_plugin_style_fullcalendar.inc).
Notice: Undefined index: field_event_date_event_1 in fullcalendar_plugin_style_fullcalendar->fullcalendar_parse_fields() (line 181 of /Users/me/Sites/acquia-drupal/sites/all/modules/fullcalendar/includes/views/plugins/fullcalendar_plugin_style_fullcalendar.inc).
Bernsch’s picture

Status: Closed (cannot reproduce) » Active

I also become this warning after I save my view:

Notice: Undefined index: field_event_date in fullcalendar_plugin_style_fullcalendar->fullcalendar_parse_fields() (line 181 of /homepages/42/d198234527/htdocs/drupal/sites/all/modules/fullcalendar/includes/views/plugins/fullcalendar_plugin_style_fullcalendar.inc).

I use the FullCalendar Version 7.x-2.0-beta3 and Date Modul Version 7.x-2.5 and FullCalendar plugin 1.5.3

Bernsch’s picture

Version: 7.x-2.0-beta3 » 7.x-2.0
StatusFileSize
new114.54 KB
new119.99 KB
new15.39 KB

@tim.plunkett:
Her is my View-export with the error message. Then you can better understand...
Pleace check it.
I think it has something to do with the filter ContentType!

Bernsch’s picture

StatusFileSize
new144.59 KB

And here is the View Error Message:

itangalo’s picture

Status: Active » Needs review
StatusFileSize
new752 bytes

This error is caused by the view object having date fields that the FullCalendar display doesn't use.

The attached patch solves the problem.

Bernsch’s picture

Status: Reviewed & tested by the community » Fixed

Thank you Itangalo!
The error message is gone! :-) --> Patch works!

edit: ups, sorry, it's RTBC

aspilicious’s picture

Status: Needs review » Reviewed & tested by the community

Lets rtbc it than

Status: Fixed » Closed (fixed)

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