TypedConfigManager::createFromNameAndData(): Argument #2 ($config_data) must be of type array, bool given

Created on 7 November 2023, about 1 year ago
Updated 31 May 2024, 6 months ago

Problem/Motivation

I installed the module for the first time.
When i go to admin/config/search/advanced-datalayer/page-variables page i get this error:

The website encountered an unexpected error. Please try again later.
TypeError: Drupal\Core\Config\TypedConfigManager::createFromNameAndData(): Argument #2 ($config_data) must be of type array, bool given, called in /var/www/html/web/core/lib/Drupal/Core/Config/TypedConfigManager.php on line 78 in Drupal\Core\Config\TypedConfigManager->createFromNameAndData() (line 392 of core/lib/Drupal/Core/Config/TypedConfigManager.php).
Drupal\Core\Config\TypedConfigManager->createFromNameAndData('advanced_datalayer.advanced_datalayer_tag.site_Name', ) (Line: 78)
Drupal\Core\Config\TypedConfigManager->get('advanced_datalayer.advanced_datalayer_tag.site_Name') (Line: 169)
Drupal\config_translation\ConfigMapperManager->hasTranslatable('advanced_datalayer.advanced_datalayer_tag.site_Name') (Line: 273)
advanced_datalayer_check_plugins_configuration() (Line: 46)
advanced_datalayer_help('entity.advanced_datalayer_defaults.collection', Object) (Line: 97)
Drupal\help\Plugin\Block\HelpBlock->Drupal\help\Plugin\Block\{closure}(Object, 'advanced_datalayer') (Line: 405)
Drupal\Core\Extension\ModuleHandler->invokeAllWith('help', Object) (Line: 102)
Drupal\help\Plugin\Block\HelpBlock->build() (Line: 171)
Drupal\block\BlockViewBuilder::preRender(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 772)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 363)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 435)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 201)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 160)
__TwigTemplate_105f30bcc0edd02b64b0765504ef4981->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/gin/templates/page/page.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('page', Array) (Line: 422)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 201)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 87)
__TwigTemplate_62d0a679e611a61691d3b2608f08b2bc->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/contrib/gin/templates/html.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('html', Array) (Line: 422)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 201)
Drupal\Core\Render\Renderer->render(Array) (Line: 162)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 564)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 163)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 164)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 130)
Drupal\cdn\StackMiddleware\DuplicateContentPreventionMiddleware->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 709)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Steps to reproduce

Install module
Go to administration page

🐛 Bug report
Status

Closed: cannot reproduce

Version

2.0

Component

Code

Created by

🇮🇹Italy trickfun

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

Comments & Activities

  • Issue created by @trickfun
  • 🇱🇹Lithuania Kenniec Vilnius

    Hi trickfun,

    thank you for report, but unfortunately i can't reproduce this problem on clean installation of latest version of Drupal 10.1.x or 10.2.x

    Could you please add more details about your drupal build?

    Thank you in advance,
    Alex Lyzo

  • 🇮🇳India dineshkumarbollu

    Unable to reproduce the issue in Drupal 10.1 with php 8.1, Attaching Screenshot for reference and working as expected.Thanks

  • Status changed to Closed: cannot reproduce 6 months ago
  • 🇱🇹Lithuania Kenniec Vilnius
Production build 0.71.5 2024