Skip to content

Instantly share code, notes, and snippets.

@chumkui
Last active July 21, 2023 16:07
Show Gist options
  • Select an option

  • Save chumkui/59d56ccdbc2aaa3c3fef78204e52e9f0 to your computer and use it in GitHub Desktop.

Select an option

Save chumkui/59d56ccdbc2aaa3c3fef78204e52e9f0 to your computer and use it in GitHub Desktop.
Deprecated function warning
Deprecated function: unserialize(): Passing null to parameter #1 ($data) of type string is deprecated in CRM_CivirulesPostTrigger_Activity->setTriggerParams() (line 8 of /var/www/html/web/sites/default/files/civicrm/ext/civirules/CRM/CivirulesPostTrigger/Activity.php)
#0 /var/www/html/web/core/includes/bootstrap.inc(347): _drupal_error_handler_real(8192, 'unserialize(): ...', '/var/www/html/w...', 8)
#1 [internal function]: _drupal_error_handler(8192, 'unserialize(): ...', '/var/www/html/w...', 8)
#2 /var/www/html/web/sites/default/files/civicrm/ext/civirules/CRM/CivirulesPostTrigger/Activity.php(8): unserialize(NULL)
#3 /var/www/html/web/sites/default/files/civicrm/ext/civirules/CRM/Civirules/BAO/Rule.php(170): CRM_CivirulesPostTrigger_Activity->setTriggerParams(NULL)
#4 /var/www/html/web/sites/default/files/civicrm/ext/civirules/CRM/Civirules/Trigger/Post.php(104): CRM_Civirules_BAO_Rule::findRulesByObjectNameAndOp('Activity', 'create')
#5 /var/www/html/web/sites/default/files/civicrm/ext/civirules/civirules.php(452): CRM_Civirules_Trigger_Post::post('create', 'Activity', 62802, Object(CRM_Activity_DAO_Activity), '64baa957941af')
#6 [internal function]: civirules_call_post_trigger('create', 'Activity', 62802, Object(CRM_Activity_DAO_Activity), '64baa957941af')
#7 /var/www/html/vendor/civicrm/civicrm-core/Civi/Core/Transaction/Frame.php(198): call_user_func_array('civirules_call_...', Array)
#8 /var/www/html/vendor/civicrm/civicrm-core/Civi/Core/Transaction/Frame.php(148): Civi\Core\Transaction\Frame->invokeCallbacks(2)
#9 /var/www/html/vendor/civicrm/civicrm-core/Civi/Core/Transaction/Manager.php(103): Civi\Core\Transaction\Frame->finish()
#10 /var/www/html/vendor/civicrm/civicrm-core/CRM/Core/Transaction.php(126): Civi\Core\Transaction\Manager->dec()
#11 /var/www/html/vendor/civicrm/civicrm-core/CRM/Core/Transaction.php(113): CRM_Core_Transaction->commit()
#12 /var/www/html/vendor/civicrm/civicrm-core/Civi/API/Subscriber/TransactionSubscriber.php(155): CRM_Core_Transaction->__destruct()
#13 /var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php(251): Civi\API\Subscriber\TransactionSubscriber->onApiRespond(Object(Civi\API\Event\RespondEvent), 'civi.api.respon...', Object(Civi\Core\UnoptimizedEventDispatcher))
#14 /var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php(73): Symfony\Component\EventDispatcher\EventDispatcher->callListeners(Array, 'civi.api.respon...', Object(Civi\API\Event\RespondEvent))
#15 /var/www/html/vendor/civicrm/civicrm-core/Civi/Core/CiviEventDispatcher.php(260): Symfony\Component\EventDispatcher\EventDispatcher->dispatch(Object(Civi\API\Event\RespondEvent), 'civi.api.respon...')
#16 /var/www/html/vendor/civicrm/civicrm-core/Civi/API/Kernel.php(267): Civi\Core\CiviEventDispatcher->dispatch('civi.api.respon...', Object(Civi\API\Event\RespondEvent))
#17 /var/www/html/vendor/civicrm/civicrm-core/Civi/API/Kernel.php(160): Civi\API\Kernel->respond(Object(Civi\API\Provider\MagicFunctionProvider), Array, Array)
#18 /var/www/html/vendor/civicrm/civicrm-core/Civi/API/Kernel.php(81): Civi\API\Kernel->runRequest(Array)
#19 /var/www/html/vendor/civicrm/civicrm-core/api/api.php(133): Civi\API\Kernel->runSafe('activity', 'create', Array)
#20 /var/www/html/web/modules/contrib/webform_civicrm/src/Utils.php(657): civicrm_api3('activity', 'create', Array)
#21 /var/www/html/web/modules/contrib/webform_civicrm/src/WebformCivicrmPostProcess.php(1544): Drupal\webform_civicrm\Utils->wf_civicrm_api('activity', 'create', Array)
#22 /var/www/html/web/modules/contrib/webform_civicrm/src/WebformCivicrmPostProcess.php(300): Drupal\webform_civicrm\WebformCivicrmPostProcess->processActivities()
#23 /var/www/html/web/modules/contrib/webform_civicrm/src/Plugin/WebformHandler/CivicrmWebformHandler.php(153): Drupal\webform_civicrm\WebformCivicrmPostProcess->postSave(Object(Drupal\webform\Entity\WebformSubmission))
#24 /var/www/html/web/modules/contrib/webform/src/Entity/Webform.php(2757): Drupal\webform_civicrm\Plugin\WebformHandler\CivicrmWebformHandler->postSave(Object(Drupal\webform\Entity\WebformSubmission), false, NULL)
#25 /var/www/html/web/modules/contrib/webform/src/WebformSubmissionStorage.php(1212): Drupal\webform\Entity\Webform->invokeHandlers('postSave', Object(Drupal\webform\Entity\WebformSubmission), false, NULL)
#26 /var/www/html/web/modules/contrib/webform/src/WebformSubmissionStorage.php(1120): Drupal\webform\WebformSubmissionStorage->invokeWebformHandlers('postSave', Object(Drupal\webform\Entity\WebformSubmission), false)
#27 /var/www/html/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(523): Drupal\webform\WebformSubmissionStorage->doPostSave(Object(Drupal\webform\Entity\WebformSubmission), false)
#28 /var/www/html/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php(804): Drupal\Core\Entity\EntityStorageBase->save(Object(Drupal\webform\Entity\WebformSubmission))
#29 /var/www/html/web/modules/contrib/webform/src/WebformSubmissionStorage.php(983): Drupal\Core\Entity\Sql\SqlContentEntityStorage->save(Object(Drupal\webform\Entity\WebformSubmission))
#30 /var/www/html/web/core/lib/Drupal/Core/Entity/EntityBase.php(339): Drupal\webform\WebformSubmissionStorage->save(Object(Drupal\webform\Entity\WebformSubmission))
#31 /var/www/html/web/modules/contrib/webform/src/Entity/WebformSubmission.php(901): Drupal\Core\Entity\EntityBase->save()
#32 /var/www/html/web/modules/contrib/webform/modules/webform_submission_export_import/src/WebformSubmissionExportImportImporter.php(948): Drupal\webform\Entity\WebformSubmission->save()
#33 /var/www/html/web/modules/contrib/webform/modules/webform_submission_export_import/src/WebformSubmissionExportImportImporter.php(483): Drupal\webform_submission_export_import\WebformSubmissionExportImportImporter->importSaveSubmission(Array, Object(Drupal\webform\Entity\WebformSubmission))
#34 /var/www/html/web/modules/contrib/webform/modules/webform_submission_export_import/src/Form/WebformSubmissionExportImportUploadForm.php(448): Drupal\webform_submission_export_import\WebformSubmissionExportImportImporter->import()
#35 [internal function]: Drupal\webform_submission_export_import\Form\WebformSubmissionExportImportUploadForm->submitImportForm(Array, Object(Drupal\Core\Form\FormState))
#36 /var/www/html/web/core/lib/Drupal/Core/Form/FormSubmitter.php(114): call_user_func_array(Array, Array)
#37 /var/www/html/web/core/lib/Drupal/Core/Form/FormSubmitter.php(52): Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object(Drupal\Core\Form\FormState))
#38 /var/www/html/web/core/lib/Drupal/Core/Form/FormBuilder.php(597): Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object(Drupal\Core\Form\FormState))
#39 /var/www/html/web/core/lib/Drupal/Core/Form/FormBuilder.php(325): Drupal\Core\Form\FormBuilder->processForm('webform_submiss...', Array, Object(Drupal\Core\Form\FormState))
#40 /var/www/html/web/core/lib/Drupal/Core/Controller/FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\webform_submission_export_import\Form\WebformSubmissionExportImportUploadForm), Object(Drupal\Core\Form\FormState))
#41 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch))
#42 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#43 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(580): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#44 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#45 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#46 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(169): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#47 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(81): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#48 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#49 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#50 /var/www/html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#51 /var/www/html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#52 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#53 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#54 /var/www/html/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#55 /var/www/html/web/core/lib/Drupal/Core/DrupalKernel.php(718): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#56 /var/www/html/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#57 {main}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment