In Commerce Kickstart 2.6 :

If you want to see the Payment Order :

FacesExtendableException: There is no method getElementName for this instance of the class RulesConditional. in FacesExtendable->__call() (line 133 of profiles/commerce_kickstart/modules/contrib/rules/includes/faces.inc).

Comments

fox_01’s picture

Issue summary: View changes

Is there a solution for this problem?

fox_01’s picture

santhosh.34@gmail.com’s picture

I recently upgraded to Drupal 7.5 and during upgrade observed the same issue.
There is no method getElementName for this instance of the class RulesConditional.

Collins405’s picture

Running into the same problem when trying to add a conditional rule to the "Delete Expired Carts" rule from Commerce_cart_expiration

vensires’s picture

#1285856: FacesExtendableException : There is no method dependencies for this instance of the class RulesAction is under a "Cannot reproduce" state. This also happened to me with the Drupal Commerce and Conditional Rules modules (among others) in PHP 5.6. I don't believe the PHP version is the culprit here. I believe that the caller function is somehow related. This occured in Drupal Commerce a few versions back, and the following patch fixed it: https://www.drupal.org/files/issues/There-is-no-method-getElementName-fo....

rclemings’s picture

See: https://www.drupal.org/project/rules/issues/1285856#comment-9132929

Though old, this comment pointed me to what turned out to be the problem.

I have a fairly simple Commerce 7.x-1.15 payment rule (sanitized version below). It allows two forms of payment, credit card and purchase order.

For one specific product, I wanted to disallow purchase orders. So I decided to wrap the the PO payment method in a conditional. I clicked the "add conditional" link under the "actions" section, and boom, WSOD, entire site down. I had to disable that rule from the database to get the site back up, and delete it from the database altogether to get /admin/config/workflow/rules to load.

I'll try to reproduce on a clean install when I have time but meanwhile maybe this is a useful clue.

{ "rules_enable_payment_methods_for_product" : {
    "LABEL" : "Enable payment methods for product",
    "PLUGIN" : "reaction rule",
    "OWNER" : "rules",
    "TAGS" : [ "XXXX custom" ],
    "REQUIRES" : [ "commerce_order", "commerce_payment" ],
    "ON" : { "commerce_payment_methods" : [] },
    "IF" : [
      { "commerce_order_contains_product_type" : {
          "commerce_order" : [ "commerce_order" ],
          "product_type" : { "value" : { "product" : "product" } },
          "operator" : "\u003E=",
          "value" : "1"
        }
      },
      { "NOT commerce_order_contains_product_type" : {
          "commerce_order" : [ "commerce_order" ],
          "product_type" : { "value" : {
              "commerce_node_checkout" : "commerce_node_checkout",
              "membership" : "membership"
            }
          },
          "operator" : "\u003E=",
          "value" : "1"
        }
      }
    ],
    "DO" : [
      { "commerce_payment_enable_authnet_aim" : {
          "commerce_order" : [ "commerce_order" ],
          "payment_method" : { "value" : {
              "method_id" : "authnet_aim",
              "settings" : {
                "login" : "XXXXXXXXXX",
                "tran_key" : "XXXXXXXXXXXXXX",
                "txn_mode" : "developer",
                "txn_type" : "auth_capture",
                "card_types" : {
                  "visa" : "visa",
                  "mastercard" : "mastercard",
                  "amex" : "amex",
                  "discover" : "discover",
                  "maestro" : 0,
                  "dc" : 0,
                  "jcb" : 0,
                  "unionpay" : 0
                },
                "email_customer" : 1,
                "log" : { "request" : 0, "response" : 0 }
              }
            }
          }
        }
      },
      { "commerce_payment_enable_commerce_purchase_order" : {
          "commerce_order" : [ "commerce_order" ],
          "payment_method" : { "value" : {
              "method_id" : "commerce_purchase_order",
              "settings" : {
                "commerce_purchase_order_length" : "1",
                "commerce_purchase_order_instructions" : "Enter your purchase order number."
              }
            }
          }
        }
      }
    ]
  }
}