0

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?

9
  • is it possible the 'webform submitted' trigger was built for d7 webforms and you are trying it with d9?
    – petednz - fuzion
    Feb 3 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 at 6:32
  • create the simplest possible webform in both D7 and D9 and compare outcomes?
    – petednz - fuzion
    Feb 3 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 at 18:13
  • Thanks. I upgraded my D7 site to D9 (and don't have any other D7 sites), but had been using Civirules with the 'webform submitted' trigger without error for a few years. (However, I only switch on the rules for Feb-Mar). I don't think a simpler webform will help with testing as the error occurs in the civirules UI when moving to the next screen or when saving the rule. I guess setting up a separate D9 site could provide a test
    – 6jam
    Feb 3 at 23:34

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.