1

Civicrm version: 5.45.1 Drupal 9.3.3

Adding (or editing an existing) civirule where the selected trigger is "webform is submitted" generates the fatal error:

CiviRule trigger class "CRM_WebformCivirules_Trigger" does not exist

excerpt from the Drupal log:

$Fatal Error Details = array:3 [ "message" => "CiviRule trigger class "CRM_WebformCivirules_Trigger" does not exist" "code" => null "exception" => Exception {#3523 #message: "CiviRule trigger class "CRM_WebformCivirules_Trigger" does not exist" #code: 0 #file: "///public_html/sites/default/files/civicrm/ext/org.civicoop.civirules/CRM/Civirules/BAO/Trigger.php" #line: 166 trace: { ///public_html/sites/default/files/civicrm/ext/org.civicoop.civirules/CRM/Civirules/BAO/Trigger.php:166 { CRM_Civirules_BAO_Trigger::getTriggerObjectByClassName($className, $abort = true) › › throw new Exception('CiviRule trigger class "' . $className . '" does not exist'); › } }

Other rules are working fine, only the 'webform is submitted' trigger fails. I've not been able to find any information on this error.

Can anyone help?

12
  • is it possible the 'webform submitted' trigger was built for d7 webforms and you are trying it with d9?
    – petednz - fuzion
    Feb 3, 2022 at 5:57
  • I've thought this might be the issue, but I don't know how to test or work out if it is.
    – 6jam
    Feb 3, 2022 at 6:32
  • create the simplest possible webform in both D7 and D9 and compare outcomes?
    – petednz - fuzion
    Feb 3, 2022 at 18:12
  • then open an Issue via lab.civicrm.org/extensions/civirules/-/issues and at least have helped by reporting the error even if you can't fix it
    – petednz - fuzion
    Feb 3, 2022 at 18:13
  • 1
    Yep, this is what I did. Thanks.
    – 6jam
    Mar 9, 2023 at 10:03

1 Answer 1

0

Perhaps work around by using another type of trigger, eg if the webform adds a tag, or adds them to a group

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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