Warning: foreach() argument must be of type array|object, null given in Drupal\eca_condition\Plugin\Derivative\ECAConditionDerivative->getDerivativeDefinitions()

Created on 2 April 2024, 8 months ago
Updated 7 April 2024, 7 months ago

Problem/Motivation

I have just installed and not configured the module.

I get this warnin gin my logs
php8.2
Drupal 10.2.4

Warning: foreach() argument must be of type array|object, null given in Drupal\eca_condition\Plugin\Derivative\ECAConditionDerivative->getDerivativeDefinitions() (line 59 of /drupal10.2.4/html/modules/contrib/eca_condition/src/Plugin/Derivative/ECAConditionDerivative.php) #0 /drupal10.2.4/html/core/includes/bootstrap.inc(164): _drupal_error_handler_real()
Apr 2 03:25:52 dev mysie.net: #1 /drupal10.2.4/html/modules/contrib/eca_condition/src/Plugin/Derivative/ECAConditionDerivative.php(59): _drupal_error_handler()
Apr 2 03:25:52 dev mysie.net: #2 /drupal10.2.4/html/core/lib/Drupal/Component/Plugin/Discovery/DerivativeDiscoveryDecorator.php(101): Drupal\eca_condition\Plugin\Derivative\ECAConditionDerivative->getDerivativeDefinitions()
Apr 2 03:25:52 dev mysie.net: #3 /drupal10.2.4/html/core/lib/Drupal/Component/Plugin/Discovery/DerivativeDiscoveryDecorator.php(87): Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDerivatives()
Apr 2 03:25:52 dev mysie.net: #4 /drupal10.2.4/html/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php(323): Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDefinitions()
Apr 2 03:25:52 dev mysie.net: #5 /drupal10.2.4/html/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php(205): Drupal\Core\Plugin\DefaultPluginManager->findDefinitions()
Apr 2 03:25:52 dev mysie.net: #6 /drupal10.2.4/html/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryCachedTrait.php(22): Drupal\Core\Plugin\DefaultPluginManager->getDefinitions()
Apr 2 03:25:52 dev mysie.net: #7 /drupal10.2.4/html/core/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php(16): Drupal\Core\Plugin\DefaultPluginManager->getDefinition()
Apr 2 03:25:52 dev mysie.net: #8 /drupal10.2.4/html/core/lib/Drupal/Core/Condition/ConditionManager.php(59): Drupal\Core\Plugin\Factory\ContainerFactory->createInstance()
Apr 2 03:25:52 dev mysie.net: #9 /drupal10.2.4/html/core/lib/Drupal/Core/Plugin/DefaultLazyPluginCollection.php(81): Drupal\Core\Condition\ConditionManager->createInstance()
Apr 2 03:25:52 dev mysie.net: #10 /drupal10.2.4/html/core/lib/Drupal/Component/Plugin/LazyPluginCollection.php(80): Drupal\Core\Plugin\DefaultLazyPluginCollection->initializePlugin()
Apr 2 03:25:52 dev mysie.net: #11 /drupal10.2.4/html/core/lib/Drupal/Core/Condition/ConditionPluginCollection.php(26): Drupal\Component\Plugin\LazyPluginCollection->get()
Apr 2 03:25:52 dev mysie.net: #12 /drupal10.2.4/html/core/lib/Drupal/Component/Plugin/LazyPluginCollection.php(149): Drupal\Core\Condition\ConditionPluginCollection->get()
Apr 2 03:25:52 dev mysie.net: #13 /drupal10.2.4/html/core/modules/block/src/BlockAccessControlHandler.php(88): Drupal\Component\Plugin\LazyPluginCollection->getIterator()
Apr 2 03:25:52 dev mysie.net: #14 /drupal10.2.4/html/core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php(109): Drupal\block\BlockAccessControlHandler->checkAccess()
Apr 2 03:25:52 dev mysie.net: #15 /drupal10.2.4/html/core/lib/Drupal/Core/Entity/EntityBase.php(329): Drupal\Core\Entity\EntityAccessControlHandler->access()
Apr 2 03:25:52 dev mysie.net: #16 /drupal10.2.4/html/core/modules/block/src/BlockRepository.php(63): Drupal\Core\Entity\EntityBase->access()
Apr 2 03:25:52 dev mysie.net: #17 /drupal10.2.4/html/core/modules/block/src/Plugin/DisplayVariant/BlockPageVariant.php(137): Drupal\block\BlockRepository->getVisibleBlocksPerRegion()
Apr 2 03:25:52 dev mysie.net: #18 /drupal10.2.4/html/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(270): Drupal\block\Plugin\DisplayVariant\BlockPageVariant->build()
Apr 2 03:25:52 dev mysie.net: #19 /drupal10.2.4/html/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(128): Drupal\Core\Render\MainContent\HtmlRenderer->prepare()
Apr 2 03:25:52 dev mysie.net: #20 /drupal10.2.4/html/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse()
Apr 2 03:25:52 dev mysie.net: #21 [internal function]: Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray()
Apr 2 03:25:52 dev mysie.net: #22 /drupal10.2.4/html/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func()
Apr 2 03:25:52 dev mysie.net: #23 /drupal10.2.4/vendor/symfony/http-kernel/HttpKernel.php(186): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
Apr 2 03:25:52 dev mysie.net: #24 /drupal10.2.4/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
Apr 2 03:25:52 dev mysie.net: #25 /drupal10.2.4/html/modules/contrib/simple_oauth/src/HttpMiddleware/BasicAuthSwap.php(54): Symfony\Component\HttpKernel\HttpKernel->handle()
Apr 2 03:25:52 dev mysie.net: #26 /drupal10.2.4/html/modules/contrib/bat_api/src/StackMiddleware/BatApiMiddleware.php(39): Drupal\simple_oauth\HttpMiddleware\BasicAuthSwap->handle()
Apr 2 03:25:52 dev mysie.net: #27 /drupal10.2.4/html/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Drupal\bat_api\StackMiddleware\BatApiMiddleware->handle()
Apr 2 03:25:52 dev mysie.net: #28 /drupal10.2.4/html/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
Apr 2 03:25:52 dev mysie.net: #29 /drupal10.2.4/html/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
Apr 2 03:25:52 dev mysie.net: #30 /drupal10.2.4/html/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
Apr 2 03:25:52 dev mysie.net: #31 /drupal10.2.4/html/core/modules/page_cache/src/StackMiddleware/PageCache.php(191): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
Apr 2 03:25:52 dev mysie.net: #32 /drupal10.2.4/html/core/modules/page_cache/src/StackMiddleware/PageCache.php(128): Drupal\page_cache\StackMiddleware\PageCache->fetch()
Apr 2 03:25:52 dev mysie.net: #33 /drupal10.2.4/html/core/modules/page_cache/src/StackMiddleware/PageCache.php(82): Drupal\page_cache\StackMiddleware\PageCache->lookup()
Apr 2 03:25:52 dev mysie.net: #34 /drupal10.2.4/html/modules/contrib/services/src/StackMiddleware/FormatSetter.php(45): Drupal\page_cache\StackMiddleware\PageCache->handle()
Apr 2 03:25:52 dev mysie.net: #35 /drupal10.2.4/html/modules/contrib/webform_product/src/RedirectMiddleware.php(43): Drupal\services\StackMiddleware\FormatSetter->handle()
Apr 2 03:25:52 dev mysie.net: #36 /drupal10.2.4/html/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\webform_product\RedirectMiddleware->handle()
Apr 2 03:25:52 dev mysie.net: #37 /drupal10.2.4/html/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
Apr 2 03:25:52 dev mysie.net: #38 /drupal10.2.4/html/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
Apr 2 03:25:52 dev mysie.net: #39 /drupal10.2.4/html/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
Apr 2 03:25:52 dev mysie.net: #40 /drupal10.2.4/html/core/lib/Drupal/Core/DrupalKernel.php(714): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
Apr 2 03:25:52 dev mysie.net: #41 /drupal10.2.4/html/index.php(19): Drupal\Core\DrupalKernel->handle()
Apr 2 03:25:52 dev mysie.net: #42 {main}.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇺🇸United States SocialNicheGuru

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024