Undefined array key CacheBackendWrapper

Created on 25 June 2024, 6 months ago
Updated 12 August 2024, 4 months ago

Problem/Motivation

Error on the last version 2.1.0

Warning: Undefined array key "values:crop:18911" in Drupal\cache_metrics\CacheBackendWrapper->getMultiple() (line 90 of /mnt/www/html/drupal/docroot/modules/contrib/cache_metrics/src/CacheBackendWrapper.php)

Full error:

Warning: Undefined array key "values:menu_link_content:326" in Drupal\cache_metrics\CacheBackendWrapper->getMultiple() (line 90 of /mnt/www/html/drupal/docroot/modules/contrib/cache_metrics/src/CacheBackendWrapper.php) #0 /mnt/www/html/drupal/docroot/core/includes/bootstrap.inc(164): _drupal_error_handler_real(2, 'Undefined array...', '/mnt/www/html/d...', 90) #1 /mnt/www/html/drupal/docroot/modules/contrib/cache_metrics/src/CacheBackendWrapper.php(90): _drupal_error_handler(2, 'Undefined array...', '/mnt/www/html/d...', 90) #2 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php(1099): Drupal\cache_metrics\CacheBackendWrapper->getMultiple(Array) #3 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php(391): Drupal\Core\Entity\ContentEntityStorageBase->getFromPersistentCache(Array) #4 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/Entity/EntityStorageBase.php(312): Drupal\Core\Entity\Sql\SqlContentEntityStorage->doLoadMultiple(Array) #5 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/Entity/EntityStorageBase.php(262): Drupal\Core\Entity\EntityStorageBase->loadMultiple(Array) #6 /mnt/www/html/drupal/docroot/modules/contrib/menu_item_extras/src/Service/MenuLinkTreeHandler.php(52): Drupal\Core\Entity\EntityStorageBase->load('326') #7 /mnt/www/html/drupal/docroot/modules/contrib/menu_item_extras/src/Service/MenuLinkTreeHandler.php(146): Drupal\menu_item_extras\Service\MenuLinkTreeHandler->getMenuLinkItemEntity(Object(Drupal\menu_link_content\Plugin\Menu\MenuLinkContent)) #8 /mnt/www/html/drupal/docroot/modules/contrib/menu_item_extras/src/Service/MenuLinkTreeHandler.php(153): Drupal\menu_item_extras\Service\MenuLinkTreeHandler->processMenuLinkTree(Array, 'main', 1, false) #9 /mnt/www/html/drupal/docroot/modules/contrib/menu_item_extras/menu_item_extras.module(244): Drupal\menu_item_extras\Service\MenuLinkTreeHandler->processMenuLinkTree(Array, 'main') #10 [internal function]: menu_item_extras_preprocess_menu(Array, 'menu', Array) #11 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/Theme/ThemeManager.php(261): call_user_func_array('menu_item_extra...', Array) #12 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/Render/Renderer.php(480): Drupal\Core\Theme\ThemeManager->render('menu', Array) #13 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/Render/Renderer.php(240): Drupal\Core\Render\Renderer->doRender(Array, false) #14 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/Template/TwigExtension.php(475): Drupal\Core\Render\Renderer->render(Array) #15 /mnt/tmp/drupal/php_storage/twig/68772f5/drupal/twig/667a7c7a8f350_block.twig_KQQ25Md8LCz984gZ-kGaRbxK3/rd6b7O1JK6LPvtm035J1hutsmX0auDsT5s_QO9naD0s.php(119): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true) #16 /mnt/www/html/drupal/vendor/twig/twig/src/Template.php(171): __TwigTemplate_de42cf4658769d4443ad7d40c36b5fa3->block_content(Array, Array) #17 /mnt/tmp/drupal/php_storage/twig/68772f5/drupal/twig/667a7c7a8f350_block.twig_KQQ25Md8LCz984gZ-kGaRbxK3/rd6b7O1JK6LPvtm035J1hutsmX0auDsT5s_QO9naD0s.php(82): Twig\Template->displayBlock('content', Array, Array) #18 /mnt/www/html/drupal/vendor/twig/twig/src/Template.php(394): __TwigTemplate_de42cf4658769d4443ad7d40c36b5fa3->doDisplay(Array, Array) #19 /mnt/www/html/drupal/vendor/twig/twig/src/Template.php(367): Twig\Template->displayWithErrorHandling(Array, Array) #20 /mnt/tmp/drupal/php_storage/twig/68772f5/drupal/twig/667a7c7a8f350_block--system-menu-block.__F94h4e5uUvqVcKbvRxAZjCoZ/_iCLS-06iE8qi3ZGMvAbjcP-A8QQNrtRgDpputwDbsE.php(39): Twig\Template->display(Array) #21 /mnt/www/html/drupal/vendor/twig/twig/src/Template.php(394): __TwigTemplate_784a8d24e753c4c1cb039c49a6711032->doDisplay(Array, Array) #22 /mnt/www/html/drupal/vendor/twig/twig/src/Template.php(367): Twig\Template->displayWithErrorHandling(Array, Array) #23 /mnt/www/html/drupal/vendor/twig/twig/src/Template.php(379): Twig\Template->display(Array) #24 /mnt/www/html/drupal/vendor/twig/twig/src/TemplateWrapper.php(38): Twig\Template->render(Array) #25 /mnt/www/html/drupal/docroot/core/themes/engines/twig/twig.engine(39): Twig\TemplateWrapper->render(Array) #26 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/Theme/ThemeManager.php(348): twig_render_template('themes/contrib/...', Array) #27 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/Render/Renderer.php(480): Drupal\Core\Theme\ThemeManager->render('block', Array) #28 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/Render/Renderer.php(493): Drupal\Core\Render\Renderer->doRender(Array) #29 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/Render/Renderer.php(240): Drupal\Core\Render\Renderer->doRender(Array, false) #30 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/Template/TwigExtension.php(475): Drupal\Core\Render\Renderer->render(Array) #31 /mnt/tmp/drupal/php_storage/twig/68772f5/drupal/twig/667a7c7a8f350_page.html.twig_qeaSD59VKYRrvnN6pZfUY0GGi/jUezgRXLExOWH22Z4sfgKGfCTRciP87HztR1ATVY-yI.php(359): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true) #32 /mnt/www/html/drupal/vendor/twig/twig/src/Template.php(171): __TwigTemplate_ed48733a22b30d22a70f417a13b00e00___481394586->block_responsive_menu(Array, Array) #33 /mnt/www/html/drupal/vendor/twig/twig/src/Template.php(243): Twig\Template->displayBlock('responsive_menu', Array, Array, true) #34 /mnt/tmp/drupal/php_storage/twig/68772f5/drupal/twig/667a7c7a8f350_header.twig_UWe6cqmHUAG0pKeetbet8HOKy/ffA6Bt6KPivYUmN1Z8mrcTN2q8BTer1PJ2jQB2rpNA0.php(182): Twig\Template->renderBlock('responsive_menu', Array, Array) #35 /mnt/www/html/drupal/vendor/twig/twig/src/Template.php(394): __TwigTemplate_29939035caefcfee7c3ac05c09556c5e->doDisplay(Array, Array) #36 /mnt/www/html/drupal/vendor/twig/twig/src/Template.php(367): Twig\Template->displayWithErrorHandling(Array, Array) #37 /mnt/tmp/drupal/php_storage/twig/68772f5/drupal/twig/667a7c7a8f350_page.html.twig_qeaSD59VKYRrvnN6pZfUY0GGi/jUezgRXLExOWH22Z4sfgKGfCTRciP87HztR1ATVY-yI.php(278): Twig\Template->display(Array, Array) #38 /mnt/www/html/drupal/vendor/twig/twig/src/Template.php(394): __TwigTemplate_ed48733a22b30d22a70f417a13b00e00___481394586->doDisplay(Array, Array) #39 /mnt/www/html/drupal/vendor/twig/twig/src/Template.php(367): Twig\Template->displayWithErrorHandling(Array, Array) #40 /mnt/tmp/drupal/php_storage/twig/68772f5/drupal/twig/667a7c7a8f350_page.html.twig_qeaSD59VKYRrvnN6pZfUY0GGi/jUezgRXLExOWH22Z4sfgKGfCTRciP87HztR1ATVY-yI.php(46): Twig\Template->display(Array) #41 /mnt/www/html/drupal/vendor/twig/twig/src/Template.php(394): __TwigTemplate_ed48733a22b30d22a70f417a13b00e00->doDisplay(Array, Array) #42 /mnt/www/html/drupal/vendor/twig/twig/src/Template.php(367): Twig\Template->displayWithErrorHandling(Array, Array) #43 /mnt/tmp/drupal/php_storage/twig/68772f5/drupal/twig/667a7c7a8f350_page--user--register-nd.h_ar-uYh1El6Y0iuBzOMCeMKIw8/oLUnB6FbLoN-kGvOt7DvqAtICk0IPpXNZouxGHXxs3s.php(44): Twig\Template->display(Array, Array) #44 /mnt/www/html/drupal/vendor/twig/twig/src/Template.php(394): __TwigTemplate_5d3ac8fbaecdb1ed056fba2d3e3d929e->doDisplay(Array, Array) #45 /mnt/www/html/drupal/vendor/twig/twig/src/Template.php(367): Twig\Template->displayWithErrorHandling(Array, Array) #46 /mnt/www/html/drupal/vendor/twig/twig/src/Template.php(379): Twig\Template->display(Array) #47 /mnt/www/html/drupal/vendor/twig/twig/src/TemplateWrapper.php(38): Twig\Template->render(Array) #48 /mnt/www/html/drupal/docroot/core/themes/engines/twig/twig.engine(39): Twig\TemplateWrapper->render(Array) #49 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/Theme/ThemeManager.php(348): twig_render_template('themes/custom/s...', Array) #50 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/Render/Renderer.php(480): Drupal\Core\Theme\ThemeManager->render('page', Array) #51 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/Render/Renderer.php(240): Drupal\Core\Render\Renderer->doRender(Array, false) #52 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/Template/TwigExtension.php(475): Drupal\Core\Render\Renderer->render(Array) #53 /mnt/tmp/drupal/php_storage/twig/68772f5/drupal/twig/667a7c7a8f350_html.html.twig_7nNoZ0C-tK-c74IV-wIC7TojD/CPXpB2lSK2-QIc9Hvcn3Yv1S9rr0JqKWff3rlsReM-o.php(80): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true) #54 /mnt/www/html/drupal/vendor/twig/twig/src/Template.php(394): __TwigTemplate_7678d2f577d67f83280754ca4ed8c167->doDisplay(Array, Array) #55 /mnt/www/html/drupal/vendor/twig/twig/src/Template.php(367): Twig\Template->displayWithErrorHandling(Array, Array) #56 /mnt/www/html/drupal/vendor/twig/twig/src/Template.php(379): Twig\Template->display(Array) #57 /mnt/www/html/drupal/vendor/twig/twig/src/TemplateWrapper.php(38): Twig\Template->render(Array) #58 /mnt/www/html/drupal/docroot/core/themes/engines/twig/twig.engine(39): Twig\TemplateWrapper->render(Array) #59 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/Theme/ThemeManager.php(348): twig_render_template('themes/custom/s...', Array) #60 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/Render/Renderer.php(480): Drupal\Core\Theme\ThemeManager->render('html', Array) #61 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/Render/Renderer.php(240): Drupal\Core\Render\Renderer->doRender(Array, false) #62 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(158): Drupal\Core\Render\Renderer->render(Array) #63 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/Render/Renderer.php(627): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\@closure() #64 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(159): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #65 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch)) #66 [internal function]: Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #67 /mnt/www/html/drupal/docroot/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #68 /mnt/www/html/drupal/vendor/symfony/http-kernel/HttpKernel.php(186): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view') #69 /mnt/www/html/drupal/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #70 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #71 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #72 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #73 /mnt/www/html/drupal/vendor/asm89/stack-cors/src/Cors.php(53): Drupal\Core\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #74 /mnt/www/html/drupal/docroot/modules/contrib/shield/src/ShieldMiddleware.php(270): Asm89\Stack\Cors->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #75 /mnt/www/html/drupal/docroot/modules/contrib/shield/src/ShieldMiddleware.php(137): Drupal\shield\ShieldMiddleware->bypass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #76 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\shield\ShieldMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #77 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #78 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #79 /mnt/www/html/drupal/docroot/modules/contrib/http_headers_cleaner/src/Middleware/HttpHeadersCleanerMiddleware.php(55): Drupal\Core\StackMiddleware\AjaxPageState->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #80 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\http_headers_cleaner\Middleware\HttpHeadersCleanerMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #81 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/DrupalKernel.php(704): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #82 /mnt/www/html/drupal/docroot/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #83 @main.
🐛 Bug report
Status

Fixed

Version

2.1

Component

Code

Created by

🇪🇸Spain eduardo morales alberti Spain, 🇪🇺

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

Comments & Activities

Production build 0.71.5 2024