nvalidArgumentException: Missing required data for typed configuration:

Created on 13 March 2025, 25 days ago

Problem/Motivation

When I try to configure Charts, I get:
Message InvalidArgumentException: Missing required data for typed configuration: charts.settings in Drupal\Core\Config\TypedConfigManager->get() (line 85 of /home/jamesrom/public_html/blogs/web/core/lib/Drupal/Core/Config/TypedConfigManager.php).

Steps to reproduce

Backtrace 	

#0 /home/jamesrom/public_html/blogs/web/core/modules/config_translation/src/ConfigMapperManager.php(177): Drupal\Core\Config\TypedConfigManager->get()
#1 /home/jamesrom/public_html/blogs/web/core/modules/config_translation/src/ConfigNamesMapper.php(457): Drupal\config_translation\ConfigMapperManager->hasTranslatable()
#2 /home/jamesrom/public_html/blogs/web/core/modules/config_translation/src/Access/ConfigTranslationOverviewAccess.php(110): Drupal\config_translation\ConfigNamesMapper->hasTranslatable()
#3 /home/jamesrom/public_html/blogs/web/core/modules/config_translation/src/Access/ConfigTranslationOverviewAccess.php(70): Drupal\config_translation\Access\ConfigTranslationOverviewAccess->doCheckAccess()
#4 [internal function]: Drupal\config_translation\Access\ConfigTranslationOverviewAccess->access()
#5 /home/jamesrom/public_html/blogs/web/core/lib/Drupal/Core/Access/AccessManager.php(160): call_user_func_array()
#6 /home/jamesrom/public_html/blogs/web/core/lib/Drupal/Core/Access/AccessManager.php(136): Drupal\Core\Access\AccessManager->performCheck()
#7 /home/jamesrom/public_html/blogs/web/core/lib/Drupal/Core/Access/AccessManager.php(93): Drupal\Core\Access\AccessManager->check()
#8 /home/jamesrom/public_html/blogs/web/core/lib/Drupal/Core/Menu/LocalTaskManager.php(327): Drupal\Core\Access\AccessManager->checkNamedRoute()
#9 /home/jamesrom/public_html/blogs/web/core/lib/Drupal/Core/Menu/LocalTaskManager.php(358): Drupal\Core\Menu\LocalTaskManager->getTasksBuild()
#10 /home/jamesrom/public_html/blogs/web/core/lib/Drupal/Core/Menu/Plugin/Block/LocalTasksBlock.php(106): Drupal\Core\Menu\LocalTaskManager->getLocalTasks()
#11 /home/jamesrom/public_html/blogs/web/core/modules/block/src/BlockViewBuilder.php(171): Drupal\Core\Menu\Plugin\Block\LocalTasksBlock->build()
#12 [internal function]: Drupal\block\BlockViewBuilder::preRender()
#13 /home/jamesrom/public_html/blogs/web/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php(107): call_user_func_array()
#14 /home/jamesrom/public_html/blogs/web/core/lib/Drupal/Core/Render/Renderer.php(825): Drupal\Core\Render\Renderer->doTrustedCallback()
#15 /home/jamesrom/public_html/blogs/web/core/lib/Drupal/Core/Render/Renderer.php(387): Drupal\Core\Render\Renderer->doCallback()
#16 /home/jamesrom/public_html/blogs/web/core/lib/Drupal/Core/Render/Renderer.php(459): Drupal\Core\Render\Renderer->doRender()
#17 /home/jamesrom/public_html/blogs/web/core/lib/Drupal/Core/Render/Renderer.php(203): Drupal\Core\Render\Renderer->doRender()
#18 /home/jamesrom/public_html/blogs/web/core/lib/Drupal/Core/Template/TwigExtension.php(484): Drupal\Core\Render\Renderer->render()
#19 /home/jamesrom/public_html/blogs/web/sites/default/files/php/twig/67d36006eff8a_page.html.twig_NI9mycMIIVgrZKPPdN_wBA2Gx/8-hUhBng46SxNeisBpxwRvmJyHOohS0mt_ee2c-kCQY.php(138): Drupal\Core\Template\TwigExtension->escapeFilter()
#20 /home/jamesrom/public_html/blogs/vendor/twig/twig/src/Template.php(388): __TwigTemplate_aed8ed89f1b29a09354d57fdb3a433b7->doDisplay()
#21 /home/jamesrom/public_html/blogs/vendor/twig/twig/src/Template.php(344): Twig\Template->yield()
#22 /home/jamesrom/public_html/blogs/vendor/twig/twig/src/Template.php(359): Twig\Template->display()
#23 /home/jamesrom/public_html/blogs/vendor/twig/twig/src/TemplateWrapper.php(51): Twig\Template->render()
#24 /home/jamesrom/public_html/blogs/web/core/themes/engines/twig/twig.engine(33): Twig\TemplateWrapper->render()
#25 /home/jamesrom/public_html/blogs/web/core/lib/Drupal/Core/Theme/ThemeManager.php(348): twig_render_template()
#26 /home/jamesrom/public_html/blogs/web/core/lib/Drupal/Core/Render/Renderer.php(446): Drupal\Core\Theme\ThemeManager->render()
#27 /home/jamesrom/public_html/blogs/web/core/lib/Drupal/Core/Render/Renderer.php(203): Drupal\Core\Render\Renderer->doRender()
#28 /home/jamesrom/public_html/blogs/web/core/lib/Drupal/Core/Template/TwigExtension.php(484): Drupal\Core\Render\Renderer->render()
#29 /home/jamesrom/public_html/blogs/web/sites/default/files/php/twig/67d36006eff8a_html.html.twig_87-k42Jx3ROE9WfWjroi-JBz-/-wml_fijJdNmkae3ziKqHwTJGMh8rCRDm_RKXxpUCA8.php(92): Drupal\Core\Template\TwigExtension->escapeFilter()
#30 /home/jamesrom/public_html/blogs/vendor/twig/twig/src/Template.php(388): __TwigTemplate_d64a0d98c968661f09d37ca58a0fb206->doDisplay()
#31 /home/jamesrom/public_html/blogs/vendor/twig/twig/src/Template.php(344): Twig\Template->yield()
#32 /home/jamesrom/public_html/blogs/vendor/twig/twig/src/Template.php(359): Twig\Template->display()
#33 /home/jamesrom/public_html/blogs/vendor/twig/twig/src/TemplateWrapper.php(51): Twig\Template->render()
#34 /home/jamesrom/public_html/blogs/web/core/themes/engines/twig/twig.engine(33): Twig\TemplateWrapper->render()
#35 /home/jamesrom/public_html/blogs/web/core/lib/Drupal/Core/Theme/ThemeManager.php(348): twig_render_template()
#36 /home/jamesrom/public_html/blogs/web/core/lib/Drupal/Core/Render/Renderer.php(446): Drupal\Core\Theme\ThemeManager->render()
#37 /home/jamesrom/public_html/blogs/web/core/lib/Drupal/Core/Render/Renderer.php(203): Drupal\Core\Render\Renderer->doRender()
#38 /home/jamesrom/public_html/blogs/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(158): Drupal\Core\Render\Renderer->render()
#39 /home/jamesrom/public_html/blogs/web/core/lib/Drupal/Core/Render/Renderer.php(593): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}()
#40 /home/jamesrom/public_html/blogs/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(153): Drupal\Core\Render\Renderer->executeInRenderContext()
#41 /home/jamesrom/public_html/blogs/web/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse()
#42 /home/jamesrom/public_html/blogs/vendor/symfony/event-dispatcher/EventDispatcher.php(246): Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray()
#43 /home/jamesrom/public_html/blogs/vendor/symfony/event-dispatcher/EventDispatcher.php(206): Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}()
#44 /home/jamesrom/public_html/blogs/vendor/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
#45 /home/jamesrom/public_html/blogs/vendor/symfony/http-kernel/HttpKernel.php(188): Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
#46 /home/jamesrom/public_html/blogs/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#47 /home/jamesrom/public_html/blogs/web/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle()
#48 /home/jamesrom/public_html/blogs/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#49 /home/jamesrom/public_html/blogs/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#50 /home/jamesrom/public_html/blogs/web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
#51 /home/jamesrom/public_html/blogs/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(116): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
#52 /home/jamesrom/public_html/blogs/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(90): Drupal\page_cache\StackMiddleware\PageCache->pass()
#53 /home/jamesrom/public_html/blogs/web/modules/contrib/cleantalk/src/EventSubscriber/BootSubscriber.php(206): Drupal\page_cache\StackMiddleware\PageCache->handle()
#54 /home/jamesrom/public_html/blogs/web/core/modules/ban/src/BanMiddleware.php(50): Drupal\cleantalk\EventSubscriber\BootSubscriber->handle()
#55 /home/jamesrom/public_html/blogs/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\ban\BanMiddleware->handle()
#56 /home/jamesrom/public_html/blogs/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#57 /home/jamesrom/public_html/blogs/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#58 /home/jamesrom/public_html/blogs/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#59 /home/jamesrom/public_html/blogs/web/core/lib/Drupal/Core/DrupalKernel.php(709): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#60 /home/jamesrom/public_html/blogs/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#61 {main}

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

