After Upgrade to 2.24 or later: Call to undefined method CRM_Civirules_Utils::getObjectNameFromObject()
I'm currently unable to update CiviRules to 2.24 or later (even 2.40). After updating the code tasks like clearing cache or updating database are not working anymore ("Drush command terminated abnormally due to an unrecoverable error."). Accessing various CiviCRM pages like /civicrm/admin/extensions/upgrade?reset=1 outputs
Error: Call to undefined method CRM_Civirules_Utils::getObjectNameFromObject() in civirules_trigger_preupdate() (Zeile 388 von /path/to/web/sites/default/ext/org.civicoop.civirules/civirules.php).
Enviornment:
- PHP 7.3.31-2+0
20211022.89+debian111.gbp745ac7 - Drupal 7.83
- CiviCRM 5.44.0
- CiviRules 2.23
Since I couldn't find a ticket for this problem, even though the version was released a few months ago, I assume I'm doing something wrong. Any help is appreciated.