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

e0ipso’s picture

I was getting the same error, I made a patch for this.

e0ipso’s picture

The actual patch. :-P

thepanz’s picture

A 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

tr’s picture

Status: Active » Needs review

'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.