Answers.Body: <p>Note this was fixed in the latest 5.69 point release (5.69.5)</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-02-28T19:45:06.253Z
Answers.LastActivityDate: 2024-02-28T19:45:06.253Z
Answers.UserDisplayName: eileen
Body: <p>After the latest Core update I receive an error when trying to save an updated Event Participant Status.  The record ultimately does save, but throws an error (details below).  I'm not sure how to interpret it.  Any indication where I should be looking, or what is going wrong?</p>
  <p><strong>DETAILS:</strong> </p>
  <ul>
  <li>CiviCRM version 5.69.3</li>
  <li>WordPress version 6.4.3</li>
  <li>Active theme: Hello Elementor (version 2.4.2.1642712871)</li>
  <li>PHP version 8.1.23</li>
  </ul>
  <h1>Error Details</h1>
  <p>An error of type E_ERROR was caused in line 90 of the file /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/Civi/WorkflowMessage/WorkflowMessage.php. Error message: Uncaught TypeError: Civi\WorkflowMessage\WorkflowMessage::importAll(): Argument #1 ($model) must be of type Civi\WorkflowMessage\WorkflowMessageInterface, array given, called in /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/MessageTemplate.php on line 358 and defined in /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/Civi/WorkflowMessage/WorkflowMessage.php:90
  Stack trace:
  #0 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/MessageTemplate.php(358): Civi\WorkflowMessage\WorkflowMessage::importAll(Array, Array)
  #1 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/MessageTemplate.php(422): CRM_Core_BAO_MessageTemplate::renderTemplateRaw(Array)
  #2 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/api/v3/MessageTemplate.php(126): CRM_Core_BAO_MessageTemplate::sendTemplate(Array)
  #3 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/Civi/API/Provider/MagicFunctionProvider.php(89): civicrm_api3_message_template_send(Array)
  #4 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php(156): Civi\API\Provider\MagicFunctionProvider-&gt;invoke(Array)
  #5 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php(79): Civi\API\Kernel-&gt;runRequest(Array)
  #6 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/api/api.php(136): Civi\API\Kernel-&gt;runSafe('MessageTemplate', 'send', Array)
  #7 /home/[MYDOMAIN]/www/www/wp-content/uploads/civicrm/ext/de.systopia.eventmessages/CRM/Eventmessages/SendMail.php(100): civicrm_api3('MessageTemplate', 'send', Array)
  #8 /home/[MYDOMAIN]/www/www/wp-content/uploads/civicrm/ext/de.systopia.eventmessages/CRM/Eventmessages/Logic.php(305): CRM_Eventmessages_SendMail::sendMessageTo(Array)
  #9 /home/[MYDOMAIN]/www/www/wp-content/uploads/civicrm/ext/de.systopia.eventmessages/CRM/Eventmessages/Logic.php(85): CRM_Eventmessages_Logic::processStatusChange(40, 20, 21, 605)
  #10 /home/[MYDOMAIN]/www/www/wp-content/uploads/civicrm/ext/de.systopia.eventmessages/eventmessages.php(104): CRM_Eventmessages_Logic::recordPostCommit(605, Object(CRM_Event_BAO_Participant))
  #11 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Utils/Hook.php(288): eventmessages_civicrm_postCommit('edit', 'Participant', 605, Object(CRM_Event_BAO_Participant), NULL)
  #12 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Utils/Hook/WordPress.php(136): CRM_Utils_Hook-&gt;runHooks(Array, 'civicrm_postCom...', 5, 'edit', 'Participant', 605, Object(CRM_Event_BAO_Participant), NULL, NULL)
  #13 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/Civi/Core/CiviEventDispatcher.php(326): CRM_Utils_Hook_WordPress-&gt;invokeViaUF(5, 'edit', 'Participant', 605, Object(CRM_Event_BAO_Participant), NULL, NULL, 'civicrm_postCom...')
  #14 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/vendor/symfony/event-dispatcher/EventDispatcher.php(251): Civi\Core\CiviEventDispatcher::delegateToUF(Object(Civi\Core\Event\PostEvent), 'hook_civicrm_po...', Object(Civi\Core\UnoptimizedEventDispatcher))
  #15 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/vendor/symfony/event-dispatcher/EventDispatcher.php(73): Symfony\Component\EventDispatcher\EventDispatcher-&gt;callListeners(Array, 'hook_civicrm_po...', Object(Civi\Core\Event\PostEvent))
  #16 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/Civi/Core/CiviEventDispatcher.php(263): Symfony\Component\EventDispatcher\EventDispatcher-&gt;dispatch(Object(Civi\Core\Event\PostEvent), 'hook_civicrm_po...')
  #17 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Utils/Hook.php(401): Civi\Core\CiviEventDispatcher-&gt;dispatch('hook_civicrm_po...', Object(Civi\Core\Event\PostEvent))
  #18 [internal function]: CRM_Utils_Hook::postCommit('edit', 'Participant', 605, Object(CRM_Event_BAO_Participant))
  #19 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/Civi/Core/Transaction/Frame.php(198): call_user_func_array(Array, Array)
  #20 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/Civi/Core/Transaction/Frame.php(148): Civi\Core\Transaction\Frame-&gt;invokeCallbacks(2)
  #21 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/Civi/Core/Transaction/Manager.php(103): Civi\Core\Transaction\Frame-&gt;finish()
  #22 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/Transaction.php(126): Civi\Core\Transaction\Manager-&gt;dec()
  #23 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Event/BAO/Participant.php(253): CRM_Core_Transaction-&gt;commit()
  #24 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Event/Form/Participant.php(1003): CRM_Event_BAO_Participant::create(Array)
  #25 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Event/Form/Participant.php(808): CRM_Event_Form_Participant-&gt;submit(Array)
  #26 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/Form.php(625): CRM_Event_Form_Participant-&gt;postProcess()
  #27 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/QuickForm/Action/Upload.php(153): CRM_Core_Form-&gt;mainProcess()
  #28 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/QuickForm/Action/Upload.php(120): CRM_Core_QuickForm_Action_Upload-&gt;realPerform(Object(CRM_Event_Form_Participant), 'upload')
  #29 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Upload-&gt;perform(Object(CRM_Event_Form_Participant), 'upload')
  #30 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller-&gt;handle(Object(CRM_Event_Form_Participant), 'upload')
  #31 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/Controller.php(355): HTML_QuickForm_Page-&gt;handle('upload')
  #32 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Event/Page/Tab.php(100): CRM_Core_Controller-&gt;run()
  #33 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Event/Page/Tab.php(158): CRM_Event_Page_Tab-&gt;edit()
  #34 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(322): CRM_Event_Page_Tab-&gt;run(Array, NULL)
  #35 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(69): CRM_Core_Invoke::runItem(Array)
  #36 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(36): CRM_Core_Invoke::_invoke(Array)
  #37 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm.php(1231): CRM_Core_Invoke::invoke(Array)
  #38 /home/[MYDOMAIN]/www/www/wp-includes/class-wp-hook.php(324): CiviCRM_For_WordPress-&gt;invoke('')
  #39 /home/[MYDOMAIN]/www/www/wp-includes/class-wp-hook.php(348): WP_Hook-&gt;apply_filters('', Array)
  #40 /home/[MYDOMAIN]/www/www/wp-includes/plugin.php(517): WP_Hook-&gt;do_action(Array)
  #41 /home/[MYDOMAIN]/www/www/wp-admin/admin.php(259): do_action('toplevel_page_C...')
  #42 {main}
  thrown</p>
  
