Drupal Watchdog flooded with Notices
I have created a CiviRule with Trigger for Activity Targets (Activity is changed). There is a condition "Field Value Comparison" that compares a custom field of the activity to a fixed value.
When I start a civi mailing, thousands of notices are written to the Drupal Watchdog table (that finally even used up the disk space):
Notice: Undefined index: custom_39 in CRM_CivirulesConditions_FieldValueComparison->getFieldValue() (line 37 of /var/www/html/drupal-9/web/sites/default/files/civicrm/ext/org.civicoop.civirules/CRM/CivirulesConditions/FieldValueComparison.php)
#0 /var/www/html/drupal-9/web/core/includes/bootstrap.inc(347): _drupal_error_handler_real() #1 (closed) /var/www/html/drupal-9/web/sites/default/files/civicrm/ext/org.civicoop.civirules/CRM/CivirulesConditions/FieldValueComparison.php(37): _drupal_error_handler() #2 (closed) /var/www/html/drupal-9/web/sites/default/files/civicrm/ext/org.civicoop.civirules/CRM/CivirulesConditions/Generic/ValueComparison.php(194): CRM_CivirulesConditions_FieldValueComparison->getFieldValue() #3 (closed) /var/www/html/drupal-9/web/sites/default/files/civicrm/ext/org.civicoop.civirules/CRM/Civirules/Engine.php(299): CRM_CivirulesConditions_Generic_ValueComparison->isConditionValid() #4 (closed) /var/www/html/drupal-9/web/sites/default/files/civicrm/ext/org.civicoop.civirules/CRM/Civirules/Engine.php(252): CRM_Civirules_Engine::checkCondition() #5 (closed) /var/www/html/drupal-9/web/sites/default/files/civicrm/ext/org.civicoop.civirules/CRM/Civirules/Engine.php(32): CRM_Civirules_Engine::areConditionsValid() #6 (closed) /var/www/html/drupal-9/web/sites/default/files/civicrm/ext/org.civicoop.civirules/CRM/CivirulesPostTrigger/Activity.php(68): CRM_Civirules_Engine::triggerRule() #7 (closed) /var/www/html/drupal-9/web/sites/default/files/civicrm/ext/org.civicoop.civirules/CRM/Civirules/Trigger/Post.php(107): CRM_CivirulesPostTrigger_Activity->triggerTrigger() #8 (closed) /var/www/html/drupal-9/web/sites/default/files/civicrm/ext/org.civicoop.civirules/civirules.php(452): CRM_Civirules_Trigger_Post::post() #9 (closed) [internal function]: civirules_call_post_trigger() #10 (closed) /var/www/html/drupal-9/vendor/civicrm/civicrm-core/Civi/Core/Transaction/Frame.php(198): call_user_func_array() #11 (closed) /var/www/html/drupal-9/vendor/civicrm/civicrm-core/Civi/Core/Transaction/Frame.php(148): Civi\Core\Transaction\Frame->invokeCallbacks() #12 (closed) /var/www/html/drupal-9/vendor/civicrm/civicrm-core/Civi/Core/Transaction/Manager.php(103): Civi\Core\Transaction\Frame->finish() #13 (closed) /var/www/html/drupal-9/vendor/civicrm/civicrm-core/CRM/Core/Transaction.php(126): Civi\Core\Transaction\Manager->dec() #14 (closed) /var/www/html/drupal-9/vendor/civicrm/civicrm-core/CRM/Core/Transaction.php(113): CRM_Core_Transaction->commit() #15 (closed) /var/www/html/drupal-9/vendor/civicrm/civicrm-core/Civi/API/Subscriber/TransactionSubscriber.php(155): CRM_Core_Transaction->__destruct() #16 (closed) /var/www/html/drupal-9/vendor/symfony/event-dispatcher/EventDispatcher.php(251): Civi\API\Subscriber\TransactionSubscriber->onApiRespond() #17 (closed) /var/www/html/drupal-9/vendor/symfony/event-dispatcher/EventDispatcher.php(73): Symfony\Component\EventDispatcher\EventDispatcher->callListeners() #18 (closed) /var/www/html/drupal-9/vendor/civicrm/civicrm-core/Civi/Core/CiviEventDispatcher.php(260): Symfony\Component\EventDispatcher\EventDispatcher->dispatch() #19 (closed) /var/www/html/drupal-9/vendor/civicrm/civicrm-core/Civi/API/Kernel.php(267): Civi\Core\CiviEventDispatcher->dispatch() #20 (closed) /var/www/html/drupal-9/vendor/civicrm/civicrm-core/Civi/API/Kernel.php(160): Civi\API\Kernel->respond() #21 (closed) /var/www/html/drupal-9/vendor/civicrm/civicrm-core/Civi/API/Kernel.php(81): Civi\API\Kernel->runRequest() #22 (closed) /var/www/html/drupal-9/vendor/civicrm/civicrm-core/api/api.php(133): Civi\API\Kernel->runSafe() #23 (closed) /var/www/html/drupal-9/vendor/civicrm/civicrm-core/CRM/Mailing/BAO/MailingJob.php(1020): civicrm_api3() #24 (closed) /var/www/html/drupal-9/vendor/civicrm/civicrm-core/ext/flexmailer/src/Listener/DefaultSender.php(100): CRM_Mailing_BAO_MailingJob->writeToDB() #25 (closed) [internal function]: Civi\FlexMailer\Listener\DefaultSender->onSend() #26 (closed) /var/www/html/drupal-9/vendor/civicrm/civicrm-core/Civi/Core/Event/ServiceListener.php(53): call_user_func_array() #27 (closed) /var/www/html/drupal-9/vendor/symfony/event-dispatcher/EventDispatcher.php(251): Civi\Core\Event\ServiceListener->__invoke() #28 (closed) /var/www/html/drupal-9/vendor/symfony/event-dispatcher/EventDispatcher.php(73): Symfony\Component\EventDispatcher\EventDispatcher->callListeners() #29 (closed) /var/www/html/drupal-9/vendor/civicrm/civicrm-core/Civi/Core/CiviEventDispatcher.php(260): Symfony\Component\EventDispatcher\EventDispatcher->dispatch() #30 (closed) /var/www/html/drupal-9/vendor/civicrm/civicrm-core/ext/flexmailer/src/FlexMailer.php(222): Civi\Core\CiviEventDispatcher->dispatch() #31 (closed) /var/www/html/drupal-9/vendor/civicrm/civicrm-core/ext/flexmailer/src/FlexMailer.php(159): Civi\FlexMailer\FlexMailer->fireSendBatch() #32 (closed) [internal function]: Civi\FlexMailer\FlexMailer->Civi\FlexMailer{closure}() #33 (closed) /var/www/html/drupal-9/vendor/civicrm/civicrm-core/ext/flexmailer/src/Event/WalkBatchesEvent.php(55): call_user_func() #34 (closed) /var/www/html/drupal-9/vendor/civicrm/civicrm-core/ext/flexmailer/src/Listener/DefaultBatcher.php(71): Civi\FlexMailer\Event\WalkBatchesEvent->visit() #35 (closed) [internal function]: Civi\FlexMailer\Listener\DefaultBatcher->onWalk() #36 (closed) /var/www/html/drupal-9/vendor/civicrm/civicrm-core/Civi/Core/Event/ServiceListener.php(53): call_user_func_array() #37 /var/www/html/drupal-9/vendor/symfony/event-dispatcher/EventDispatcher.php(251): Civi\Core\Event\ServiceListener->__invoke() #38 (closed) /var/www/html/drupal-9/vendor/symfony/event-dispatcher/EventDispatcher.php(73): Symfony\Component\EventDispatcher\EventDispatcher->callListeners() #39 (closed) /var/www/html/drupal-9/vendor/civicrm/civicrm-core/Civi/Core/CiviEventDispatcher.php(260): Symfony\Component\EventDispatcher\EventDispatcher->dispatch() #40 (closed) /var/www/html/drupal-9/vendor/civicrm/civicrm-core/ext/flexmailer/src/FlexMailer.php(196): Civi\Core\CiviEventDispatcher->dispatch() #41 (closed) /var/www/html/drupal-9/vendor/civicrm/civicrm-core/ext/flexmailer/src/FlexMailer.php(161): Civi\FlexMailer\FlexMailer->fireWalkBatches() #42 (closed) /var/www/html/drupal-9/vendor/civicrm/civicrm-core/ext/flexmailer/src/FlexMailer.php(122): Civi\FlexMailer\FlexMailer->run() #43 (closed) [internal function]: Civi\FlexMailer\FlexMailer::createAndRun() #44 (closed) /var/www/html/drupal-9/vendor/civicrm/civicrm-core/Civi/Core/Resolver.php(119): call_user_func_array() #45 (closed) /var/www/html/drupal-9/vendor/civicrm/civicrm-core/CRM/Mailing/BAO/MailingJob.php(175): Civi\Core\Resolver->call() #46 (closed) /var/www/html/drupal-9/vendor/civicrm/civicrm-core/CRM/Mailing/BAO/Mailing.php(2737): CRM_Mailing_BAO_MailingJob::runJobs() #47 (closed) /var/www/html/drupal-9/vendor/civicrm/civicrm-core/api/v3/Job.php(333): CRM_Mailing_BAO_Mailing::processQueue() #48 (closed) /var/www/html/drupal-9/vendor/civicrm/civicrm-core/Civi/API/Provider/MagicFunctionProvider.php(89): civicrm_api3_job_process_mailing() #49 /var/www/html/drupal-9/vendor/civicrm/civicrm-core/Civi/API/Kernel.php(158): Civi\API\Provider\MagicFunctionProvider->invoke() #50 /var/www/html/drupal-9/vendor/civicrm/civicrm-core/Civi/API/Kernel.php(81): Civi\API\Kernel->runRequest() #51 (closed) /var/www/html/drupal-9/vendor/civicrm/civicrm-core/api/api.php(22): Civi\API\Kernel->runSafe() #52 (closed) /var/www/html/drupal-9/vendor/civicrm/civicrm-core/CRM/Core/JobManager.php(131): civicrm_api() #53 (closed) /var/www/html/drupal-9/vendor/civicrm/civicrm-core/CRM/Core/JobManager.php(63): CRM_Core_JobManager->executeJob() #54 (closed) /var/www/html/drupal-9/vendor/civicrm/civicrm-core/api/v3/Job.php(117): CRM_Core_JobManager->execute() #55 /var/www/html/drupal-9/vendor/civicrm/civicrm-core/Civi/API/Provider/MagicFunctionProvider.php(89): civicrm_api3_job_execute() #56 (closed) /var/www/html/drupal-9/vendor/civicrm/civicrm-core/Civi/API/Kernel.php(158): Civi\API\Provider\MagicFunctionProvider->invoke() #57 (closed) /var/www/html/drupal-9/vendor/civicrm/civicrm-core/Civi/API/Kernel.php(81): Civi\API\Kernel->runRequest() #58 (closed) /var/www/html/drupal-9/vendor/civicrm/civicrm-core/api/api.php(22): Civi\API\Kernel->runSafe() #59 (closed) /var/www/html/drupal-9/vendor/civicrm/cv/src/Command/ApiCommand.php(74): civicrm_api() #60 (closed) /var/www/html/drupal-9/vendor/symfony/console/Command/Command.php(255): Civi\Cv\Command\ApiCommand->execute() #61 (closed) /var/www/html/drupal-9/vendor/symfony/console/Application.php(1021): Symfony\Component\Console\Command\Command->run() #62 /var/www/html/drupal-9/vendor/symfony/console/Application.php(275): Symfony\Component\Console\Application->doRunCommand() #63 /var/www/html/drupal-9/vendor/civicrm/cv/src/Application.php(82): Symfony\Component\Console\Application->doRun() #64 (closed) /var/www/html/drupal-9/vendor/symfony/console/Application.php(149): Civi\Cv\Application->doRun() #65 /var/www/html/drupal-9/vendor/civicrm/cv/src/Application.php(49): Symfony\Component\Console\Application->run() #66 /var/www/html/drupal-9/vendor/civicrm/cv/bin/cv(27): Civi\Cv\Application::main() #67 (closed) /var/www/html/drupal-9/vendor/bin/cv(115): include('/var/www/html/d...') #68 (closed) {main}
(Interestingly, these messages are written even when Drupal Watchdog Logging is switched off in CiviCRM. Could this be because webform civicrm is used there?).