Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have only the Watchdog Rules submodule enabled and created a very simple rule:
{ "rules_server_general_failure" : {
"LABEL" : "Server-General Failure",
"PLUGIN" : "reaction rule",
"TAGS" : [ "error", "sg" ],
"REQUIRES" : [ "rules", "watchdog_rules" ],
"ON" : [ "watchdog_rules" ],
"IF" : [
{ "data_is" : { "data" : [ "watchdog-type" ], "value" : "server_general" } }
],
"DO" : [
{ "mail" : {
"to" : "[site:mail]",
"subject" : "Server-GENERAL User Registration Failed.",
"message" : "Please check the Drupal reports for details."
}
}
]
}
}
I get this message almost everywhere except for the admin pages. drush cc all
also produces it.
When I disable the rule above, the error disappears. Upgrading Rules from rules-7.x-2.0 to rules-7.x-2.1 did not make a difference.
Comments
Comment #1
maciej.zgadzaj CreditAttribution: maciej.zgadzaj commentedTo tell the truth for me it looks more like issue with Rules module, which does not accept NULL values rather than with Watchdog Rules. Anyway I have added a fix for this, available in the most recent 7.x-2.x-dev version, just pushed.