5.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States tjtj

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

Comments & Activities

  • Issue created by @tjtj
  • πŸ‡ΊπŸ‡ΈUnited States tjtj
  • πŸ‡ΊπŸ‡ΈUnited States andileco

    Thank you for reporting. What version of Drupal are you on? What are the steps you took before the error occurred? Did you already have charts installed?

  • πŸ‡ΊπŸ‡ΈUnited States tjtj

    11.1.4.
    I get a message in reports that I need a plugin.

    Chart.js Library
    Not Installed
    You are missing the Chart.js library in your Drupal installation directory and you have opted not to use a CDN. Please either enable use of the CDN in the Chart Settings under the Advanced tab or see the README file inside charts_chartjs for instructions to install the library.

    So I went the Charts setting to fix this, and pow!

  • πŸ‡ΊπŸ‡ΈUnited States tjtj

    Please provide some info on how to install the chart.js library too.

  • πŸ‡ΊπŸ‡ΈUnited States andileco

    For that, please check out the README.md in charts_chartjs. I'll look into this issue.

  • πŸ‡ΊπŸ‡ΈUnited States andileco

    I've tried to replicate this and haven't been able to. Any more ideas how I can get it to fail?

  • πŸ‡ΊπŸ‡ΈUnited States tjtj

    where do I get charts_chartjs?

  • πŸ‡ΊπŸ‡ΈUnited States andileco

    It's inside the charts module: charts/modules/charts_chartjs/README.md

  • πŸ‡ΊπŸ‡ΈUnited States tjtj

    That is really complicated. Shouldn't charts install the necessary library for me?

  • πŸ‡ΊπŸ‡ΈUnited States andileco

    Some people need that build step where they can have Composer pull in the libraries. You can also just place the files you need inside a properly named libraries directory. Or you can use the CDN option. There are other modules that can help install libraries, too.

    I'm not sure how you got to where you are, as I tried on a fresh site and didn't experience any issues. But if you wanted to start fresh, you could try uninstalling and reinstalling Charts, you can go to /admin/config/content/charts, select your chosen charting library, hit save, then visit the "Advanced" tab and make sure the CDN is enabled.

    Hope this helps!

  • πŸ‡ΊπŸ‡ΈUnited States tjtj

    I went through the steps in README.md, in /public_html/blogs/web/modules/contrib/charts/modules/charts_chartjs, but I do not get a charts library. The last step gives:

    -bash: npm-asset/chartjs-adapter-date-fns:^3.0: No such file or directory
    -bash: npm-asset/chartjs-plugin-datalabels:^2.0: No such file or directory

    I tried both ways in composer.json.

    "extra": {
        "installer-types": ["npm-asset"],
        "installer-paths": {
            "web/libraries/chart.js": ["npm-asset/chart.js"],
            "web/libraries/chartjs-adapter-date-fns": [
              "npm-asset/chartjs-adapter-date-fns"
            ],
            "web/libraries/chartjs-plugin-datalabels": [
              "npm-asset/chartjs-plugin-datalabels"
            ],
        },
    }
    
    NOTE: If this isn't working, try instead adding:
    "extra": {
        "installer-types": ["npm-asset"],
        "installer-paths": {
            ...
            "web/libraries/{$name}": ["type:drupal-library", "vendor:npm-asset"]
        },
    }
    

    I reinstalled charts, and CDN was selected. And the error is gone. Sorry about bothering you.

  • πŸ‡ΊπŸ‡ΈUnited States bluegeek9

    I think the issue has been resolved.

Production build 0.71.5 2024