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

ptmkenny’s picture

Status: Active » Closed (won't fix)

This is a Commerce issue, not a Rules issue. The linked post says it is an issue with the UUID module.

ptmkenny’s picture

Issue summary: View changes

thanks