Tags: <error>
Title: Error saving update on Participant Status
ThreadText: # Error saving update on Participant Status
  
  (Asked by: username_0 on 2024-02-04)
  
  After the latest Core update I receive an error when trying to save an updated Event Participant Status. The record ultimately does save, but throws an error (details below). I'm not sure how to interpret it. Any indication where I should be looking, or what is going wrong?
  
  **DETAILS:**
  
  * CiviCRM version 5.69.3
  * WordPress version 6.4.3
  * Active theme: Hello Elementor (version 2.4.2.1642712871)
  * PHP version 8.1.23
  
  # Error Details
  
  An error of type E\_ERROR was caused in line 90 of the file /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/Civi/WorkflowMessage/WorkflowMessage.php. Error message: Uncaught TypeError: Civi\WorkflowMessage\WorkflowMessage::importAll(): Argument #1 ($model) must be of type Civi\WorkflowMessage\WorkflowMessageInterface, array given, called in /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/MessageTemplate.php on line 358 and defined in /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/Civi/WorkflowMessage/WorkflowMessage.php:90
  Stack trace:
  #0 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/MessageTemplate.php(358): Civi\WorkflowMessage\WorkflowMessage::importAll(Array, Array)
  #1 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/MessageTemplate.php(422): CRM\_Core\_BAO\_MessageTemplate::renderTemplateRaw(Array)
  #2 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/api/v3/MessageTemplate.php(126): CRM\_Core\_BAO\_MessageTemplate::sendTemplate(Array)
  #3 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/Civi/API/Provider/MagicFunctionProvider.php(89): civicrm\_api3\_message\_template\_send(Array)
  #4 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php(156): Civi\API\Provider\MagicFunctionProvider->invoke(Array)
  #5 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php(79): Civi\API\Kernel->runRequest(Array)
  #6 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/api/api.php(136): Civi\API\Kernel->runSafe('MessageTemplate', 'send', Array)
  #7 /home/[MYDOMAIN]/www/www/wp-content/uploads/civicrm/ext/de.systopia.eventmessages/CRM/Eventmessages/SendMail.php(100): civicrm\_api3('MessageTemplate', 'send', Array)
  #8 /home/[MYDOMAIN]/www/www/wp-content/uploads/civicrm/ext/de.systopia.eventmessages/CRM/Eventmessages/Logic.php(305): CRM\_Eventmessages\_SendMail::sendMessageTo(Array)
  #9 /home/[MYDOMAIN]/www/www/wp-content/uploads/civicrm/ext/de.systopia.eventmessages/CRM/Eventmessages/Logic.php(85): CRM\_Eventmessages\_Logic::processStatusChange(40, 20, 21, 605)
  #10 /home/[MYDOMAIN]/www/www/wp-content/uploads/civicrm/ext/de.systopia.eventmessages/eventmessages.php(104): CRM\_Eventmessages\_Logic::recordPostCommit(605, Object(CRM\_Event\_BAO\_Participant))
  #11 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Utils/Hook.php(288): eventmessages\_civicrm\_postCommit('edit', 'Participant', 605, Object(CRM\_Event\_BAO\_Participant), NULL)
  #12 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Utils/Hook/WordPress.php(136): CRM\_Utils\_Hook->runHooks(Array, 'civicrm\_postCom...', 5, 'edit', 'Participant', 605, Object(CRM\_Event\_BAO\_Participant), NULL, NULL)
  #13 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/Civi/Core/CiviEventDispatcher.php(326): CRM\_Utils\_Hook\_WordPress->invokeViaUF(5, 'edit', 'Participant', 605, Object(CRM\_Event\_BAO\_Participant), NULL, NULL, 'civicrm\_postCom...')
  #14 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/vendor/symfony/event-dispatcher/EventDispatcher.php(251): Civi\Core\CiviEventDispatcher::delegateToUF(Object(Civi\Core\Event\PostEvent), 'hook\_civicrm\_po...', Object(Civi\Core\UnoptimizedEventDispatcher))
  #15 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/vendor/symfony/event-dispatcher/EventDispatcher.php(73): Symfony\Component\EventDispatcher\EventDispatcher->callListeners(Array, 'hook\_civicrm\_po...', Object(Civi\Core\Event\PostEvent))
  #16 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/Civi/Core/CiviEventDispatcher.php(263): Symfony\Component\EventDispatcher\EventDispatcher->dispatch(Object(Civi\Core\Event\PostEvent), 'hook\_civicrm\_po...')
  #17 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Utils/Hook.php(401): Civi\Core\CiviEventDispatcher->dispatch('hook\_civicrm\_po...', Object(Civi\Core\Event\PostEvent))
  #18 [internal function]: CRM\_Utils\_Hook::postCommit('edit', 'Participant', 605, Object(CRM\_Event\_BAO\_Participant))
  #19 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/Civi/Core/Transaction/Frame.php(198): call\_user\_func\_array(Array, Array)
  #20 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/Civi/Core/Transaction/Frame.php(148): Civi\Core\Transaction\Frame->invokeCallbacks(2)
  #21 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/Civi/Core/Transaction/Manager.php(103): Civi\Core\Transaction\Frame->finish()
  #22 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/Transaction.php(126): Civi\Core\Transaction\Manager->dec()
  #23 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Event/BAO/Participant.php(253): CRM\_Core\_Transaction->commit()
  #24 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Event/Form/Participant.php(1003): CRM\_Event\_BAO\_Participant::create(Array)
  #25 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Event/Form/Participant.php(808): CRM\_Event\_Form\_Participant->submit(Array)
  #26 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/Form.php(625): CRM\_Event\_Form\_Participant->postProcess()
  #27 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/QuickForm/Action/Upload.php(153): CRM\_Core\_Form->mainProcess()
  #28 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/QuickForm/Action/Upload.php(120): CRM\_Core\_QuickForm\_Action\_Upload->realPerform(Object(CRM\_Event\_Form\_Participant), 'upload')
  #29 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM\_Core\_QuickForm\_Action\_Upload->perform(Object(CRM\_Event\_Form\_Participant), 'upload')
  #30 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Page.php(103): HTML\_QuickForm\_Controller->handle(Object(CRM\_Event\_Form\_Participant), 'upload')
  #31 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/Controller.php(355): HTML\_QuickForm\_Page->handle('upload')
  #32 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Event/Page/Tab.php(100): CRM\_Core\_Controller->run()
  #33 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Event/Page/Tab.php(158): CRM\_Event\_Page\_Tab->edit()
  #34 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(322): CRM\_Event\_Page\_Tab->run(Array, NULL)
  #35 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(69): CRM\_Core\_Invoke::runItem(Array)
  #36 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(36): CRM\_Core\_Invoke::\_invoke(Array)
  #37 /home/[MYDOMAIN]/www/www/wp-content/plugins/civicrm/civicrm.php(1231): CRM\_Core\_Invoke::invoke(Array)
  #38 /home/[MYDOMAIN]/www/www/wp-includes/class-wp-hook.php(324): CiviCRM\_For\_WordPress->invoke('')
  #39 /home/[MYDOMAIN]/www/www/wp-includes/class-wp-hook.php(348): WP\_Hook->apply\_filters('', Array)
  #40 /home/[MYDOMAIN]/www/www/wp-includes/plugin.php(517): WP\_Hook->do\_action(Array)
  #41 /home/[MYDOMAIN]/www/www/wp-admin/admin.php(259): do\_action('toplevel\_page\_C...')
  #42 {main}
  thrown
  
  **Tags:** error
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2024-02-28. Score: 2
  
  Note this was fixed in the latest 5.69 point release (5.69.5)
  
  
  ---
  
  