Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.1
Component:
Views integration
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
30 Nov 2011 at 11:29 UTC
Updated:
14 Nov 2012 at 06:42 UTC
I have been encountering this error for quite sometime now whenever I edit / add a view. Is anyone seeing the same error?
Notice: Undefined index: label in commerce_entity_access_permissions() (line 812 of /Applications/MAMP/htdocs/diamondking/drupal/profiles/commerce_kickstart/modules/commerce/commerce.module). Backtrace:
commerce_entity_access_permissions('commerce_product') commerce_product.module:256
commerce_product_permission()
call_user_func_array('commerce_product_permission', Array) module.inc:818
module_invoke_all('permission') views_plugin_access_perm.inc:16
views_plugin_access_perm->summary_title() views_plugin_display.inc:1096
views_plugin_display->options_summary(Array, Array) views_plugin_display_page.inc:229
views_plugin_display_page->options_summary(Array, Array) admin.inc:1645
views_ui_get_display_tab_details(Object, Object) admin.inc:1476
views_ui_get_display_tab(Object, 'page') admin.inc:1093
views_ui_edit_form(Array, Array, Object, 'page')
call_user_func_array('views_ui_edit_form', Array) form.inc:785
drupal_retrieve_form('views_ui_edit_form', Array) form.inc:329
drupal_build_form('views_ui_edit_form', Array) form.inc:123
drupal_get_form('views_ui_edit_form', Object, 'page') admin.inc:889
views_ui_edit_page(Object)
call_user_func_array('views_ui_edit_page', Array) menu.inc:503
menu_execute_active_handler() index.php:21
Comments
Comment #1
rszrama commentedI'm pretty sure this was fixed a while ago, but you're not running Commerce 7.x-1.1. I don't know what version you're on, but it's older. The function in question doesn't currently even begin until line 933. You'll need to update to the latest version, but be sure to read the release notes of each new release you update to to be aware of any feature / API changes.
Here's a similar older report: #1235002: Undefined index: permission labels
Comment #2
kelvinleehk commentedThanks Ryan for looking into the matter.
You were right, the error message I previously posted was before I updated Commerce module to 7.x-1.1. I just thought the error message I saw after the update was the same ones before the update. Below is the error that I see after running a
drush pm-updateComment #3
netsensei commentedHi!
I'm seeing the same issue. I upgraded from commerce-1.0 to commerce-1.1.
Notice: Undefined index: label in commerce_entity_access_permissions() (line 973 of /Users/matthias/krimson/krimson_chickenrhythm/www/sites/all/modules/contrib/commerce/commerce.module).In our project, we have three product types: "Rucksack", "Iron on" and "T-shirt". These show up in the interfaces, but the $entity_info array contains a fourth bundle type: "product" which doesn't show up under admin/commerce/products/types.
Clearing the cache doesn't work. I've tracked it down to hook_entity_info_alter. In my case: Display Suite implements this hook and adds a faulty extra 'product' bundle.
So, this is not really a Commerce problem but a conflict with another module which poorly alters the Entity Info.
Comment #4
rszrama commentedAnything we should do to fix it here or should this be bumped to Display Suite?
Comment #5
netsensei commentedWell, this should be bumped to DS, I just notified Swentel of this issue. This is most likely triggered when you upgrade an old DS installation. Later versions shouldn't be affected.
Commerce itself should probably do a check if the value in the entity info array exists. If not, best way out would be to fail silently and produce an error in the watchdog. Other modules implementing entity_info_alter might also introduce errors.
Comment #6
kelvinleehk commentedThanks all!
@Netsensei Did you create an issue in DS module? Mind posting the link here?
Comment #7
netsensei commented@sourcesqr: I added a patch here: #1359106: DS alters entity info without checking if bundles exists
Comment #8
rszrama commentedw00t, you da man. Thanks. ; )
Leaving this open to consider your recommendation for Commerce.
Comment #9
rszrama commented