Hi,
I'm getting the following error when I try to configure the 'Product features' section of the 'Product settings' for ubercart when the 'userpoints product' module is enabled:
warning: function_exists() expects parameter 1 to be string, array given in
/sites/all/modules/ubercart/uc_product/uc_product.admin.inc on line 350.
Disabling the 'userpoints product' module removes the error.
This occurs on the following pages:
Home › Administer › Store administration › Configuration › Product settings
Home › Administer › Store administration › Configuration › Product settings › Product features
Comments
Comment #1
e0ipsoI was getting the same error, I made a patch for this.
Comment #2
e0ipsoThe actual patch. :-P
Comment #3
thepanz commentedA cleaner solution, since no feature-setting is provided, is to comment out the line
'settings' => array('uc_userpoints_product_feature_settings'),from "uc_userpoints_product_product_feature()" module function
Comment #4
tr commented'settings' => array('uc_userpoints_product_feature_settings'),is definitely wrong - Ubercart is expecting the 'settings' element to hold a string function name, not an array. This should instead be'settings' => 'uc_userpoints_product_feature_settings',, or the line should be eliminated entirely as suggested in #3.