I'm using Drupal Commerce and whenever I reach the checkout review page, it gives me this error.

Notice: Undefined property: RulesAbstractPluginDefaults::$element in RulesAbstractPluginDefaults->execute() (line 1748 of /usr/htdocs/drupal7/sites/all/modules/rules/includes/rules.core.inc).

What could be wrong?

Comments

ktleow’s picture

Status: Active » Closed (fixed)

For anyone else having the same problem:

Its caused by the Payment Example module of Drupal Commerce not removing this rule after uninstall.

Solution: Manually delete Payment Example's rules.

patrickharris’s picture

Thanks ktleow!

ktleow’s picture

You're welcome Patrik =)

nagiek’s picture

Status: Closed (fixed) » Active

Hi,

I'm having the same problem (same version, error msg, line number), but I've never installed Drupal Commerce. Any other thoughts on what could be generating this?

I get the error after programatically creating a node that's an Organic Group. I'm sure that's where the problem lies.

nagiek’s picture

Status: Active » Fixed

Whoops, it's because I was executing a custom rule and I changed the name. Thanks!

svetlio’s picture

commerce_coupon module also Not removing its rule, solution like #1 - manually delete coupon rule after uninstal

1kenthomas’s picture

Component: Miscellaneous » Rules Engine
Status: Fixed » Active

I'm getting the same error after disabling / enabling cart. Krumo shows ... 15: commerce_product_pricing_commerce_price_field_formatter_prepare_view (Array, 4 elements) ... etc

Thanks.

fago’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

rickmanelius’s picture

Version: 7.x-2.0-rc1 » 7.x-2.0
Status: Closed (fixed) » Active

Same error in D7 + ubercart + rules2

Gemini Lights’s picture

Same problem as here? http://drupal.org/node/1308136

pkchoo’s picture

The problem is occurring for me as well and I'm using Ubercart for drupal 7. It appears whenever I flush the site cache or install modules. I am able to fix it by going into the rule and resaving the condition, but I'd hate to forget to do that and have site users see this error when they go to their cart.

Is there a fix for this scenario?

Thank you.

tr’s picture

Component: Rules Engine » Rules Core
Issue summary: View changes
Status: Active » Closed (cannot reproduce)

If you are still having this problem in a current version of Rules, please open a new issue and post details about how to reproduce the error.