Hi,

calendar-7.x-3.x-dev
views-7.x-3.x-dev
commerce-7.x-1.x-dev

I have a calendar view which is populated with a number of products(appointments). The products display the date field, product title and an "Add To Cart button". They are filtered by their type a relative date(+7 days) & sorted by ascending date:time. I have disabled SQL rewriting to allow anomymous users access as described in the express checkout tutorial

When anomymous users click on a link encompassing a path variable for a calendar view I receive the following notice warning, all products are displayed correctly on the calendar and functionality seems to be working correctly.

Notice: Undefined index: path in calendar_plugin_row->render() (line 352 of /public_html/sites/all/modules/calendar/includes/calendar_plugin_row.inc).
Notice: Undefined index: path in calendar_plugin_row->render() (line 352 of public_html/sites/all/modules/calendar/includes/calendar_plugin_row.inc).
Notice: Undefined index: path in calendar_plugin_row->render() (line 352 of /public_html/sites/all/modules/calendar/includes/calendar_plugin_row.inc).
Notice: Undefined index: path in calendar_plugin_row->render() (line 352 of /public_html/sites/all/modules/calendar/includes/calendar_plugin_row.inc).
Notice: Undefined index: path in calendar_plugin_row->render() (line 352 of /public_html/sites/all/modules/calendar/includes/calendar_plugin_row.inc).
Notice: Undefined index: path in calendar_plugin_row->render() (line 352 of /public_html/sites/all/modules/calendar/includes/calendar_plugin_row.inc).

I commented out line 352 from calendar_plugin_row.inc
"$this->url = url($uri['path'], $uri['options']);"

which resulted in the error:

Notice: Undefined property: calendar_plugin_row::$url in calendar_plugin_row->render() (line 414 of /public_html/sites/all/modules/calendar/includes/calendar_plugin_row.inc).
Notice: Undefined property: calendar_plugin_row::$url in calendar_plugin_row->render() (line 414 of /public_html/sites/all/modules/calendar/includes/calendar_plugin_row.inc).
Notice: Undefined property: calendar_plugin_row::$url in calendar_plugin_row->render() (line 414 of /public_html/sites/all/modules/calendar/includes/calendar_plugin_row.inc).
Notice: Undefined property: calendar_plugin_row::$url in calendar_plugin_row->render() (line 414 of /public_html/sites/all/modules/calendar/includes/calendar_plugin_row.inc).
Notice: Undefined property: calendar_plugin_row::$url in calendar_plugin_row->render() (line 414 of /public_html/sites/all/modules/calendar/includes/calendar_plugin_row.inc).
Notice: Undefined property: calendar_plugin_row::$url in calendar_plugin_row->render() (line 414 of /public_html/sites/all/modules/calendar/includes/calendar_plugin_row.inc).

and subsequently commented out line 414 from calendar_plugin_row.inc
" $event->url = $this->url;"

The notices no longer appear and I have not seen any adverse affects as of yet.

Comments

KarenS’s picture

Title: Calendar displaying "Notice" » Ubercart: Undefined index 'path'

This is an Ubercart issue. I don't have time to set up an Ubercart site to see what might be going on. There is another Ubercart issue at #1434618: AJAX HTTP error when using Calendar Entities on Ubercart orders. In that one it looks like Ubercart isn't defining some entity information that we expect to find. That looks like what is going on here too.

This probably won't get fixed unless someone using Ubercart can figure out what needs to be done.

Lendude’s picture

Not sure if this is what caused the problem with Commerce, but I ran into the same problem with a calendar displaying a self-made custom entity with a Date Field (using Calendar 3.4)
If the entity doesn't declare a 'uri callback' (or that callback returns a wrongly keyed array), Calendar will show this notice. Calendar doesn't validate the return value of the call to entity_uri().
As it turns out 'uri callback' is a non-optional setting in your entity declaration. So it would indeed seem that the problem lies in the module declaring the entity, not Calendar.
Since the original post used 3 dev versions of modules, there seems little chance of ever reproducing the original problem a year and a half later, but it would seem Commerce entities might have been missing a 'uri callback'

Neslee Canil Pinto’s picture

Status: Active » Closed (outdated)