Error: Civirules could not find ruleCondition "User is logged in"
I got a critical error after adding the condition "User is logged in".
Use case: Adding actions for specific logged in users when they add contacts of any type.
Steps to reproduce:
- Add new CiviRule
- Choose "contact of any type is added" as trigger
- Add condition "User is logged in"
- Critical error
Log:
[error]
$Fatal Error Details = array:3 [
"message" => "Civirules could not find ruleCondition"
"code" => null
"exception" => Exception {#15614
#message: "Civirules could not find ruleCondition"
#code: 0
#file: "/html/wordpress/wp-content/uploads/civicrm/ext/org.civicoop.civirules/CRM/CivirulesConditions/Form/Form.php"
#line: 46
trace: {
/html/wordpress/wp-content/uploads/civicrm/ext/org.civicoop.civirules/CRM/CivirulesConditions/Form/Form.php:46 {
CRM_CivirulesConditions_Form_Form->preProcess()
› if (!$this->ruleCondition->find(true)) {
› throw new Exception('Civirules could not find ruleCondition');
› }
}
/html/wordpress/wp-content/uploads/civicrm/ext/org.civicoop.civirules/CRM/CivirulesConditions/Form/ValueComparison.php:17 { …}
/html/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Core/Form.php:712 { …}
/html/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Core/QuickForm/Action/Display.php:76 { …}
/html/wordpress/wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Controller.php:203 { …}
/html/wordpress/wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Page.php:103 { …}
/html/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Core/Controller.php:355 { …}
/html/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Utils/Wrapper.php:98 { …}
/html/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:292 { …}
/html/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:69 { …}
/html/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:36 { …}
/html/wordpress/wp-content/plugins/civicrm/civicrm.php:1199 { …}
/html/wordpress/wp-includes/class-wp-hook.php:310 { …}
/html/wordpress/wp-includes/class-wp-hook.php:334 { …}
/html/wordpress/wp-includes/plugin.php:517 { …}
/html/wordpress/wp-admin/admin.php:259 { …}
}
}
]