toValue() called with wrong number of arguments during upgrade from CiviRules 3.4 to 3.6
CiviCRM 5.72.2, WordPress 6.4.4, PHP 8.1.27
During upgrade of CiviRules 3.4 to 3.6, saw the following error dump:
Fatal error: Uncaught Error: Too few arguments to function DB_DataObject::toValue(), 0 passed in /…/wp-content/uploads/civicrm/ext/org.civicoop.civirules/api/v3/CiviRulesTrigger.php on line 43 and at least 1 expected
in /…/wp-content/plugins/civicrm/civicrm/packages/DB/DataObject.php on line 4650
Call stack:
DB_DataObject::toValue()
wp-content/uploads/civicrm/ext/org.civicoop.civirules/api/v3/CiviRulesTrigger.php:43
civicrm_api3_civi_rules_trigger_create()
wp-content/uploads/civicrm/ext/org.civicoop.civirules/api/v3/CiviRuleTrigger.php:41
civicrm_api3_civi_rule_trigger_create()
wp-content/plugins/civicrm/civicrm/Civi/API/Provider/MagicFunctionProvider.php:89
Civi\A\P\MagicFunctionProvider::invoke()
wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php:156
Civi\API\Kernel::runRequest()
wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php:79
Civi\API\Kernel::runSafe()
wp-content/plugins/civicrm/civicrm/api/api.php:28
civicrm_api()
wp-content/plugins/civicrm/civicrm/CRM/Core/ManagedEntities.php:294
CRM_Core_ManagedEntities::updateExistingEntity()
wp-content/plugins/civicrm/civicrm/CRM/Core/ManagedEntities.php:176
CRM_Core_ManagedEntities::reconcileEntities()
wp-content/plugins/civicrm/civicrm/CRM/Core/ManagedEntities.php:115
CRM_Core_ManagedEntities::reconcile()
wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:423
CRM_Core_Invoke::rebuildMenuAndCaches()
wp-content/plugins/civicrm/civicrm/CRM/Extension/Manager.php:231
CRM_Extension_Manager::replace()
wp-content/plugins/civicrm/civicrm/CRM/Extension/Downloader.php:152
CRM_Extension_Downloader::download()
wp-content/plugins/civicrm/civicrm/api/v3/Extension.php:240
civicrm_api3_extension_download()
wp-content/plugins/civicrm/civicrm/Civi/API/Provider/MagicFunctionProvider.php:89
Civi\A\P\MagicFunctionProvider::invoke()
wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php:156
Civi\API\Kernel::runRequest()
wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php:79
Civi\API\Kernel::runSafe()
wp-content/plugins/civicrm/civicrm/api/api.php:28
civicrm_api()
wp-content/plugins/civicrm/civicrm/CRM/Admin/Form/Extensions.php:204
CRM_Admin_Form_Extensions::postProcess()
wp-content/plugins/civicrm/civicrm/CRM/Core/Form.php:646
CRM_Core_Form::mainProcess()
wp-content/plugins/civicrm/civicrm/CRM/Core/StateMachine.php:144
CRM_Core_StateMachine::perform()
wp-content/plugins/civicrm/civicrm/CRM/Core/QuickForm/Action/Next.php:43
CRM_Core_QuickForm_Action_Next::perform()
wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Controller.php:203
HTML_QuickForm_Controller::handle()
wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Page.php:103
HTML_QuickForm_Page::handle()
wp-content/plugins/civicrm/civicrm/CRM/Core/Controller.php:355
CRM_Core_Controller::run()
wp-content/plugins/civicrm/civicrm/CRM/Core/Page/Basic.php:364
CRM_Core_Page_Basic::edit()
wp-content/plugins/civicrm/civicrm/CRM/Core/Page/Basic.php:170
CRM_Core_Page_Basic::run()
wp-content/plugins/civicrm/civicrm/CRM/Admin/Page/Extensions.php:110
CRM_Admin_Page_Extensions::run()
wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:325
CRM_Core_Invoke::runItem()
wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:69
CRM_Core_Invoke::_invoke()
wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:36
CRM_Core_Invoke::invoke()
wp-content/plugins/civicrm/civicrm.php:1231
CiviCRM_For_WordPress::invoke()
wp-includes/class-wp-hook.php:324
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:348
WP_Hook::do_action()
wp-includes/plugin.php:517
do_action()
wp-admin/admin.php:259