Rules is acting weird all of a sudden. (v. 1.28)

It seems to be reacting on an Event that has not happened.

Using Commerce. Debug log shows that Rules reacts on the "Calculating the sell price of a product" event six times when I add a product to the cart, then reacts on "After adding a product to the cart", then reacts again on "Calculating the price", then reacts on "Select available payment methods for an order."

This last one seems really weird. We haven't even entered checkout. Why react on an event that definitely has not happened?

To make matters worse the Rules under the different events are firing multiple times, so I have customers receiving multiple emails and so on.

I have rebuilt the Rules cache. I have disabled Rules Conditional. I cannot understand why this is happening. Help, please?

Rules log

closed as off-topic by Pierre.Vriens, mradcliffe, Shawn Conn, Neograph734, DRUPWAY Feb 15 '17 at 5:58

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question was caused by a problem that can no longer be reproduced, was solved by a cache clear, or was a simple typographical error. While similar questions may be on-topic here, this one was resolved in a manner unlikely to help future readers." – Pierre.Vriens, mradcliffe, Shawn Conn, Neograph734, DRUPWAY
If this question can be reworded to fit the rules in the help center, please edit the question.


Have a read of https://www.drupal.org/node/2403851 .

In short, Rules 2.8 is causing issues with Commerce. The module maintainers are aware and looking at the problem but until it is sorted they are suggesting rolling back to Rules 2.7.

  • Thanks. I read that thread yesterday but it was very specific to Pricing Rules (which I don't have) and didn't contain the link to the issue for the "mother" bug in Rules (now does). – Channel Islander Jan 20 '15 at 15:05

Rules 2.8 has a bug causing Reaction Rules to be run too early: https://www.drupal.org/node/2324587

This bug was marked fixed by the Rules people but it appears to be the cause of the problems with Rules in Commerce using Rules 2.8. One of the Commerce maintainers reopened the Rules issue on 1/16/15. It's not fixed yet.

Rules 2.8 should not be used with Commerce. It will trigger Rules before their time and break your site.

Users of Commerce with Rules 2.8 should downgrade to Rules 2.7 immediately.

  • However: Downgrading to Rules 1.27 has not fixed the problem apparently caused by having upgraded to 1.28.The event "Select available payment methods" is still getting reacted to when adding a product to the cart. I have cleared the Rules Cache, nothing seems to help , argh. – Channel Islander Jan 20 '15 at 16:40
  • Edit: I had a concurrent problem. The downgrade to Rules 2.7 did fix the problem. – Channel Islander Feb 6 '15 at 13:16

Not the answer you're looking for? Browse other questions tagged or ask your own question.