The website encountered an unexpected error. Please try again later.

Created on 20 November 2023, over 1 year ago
Updated 16 April 2024, about 1 year ago

after I imported the code to create a rule components, then I click the "components" button, I got this blank screen with error.

I got this error in log

TypeError: Drupal\rules\Engine\ExpressionManager::createInstance(): Argument #2 ($configuration) must be of type array, null given, called in /home/abcorg/public_html/web/modules/rules/src/Engine/RulesComponent.php on line 73 in Drupal\rules\Engine\ExpressionManager->createInstance() (line 37 of /home/abcorg/public_html/web/modules/rules/src/Engine/ExpressionManager.php).

and this :

Warning: Undefined array key "expression" in Drupal\rules\Engine\RulesComponent::createFromConfiguration() (line 73 of /home/aaasorg/public_html/web/modules/rules/src/Engine/RulesComponent.php)
#0 /home/aaasorg/public_html/web/core/includes/bootstrap.inc(164): _drupal_error_handler_real(2, 'Undefined array...', '/home/aaa...', 73)
#1 /home/aaasorg/public_html/web/modules/rules/src/Engine/RulesComponent.php(73): _drupal_error_handler(2, 'Undefined array...', '/home/aaa...', 73)
#2 /home/aaaorg/public_html/web/modules/rules/src/Entity/RulesComponentConfig.php(137): Drupal\rules\Engine\RulesComponent::createFromConfiguration(Array)
#3 /home/aaaorg/public_html/web/modules/rules/src/Entity/RulesComponentConfig.php(115): Drupal\rules\Entity\RulesComponentConfig->getComponent()
#4 /home/aaaorg/public_html/web/modules/rules/src/Controller/RulesComponentListBuilder.php(74): Drupal\rules\Entity\RulesComponentConfig->getExpression()
#5 /home/aaaorg/public_html/web/core/lib/Drupal/Core/Entity/EntityListBuilder.php(242): Drupal\rules\Controller\RulesComponentListBuilder->buildRow(Object(Drupal\rules\Entity\RulesComponentConfig))
#6 /home/aaasorg/public_html/web/modules/rules/src/Controller/RulesComponentListBuilder.php(148): Drupal\Core\Entity\EntityListBuilder->render()
#7 /home/aaaorg/public_html/web/core/lib/Drupal/Core/Entity/Controller/EntityListController.php(23): Drupal\rules\Controller\RulesComponentListBuilder->render()
#8 [internal function]: Drupal\Core\Entity\Controller\EntityListController->listing('rules_component')
#9 /home/aaaorg/public_html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#10 /home/aaaorg/public_html/web/core/lib/Drupal/Core/Render/Renderer.php(592): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#11 /home/aaaorg/public_html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#12 /home/aaaorg/public_html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#13 /home/aaaorg/public_html/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#14 /home/aaaorg/public_html/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#15 /home/aaaorg/public_html/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#16 /home/aaaorg/public_html/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#17 /home/aaaorg/public_html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#18 /home/aaaorg/public_html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#19 /home/aaaorg/public_html/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#20 /home/aaaorg/public_html/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#21 /home/aaaorg/public_html/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#22 /home/aaaorg/public_html/web/core/lib/Drupal/Core/DrupalKernel.php(704): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#23 /home/aaaorg/public_html/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#24 {main}

๐Ÿ› Bug report
Status

Closed: cannot reproduce

Component

Rules Core

Created by

๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom freelylw

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

Merge Requests

Comments & Activities

  • Issue created by @freelylw
  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom freelylw
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia chetan 11

    chetan 11 โ†’ made their first commit to this issueโ€™s fork.

  • Merge request !19fixed โ†’ (Open) created by chetan 11
  • Open in Jenkins โ†’ Open on Drupal.org โ†’
    Core: 9.5.5 + Environment: PHP 7.3 & MySQL 5.7
    last update over 1 year ago
    414 pass
  • Status changed to Needs review over 1 year ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia chetan 11

    Hi,
    I have fixed the above error on my local setup, please check the raised MR solution.
    Thanks.

  • Status changed to Postponed: needs info over 1 year ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States tr Cascadia

    "after I imported the code to create a rule components, then I click the "components" button, I got this blank screen with error."

    I don't know what that first part means, but it sounds like you tried to import an invalid configuration file. Please show the "code" you imported and describe how you imported it.

    The MR is wrong. First, it mostly just incorrectly changes indentation, but failing silently on an invalid configuration is not somethnig we should be doing. I would rather have a stack trace like you get now rather than ignoring the error.

  • Status changed to Closed: cannot reproduce about 1 year ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States tr Cascadia

    The requested information has not been provided.

Production build 0.71.5 2024