The following error has begun appearing in the site in the following locations below.
When accessing Rules administration and on and off across the administration:
Notice: Undefined index: referenceable_types in _commerce_customer_match_customer_profiles_standard() (line 1126 of /var/www/drupal/profiles/commerce_kickstart/modules/commerce/modules/customer/commerce_customer.module). Backtrace:
_commerce_customer_match_customer_profiles_standard(Array, Array, NULL) commerce_customer.module:1104
commerce_customer_match_customer_profiles(Array) commerce_customer.module:873
commerce_customer_options_list(Array)
call_user_func_array('commerce_customer_options_list', Array) module.inc:794
module_invoke('commerce_customer', 'options_list', Array) callbacks.inc:434
entity_metadata_field_options_list('field_user_profile', Array, 'edit')
call_user_func('entity_metadata_field_options_list', 'field_user_profile', Array, 'edit') entity.wrapper.inc:192
EntityMetadataWrapper->optionsList() entity.eval.inc:111
rules_action_entity_create_info_alter(Array, Object, 'info_alter')
call_user_func_array('rules_action_entity_create_info_alter', Array) faces.inc:123
FacesExtendable->__call('info_alter', Array) rules.core.inc:293
RulesExtendable->__call('info_alter', Array) rules.core.inc:1324
RulesAbstractPlugin->setUp() rules.core.inc:1336
RulesAbstractPlugin->forceSetUp() rules.core.inc:1394
RulesAbstractPlugin->pluginParameterInfo() rules.core.inc:674
RulesPlugin->dependencies() rules.core.inc:1447
RulesAbstractPlugin->dependencies() rules.core.inc:758
RulesPlugin->integrityCheck() rules.core.inc:1366
RulesAbstractPlugin->integrityCheck() rules.core.inc:1847
RulesContainerPlugin->integrityCheck() rules.plugins.inc:232
Rule->integrityCheck() ui.core.inc:652
RulesPluginUI->buildContent() ui.core.inc:977
RulesContainerPluginUI->buildContent()
call_user_func_array(Array, Array) faces.inc:130
FacesExtendable->__call('buildContent', Array) rules.core.inc:293
RulesExtendable->__call('buildContent', Array)
RulesReactionRule->buildContent() ui.controller.inc:251
RulesUIController->overviewTableRow(Array, 40, Object, Array) ui.controller.inc:211
RulesUIController->overviewTable(Array, Array) rules_admin.inc:65
rules_admin_reaction_overview(Array, Array, 'admin/config/workflow/rules/reaction')
call_user_func_array('rules_admin_reaction_overview', Array) form.inc:785
drupal_retrieve_form('rules_admin_reaction_overview', Array) form.inc:329
drupal_build_form('rules_admin_reaction_overview', Array) form.inc:123
drupal_get_form('rules_admin_reaction_overview', 'admin/config/workflow/rules/reaction')
call_user_func_array('drupal_get_form', Array) menu.inc:503
menu_execute_active_handler() index.php:21When clearing cache:
Notice: Undefined index: referenceable_types in _commerce_customer_match_customer_profiles_standard() (line 1126 of /var/www/drupal/profiles/commerce_kickstart/modules/commerce/modules/customer/commerce_customer.module). Backtrace:
_commerce_customer_match_customer_profiles_standard(Array, Array, NULL) commerce_customer.module:1104
commerce_customer_match_customer_profiles(Array) commerce_customer.module:873
commerce_customer_options_list(Array)
call_user_func_array('commerce_customer_options_list', Array) module.inc:794
module_invoke('commerce_customer', 'options_list', Array) callbacks.inc:434
entity_metadata_field_options_list('field_user_profile', Array, 'edit')
call_user_func('entity_metadata_field_options_list', 'field_user_profile', Array, 'edit') entity.wrapper.inc:192
EntityMetadataWrapper->optionsList() entity.eval.inc:111
rules_action_entity_create_info_alter(Array, Object, 'info_alter')
call_user_func_array('rules_action_entity_create_info_alter', Array) faces.inc:123
FacesExtendable->__call('info_alter', Array) rules.core.inc:293
RulesExtendable->__call('info_alter', Array) rules.core.inc:1324
RulesAbstractPlugin->setUp() rules.core.inc:1300
RulesAbstractPlugin->__construct('entity_create', Array) rules.module:429
rules_plugin_factory('action', 'entity_create', Array) rules.module:38
rules_action('entity_create', Array) rules.core.inc:2103
RulesActionContainer->action('entity_create', Array) commerce_checkout.rules_defaults.inc:134
commerce_checkout_default_rules_configuration()
call_user_func_array('commerce_checkout_default_rules_configuration', Array) module.inc:794
module_invoke('commerce_checkout', 'default_rules_configuration') entity.module:645
_entity_defaults_rebuild('rules_config') entity.module:623
entity_defaults_rebuild() entity.module:794
entity_flush_caches()
call_user_func_array('entity_flush_caches', Array) module.inc:818
module_invoke_all('flush_caches') common.inc:7169
drupal_flush_all_caches() system.admin.inc:1735
system_clear_cache_submit(Array, Array) form.inc:1430
form_execute_handlers('submit', Array, Array) form.inc:844
drupal_process_form('system_performance_settings', Array, Array) form.inc:364
drupal_build_form('system_performance_settings', Array) form.inc:123
drupal_get_form('system_performance_settings')
call_user_func_array('drupal_get_form', Array) menu.inc:503
menu_execute_active_handler() index.php:21
Notice: Undefined index: referenceable_types in _commerce_customer_match_customer_profiles_standard() (line 1126 of /var/www/drupal/profiles/commerce_kickstart/modules/commerce/modules/customer/commerce_customer.module). Backtrace:
_commerce_customer_match_customer_profiles_standard(Array, Array, NULL) commerce_customer.module:1104
commerce_customer_match_customer_profiles(Array) commerce_customer.module:873
commerce_customer_options_list(Array)
call_user_func_array('commerce_customer_options_list', Array) module.inc:794
module_invoke('commerce_customer', 'options_list', Array) callbacks.inc:434
entity_metadata_field_options_list('field_user_profile', Array, 'edit')
call_user_func('entity_metadata_field_options_list', 'field_user_profile', Array, 'edit') entity.wrapper.inc:192
EntityMetadataWrapper->optionsList() entity.eval.inc:111
rules_action_entity_create_info_alter(Array, Object, 'info_alter')
call_user_func_array('rules_action_entity_create_info_alter', Array) faces.inc:123
FacesExtendable->__call('info_alter', Array) rules.core.inc:293
RulesExtendable->__call('info_alter', Array) rules.core.inc:1324
RulesAbstractPlugin->setUp() rules.core.inc:1336
RulesAbstractPlugin->forceSetUp() rules.core.inc:1394
RulesAbstractPlugin->pluginParameterInfo() rules.core.inc:674
RulesPlugin->dependencies() rules.core.inc:1447
RulesAbstractPlugin->dependencies() rules.core.inc:758
RulesPlugin->integrityCheck() rules.core.inc:1366
RulesAbstractPlugin->integrityCheck() rules.core.inc:1847
RulesContainerPlugin->integrityCheck() rules.plugins.inc:232
Rule->integrityCheck() rules.module:691
rules_config_update_dirty_flag(Object) rules.plugins.inc:704
RulesEventSet->rebuildCache(Array, Array) rules.module:273
_rules_rebuild_cache(Array) rules.module:243
rules_get_cache('data') rules.module:236
rules_get_cache('event_init') rules.module:776
rules_invoke_event('init') rules.module:12
rules_init()
call_user_func_array('rules_init', Array) module.inc:818
module_invoke_all('init') common.inc:4954
_drupal_bootstrap_full() bootstrap.inc:2133
drupal_bootstrap(7) index.php:20When updating modules via update.php (though not there when using Drush):
Notice: Undefined index: referenceable_types in _commerce_customer_match_customer_profiles_standard() (line 1126 of /var/www/drupal/profiles/commerce_kickstart/modules/commerce/modules/customer/commerce_customer.module). Backtrace:
_commerce_customer_match_customer_profiles_standard(Array, Array, NULL) commerce_customer.module:1104
commerce_customer_match_customer_profiles(Array) commerce_customer.module:873
commerce_customer_options_list(Array)
call_user_func_array('commerce_customer_options_list', Array) module.inc:794
module_invoke('commerce_customer', 'options_list', Array) callbacks.inc:434
entity_metadata_field_options_list('field_user_profile', Array, 'edit')
call_user_func('entity_metadata_field_options_list', 'field_user_profile', Array, 'edit') entity.wrapper.inc:192
EntityMetadataWrapper->optionsList() entity.eval.inc:111
rules_action_entity_create_info_alter(Array, Object, 'info_alter')
call_user_func_array('rules_action_entity_create_info_alter', Array) faces.inc:123
FacesExtendable->__call('info_alter', Array) rules.core.inc:293
RulesExtendable->__call('info_alter', Array) rules.core.inc:1324
RulesAbstractPlugin->setUp() rules.core.inc:1300
RulesAbstractPlugin->__construct('entity_create', Array) rules.module:429
rules_plugin_factory('action', 'entity_create', Array) rules.module:38
rules_action('entity_create', Array) rules.core.inc:2103
RulesActionContainer->action('entity_create', Array) commerce_checkout.rules_defaults.inc:134
commerce_checkout_default_rules_configuration()
call_user_func_array('commerce_checkout_default_rules_configuration', Array) module.inc:794
module_invoke('commerce_checkout', 'default_rules_configuration') entity.module:645
_entity_defaults_rebuild('rules_config') entity.module:623
entity_defaults_rebuild() entity.module:794
entity_flush_caches()
call_user_func_array('entity_flush_caches', Array) module.inc:818
module_invoke_all('flush_caches') common.inc:7169
drupal_flush_all_caches() update.php:113
update_script_selection_form(Array, Array)
call_user_func_array('update_script_selection_form', Array) form.inc:785
drupal_retrieve_form('update_script_selection_form', Array) form.inc:329
drupal_build_form('update_script_selection_form', Array) form.inc:123
drupal_get_form('update_script_selection_form') update.php:32
update_selection_page() update.php:445After removing the Commerce Devel modules, the error is basically show as:
Notice: Undefined index: referenceable_types in _commerce_customer_match_customer_profiles_standard() (line 1126 of /var/www/drupal/profiles/commerce_kickstart/modules/commerce/modules/customer/commerce_customer.module).
--------
Drupal version: 7.10 using the Kickstar Installation as base profile.
Some items I checked and tested:
Uninstalled field_permissions module, which was triggering unrelated problems.
Uninstalled Shipping and Flat rate example modules.
Some configuration info that could be important:
- I have an "Address" filed in User signup/creation fields:
Field is: Address* Machine Name: field_user_profile Field: Customer profile reference Widget: Customer profile manager
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 1376282.patch | 1.19 KB | amateescu |
Comments
Comment #1
3rdLOF commentedAfter moving the modules from profile in Kickstart to the standard location sites/all/modules/contrib the error has change slightly, though remains the same:
Notice: Undefined index: referenceable_types in _commerce_customer_match_customer_profiles_standard() (line 1135 of /var/www/drupal/sites/all/modules/contrib/commerce/modules/customer/commerce_customer.module).Comment #2
3rdLOF commentedAfter moving the modules from profile in Kickstart to the standard location sites/all/modules/contrib the error has change slightly, though remains the same:
Notice: Undefined index: referenceable_types in _commerce_customer_match_customer_profiles_standard() (line 1135 of /var/www/drupal/sites/all/modules/contrib/commerce/modules/customer/commerce_customer.module).Comment #3
3rdLOF commentedSorry for the double post before.
Well, this error eventually led me down the rabbit hole into a whole day of POD exceptions and phpMyAdmin fixes.
I suspect that this had to do with a disparity between the Commerce Shipping module versions 1 and 2, which it was hinted to by boss rfay at the projects site and that it was later hinted at by a similar post, but that basically relates to switching between Commerce Shipping 1 to 2 leaves a customer profile reference field defintion from Commerce Shipping 1 in the db for orders and/or profiles already created. I "think" this happens when the field itself is in the user sign up form like I had it. Scott at Drupal Commerce hinted at this as being crossed linked with Customer module here:
http://www.drupalcommerce.org/node/995
In case anyone runs into this, here are some possible hints for you:
My Kickstart profile was old, and while I presume updating via Drush should also update the modules in it, for some reason in my case it was not.
Even after proper drush updating, this nasty little field declaration was in there and I could not get rid of it no matter what I did. In my case the problem was compounded even further by a bug in Drush 4.5 whereby updates suddenly were not getting applied at all (unrelated to this issue).
At one point I decided to move the modules from the /profiles folder to the all/modules/contrib folder to get around this drush issue..and all hell broke loose. This should have only required a simple Drush commands to reassign the proper module paths, but in my case it became one gigantic mess of EntityMalformedException which also hinted at Commerce Shipping as the problem ( http://drupal.org/node/1330882 ) and forced me to disable and uninstall all the modules down to the Customer module in order to uninstall it and thus remove the declaration.
My suggestions:
A) New install with Kickstart and advanced user? Move the modules from profile to all/modules right away after install and before you go into developing. That said, the implications of doing this are considerable and be prepared for a mess. FOLLOW THE INSTALL ORDER, something I failed to notice and made the mess even bigger.
B) Self-update Drush to 4.6 --dev to avoid secondary problems. (Assuming you have to use 4.x because of Aegir or Pantheon) Go for 5.x if not.
C) Schema's SQL tool saved my life. Literary.
D) I would probably have saved myself a lot of headaches by simply deleting the customer profile fields first. Or not. I would try it first. I didn't because I had a bunch of Rules I had written that I wanted to save....but at the end this process killed them all, so may as well do it first.
Setting to fixed, but maybe the DC bosses want to review it in case I just typed a bunch of non-sense.
In any event, the issue "appears to be solved". Cross fingers.
Peace.
Comment #4
3rdLOF commentedStill getting this error, albeit a lot less often than before.
Comment #5
amateescu commentedCan you try this patch?
The query condition change is unrelated to your error, but I've included it here because the
$product_id_aliasvariable doesn't belong here and is probably a leftover from a sloppy copy-paste :)Comment #6
mxa055 commentedI confirm the patch working for me version 7.x-1.2
Will this be committed?
Comment #7
drewish commentedFixed it for me too.
Comment #8
rszrama commentedCommitted. Sorry for the lag... obviously a no-brainer.