hI

soooo close
i am trying to get variations and attributes to work with tangible sub products but...
i create a few variations in categories under EC Live Subproducts: Product Variation and then create a few variations in Subproduct Attributes , but when i create a product and select the subprodcuts from the list and submit, i get the folooowing error ...

* warning: array_filter() [function.array-filter]: The first argument should be an array in D:\Program Files\xampp\htdocs\5store\sites\all\modules\ecommerce\contrib\ec_roles\ec_roles.module on line 126.
* warning: array_filter() [function.array-filter]: The first argument should be an array in D:\Program Files\xampp\htdocs\5store\sites\all\modules\ecommerce\contrib\ec_roles\ec_roles.module on line 130.
* warning: array_intersect_assoc() [function.array-intersect-assoc]: Argument #2 is not an array in D:\Program Files\xampp\htdocs\5store\sites\all\modules\ecommerce\contrib\ec_roles\ec_roles.module on line 137.
* warning: array_intersect_assoc() [function.array-intersect-assoc]: Argument #2 is not an array in D:\Program Files\xampp\htdocs\5store\sites\all\modules\ecommerce\contrib\ec_roles\ec_roles.module on line 138.
* warning: array_intersect_assoc() [function.array-intersect-assoc]: Argument #2 is not an array in D:\Program Files\xampp\htdocs\5store\sites\all\modules\ecommerce\contrib\ec_roles\ec_roles.module on line 139.
* warning: array_intersect_assoc() [function.array-intersect-assoc]: Argument #2 is not an array in D:\Program Files\xampp\htdocs\5store\sites\all\modules\ecommerce\contrib\ec_roles\ec_roles.module on line 140.

i tried unistallign adnreiinstalled ec_roles and tried the dev version as well but same error.
please advise, screen grab attached

CommentFileSizeAuthor
ERRROR.JPG104.81 KB.-_-.

Comments

brmassa’s picture

Status: Active » Fixed

anon,

the error is on ec_role. its a known bug. you cant use it with ec live subproducts. i will try to convince ecommerce dev team to fix it.

regards,

massa

.-_-.’s picture

thanks for the info
will have to wait for v4 spose
have disbaled roles as i dont need it
cheers

brmassa’s picture

Status: Fixed » Closed (fixed)
reg’s picture

As a quick fix I just put this in ec_roles.module:

function ec_roles_save(&$node) {
  $roles = drupal_map_assoc(array_keys(user_roles(1)));

	if (!$node->buy_add) $node->buy_add = array();
	if (!$node->buy_del) $node->buy_del = array();
	if (!$node->exp_add) $node->exp_add = array();
	if (!$node->exp_del) $node->exp_del = array();