Hi,

I have a number of rules that were exported as features while we were using Rules 2.0 RC2. I recently needed to upgrade to the final release of Rules 2.0, and noticed that during a drush site install I get a number of "WD rules" errors.

WD rules: The reaction rule Send SCF Store Closed Email (rules_send_scf_store_closed_email) fails the integrity check and cannot [error]
be executed. Error: Data selector node:field-sc-store for parameter entity is invalid. [66.95 sec, 73.61 MB]
WD rules: The reaction rule Send SCF Store Closed Email (After Hours) (rules_send_scf_store_closed_email_after_hours_) fails the [error]
integrity check and cannot be executed. Error: Data selector node:field-sc-store for parameter entity is invalid. [67.01 sec,
73.63 MB]
WD rules: The reaction rule Send SCF Store Opened Future Email (rules_send_scf_store_opened_future_email) fails the integrity    [error]
check and cannot be executed. Error: Data selector node:field-sc-opened-email-sent for parameter data is invalid. [67.27 sec,
73.85 MB]
WD rules: The reaction rule Send SCF Store Opened Future Email (After Hours)                                                     [error]
(rules_send_scf_store_opened_future_email_after_hours_) fails the integrity check and cannot be executed. Error: Data selector
node:field-sc-opened-email-sent for parameter data is invalid. [67.54 sec, 73.89 MB]
WD rules: The reaction rule Send SCF Store Opened Past Email (rules_send_scf_store_opened_past_email) fails the integrity check  [error]
and cannot be executed. Error: Data selector node:field-sc-opened-email-sent for parameter data is invalid. [67.8 sec, 73.94 MB]
WD rules: The reaction rule Send SCF Store Opened Past Email (After Hours) (rules_send_scf_store_opened_past_email_after_hours_) [error]
fails the integrity check and cannot be executed. Error: Data selector node:field-sc-opened-email-sent for parameter data is
invalid. [68.06 sec, 73.98 MB]

I have tried recreating these features with Rules 2.0 in place, but there are not differences between the exports. I have tried updating to the dev releases of Entity and Rules, but I still get these errors.

It is important to note that all of these rules still work after the site install finishes. In fact, the following output comes at the end of the site install:

WD rules: The reaction rule Send SCF Store Closed Email (rules_send_scf_store_closed_email) was marked dirty, but passes the          [info]
integrity check now and is active again. [158.33 sec, 82.66 MB]
WD rules: The reaction rule Send SCF Store Closed Email (After Hours) (rules_send_scf_store_closed_email_after_hours_) was marked     [info]
dirty, but passes the integrity check now and is active again. [158.4 sec, 83.66 MB]
WD rules: The reaction rule Send SCF Store Opened Future Email (rules_send_scf_store_opened_future_email) was marked dirty, but       [info]
passes the integrity check now and is active again. [158.69 sec, 87.51 MB]
WD rules: The reaction rule Send SCF Store Opened Future Email (After Hours)                                                          [info]
(rules_send_scf_store_opened_future_email_after_hours_) was marked dirty, but passes the integrity check now and is active again.
[159.02 sec, 85.16 MB]
WD rules: The reaction rule Send SCF Store Opened Past Email (rules_send_scf_store_opened_past_email) was marked dirty, but           [info]
passes the integrity check now and is active again. [159.29 sec, 88.83 MB]
WD rules: The reaction rule Send SCF Store Opened Past Email (After Hours) (rules_send_scf_store_opened_past_email_after_hours_)      [info]
was marked dirty, but passes the integrity check now and is active again. [159.66 sec, 86.36 MB]

I am not sure how I can fix this issues, rolling back to Rules 2.0 RC2 does fix the problem, but RC2 has a bug with sending emails that is fixed in 2.0 so I need to stay at 2.0.

Thanks,

Brandon Hauff

Comments

bhauff’s picture

Ok, I did some git bisect testing this morning and discovered some good and bad information about this problem.

Commit: 0e082cad1d9aac3bc299c84e0af533ba140868a3 "fixed rules_get_cache() randomly being not able to get rules components from cache by removing the unnecessary option of rules_clear_cache()."

is the commit that fixes my problem with scheduled emails from Rules 2.0 RC2, but also is the same commit that introduces the Integrity check errors during a site install. Does anyone have any ideas on a way to proceed?

lapith’s picture

EDIT: Sorry about the comment below. I misunderstood what was going on. I thought that the drush update fixed the problem, but a coworker had also downgraded rules back again.

We were getting a very similar error with our drush features updates and realized that we were running an older version of drush. If you check out the features page: http://drupal.org/project/features you will see a notice about drush 4.4 and lower. We spent some time debugging through rules and then realized that the newer version of drush actually worked for us.

Hope this helps.

bhauff’s picture

I am running Drush version 4.5 right now, and still seeing the errors.

phoenix’s picture

Seeing the same integrity check errors here on a site when building it with drush site-install. Started looking around and found this issue. Has anyone an idea why this is happening?
As I get this error after all the rules errors:

Fatal error: Maximum function nesting level of '100' reached, aborting!

So my install completely fails...

lapith’s picture

We are trying to push the 2.0 update again and have found that we are still having this issue. We are specifically getting the error that integrity checks are failing because of unknown action components. Essentially any rule that uses a component fails. I have been looking around the rules issue queue and found some people having similar issues and fixed them with the latest release of EntityApi, though we are on the current version of EntityApi.

Is anyone else still having this issue?

StoraH’s picture

I also have this problems when using components in rules. I get WD rules: errors for all rules that uses components when doing site install with drush.

mitchell’s picture

Component: Miscellaneous » Rules Core

Updated component.

mitchell’s picture

Version: 7.x-2.0 » 7.x-2.x-dev
Status: Active » Postponed (maintainer needs more info)

Please clarify what needs to be done and update the issue title.

TR’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)
Issue tags: -

A bug affecting upgrades from Rules 7.x-2.0-rc1 to Rules 7.x-2.0 is not really relevant anymore - no-one is going to be performing that upgrade any more.