Hi,
today I upgraded all the modules and drupal core on my site. Everything looked OK except when I viewed a couple of pages as an anonymous user. In this case I got the following messages on the calendar pages and also a page using drupal commerce:
Calendar:
Notice: Undefined index: path in calendar_plugin_row->render() (line 401 of /sites/all/modules/calendar/includes/calendar_plugin_row.inc).
Commerce
Notice: Undefined index: path in commerce_cart_field_attach_view_alter() (line 2401 of /sites/all/modules/commerce/modules/cart/commerce_cart.module)
At first when I saw the Commerce error I thought it was a problem with this module and posted an report there, but upon seeing the calendar error which is essentially the same, I'm thinking that this is a more central problem.
Interestingly, the error doesn't appear when I'm logged in as admin, but when I visit the site as an anonymous user (it unfortunately gets plastered all over the page - whoops).
So... I'm using (here goes....)
OS: some unixy thing
PHP 5.3.17
Mysql 5.5.27
Drupal 7.22
Calendar 7.x-3.4
Commerce 7.x-1.6+1-dev
Thanks a lot for your support - and of course drupal
Rich
Comments
Comment #1
neRok CreditAttribution: neRok commentedSomething has changed in core that is effecting these modules.
I found the issue you posted to the Commerce module #1968718: Notice: Undefined index: path in commerce_cart_field_attach_view_alter() (line 2401 of /home/..../www/www/sites/all/modules/
It appears they have fixed the offending code, so I will move this issue to Calendar issue queue to be fixed also.
Comment #2
bohemier CreditAttribution: bohemier commentedAny followup on this? I'm getting the same error with calendar...
Thanks!
Comment #3
richH CreditAttribution: richH commentedHi,
I'm afraid I haven't heard anything. I patched both the modules (the suggestion came from the commerce module) and that has kept everything quiet since then. Glad(!) to hear that you also have the same problem - thought I was going crazy.....
the patch I used is described in #1968718: Notice: Undefined index: path in commerce_cart_field_attach_view_alter() (line 2401 of /home/..../www/www/sites/all/modules/
cheers
Rich
Comment #4
bohemier CreditAttribution: bohemier commentedThanks, I also applied the same kind of patch to calendar...
Cheers!
Comment #5
justinen CreditAttribution: justinen commentedI'm also having this same issue.
I'm using:
Drupal 7.22
Calendar 7.x-3.4
Commerce 7.x-1.7
The calendar was not throwing this error before I upgraded Drupal and modules. I can confirm that this only happens for anonymous users and for admin users it is fine. I get multiple instances of the same error that appear on the top of the screen in red. There are about 16 of them. Exact error is below.
Notice: Undefined index: path in calendar_plugin_row->render() (line 401 of \sites\all\modules\contrib\calendar\includes\calendar_plugin_row.inc).
Comment #6
Sammii CreditAttribution: Sammii commentedI am getting this error as well. I am using a Calendar block with the Commerce module. Everything appears to be functioning correctly except for the display of the error. The error is appearing on a View page I created that lists Product Display nodes, with the Calendar block in the sidebar filtering the Product date fields. The error only appears for anonymous users:
Drupal 7.22
Calendar 7.x-3.4
Commerce 7.x-1.8
Doing some research into this error, I tried patching several modules to no effect... I used the patch for Commerce Cart described at https://drupal.org/comment/7291916#comment-7291916 as well as the patch for Entity described at https://drupal.org/comment/7799749#comment-7799749 but neither worked for this issue. Is there an additional patch needed for Calendar?
Comment #7
ledbelly2142 CreditAttribution: ledbelly2142 commentedI am having the same issue...
Comment #8
ledbelly2142 CreditAttribution: ledbelly2142 commentedOk, I tracked down the same issue in this post https://drupal.org/comment/7292950#comment-7292950
richH describes: To get rid of the above error I added the following code before line 401.
The file modified: www/sites/all/modules/calendar/includes/calendar_plugin_row.inc
While I agree with richH, this may not be the best way to fix this calendar issue, it at least got rid of the error messages for anon users.
Comment #9
apadernoComment #10
Neslee Canil PintoHi, there will be no more future development for 7.x branch. If you see this issue in 8.x, feel free to file an issue. Close this as Outdated.