Closed (won't fix)
Project:
Rules
Version:
7.x-2.2
Component:
User Interface
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Feb 2013 at 11:34 UTC
Updated:
25 May 2013 at 03:48 UTC
Hi I have this error when editing rule for commerce line item quantity condition data compare using operator is one of
Warning: call_user_func() expects parameter 1 to be a valid callback, class 'RulesDataUI' does not have a method 'render' in RulesPluginUI->buildContent() (line 716 of C:\mynginx\mysite\profiles\commerce_kickstart\modules\contrib\rules\ui\ui.core.inc).
I'm successfully creating rules via copy paste rule configuration (Rules Import) but when editing the rule always show up that error. The rule is working fine but cannot edit via Rules UI or Product Pricing Rules
Im using Commerce Kickstart 2.0
Maybe similiar case with this link
http://www.drupalcommerce.org/discussions/3907/error-predefined-pricing-...
My Rule configuration:
{ "rules_con_postal_2960_3670_qty_even" : {
"LABEL" : "Container Postal Code 2960-3670 Qty Even",
"PLUGIN" : "reaction rule",
"REQUIRES" : [ "rules", "commerce_line_item", "commerce_product_reference" ],
"ON" : [ "commerce_product_calculate_sell_price" ],
"IF" : [
{ "entity_has_field" : { "entity" : [ "commerce-line-item" ], "field" : "field_post_code" } },
{ "data_is" : {
"data" : [ "commerce-line-item:field-post-code" ],
"op" : "IN",
"value" : { "value" : [ "2960", "2961", "3670" ] }
}
},
{ "data_is" : {
"data" : [ "commerce-line-item:quantity" ],
"op" : "IN",
"value" : { "value" : [ 2, 4, 6, 8, 10, 12, 14, 16, 18, 20 ] }
}
}
],
"DO" : [
{ "commerce_line_item_unit_price_amount" : {
"commerce_line_item" : [ "commerce_line_item" ],
"amount" : "70000",
"component_name" : "base_price",
"round_mode" : "1"
}
}
]
}
}
Thanks
Comments
Comment #1
ptmkenny commentedThis is a Commerce issue, not a Rules issue. The linked post says it is an issue with the UUID module.
Comment #1.0
ptmkenny commentedthanks