Missing route cachability metadata in Claro Compact

Created on 9 January 2025, 3 months ago

Problem/Motivation

In Drupal 10.4 I am seeing this message, after applying the patch from 🐛 cache problem after updated to 10.4.0 Active :

Error message
User warning: Trying to overwrite a cache redirect for "entity_view:block:claro_compact_breadcrumbs:[languages:language_interface]=en:[theme]=claro_compact:[user.permissions]=is-admin" with one that has nothing in common, old one at address "languages:language_interface, theme, user.permissions" was pointing to "url.path.parent, url.path.is_front, route", new one points to "url". in Drupal\Core\Cache\VariationCache->set() (line 138 of core/lib/Drupal/Core/Cache/VariationCache.php).

Steps to reproduce

Proposed resolution

Maybe 🐛 Missing route cachability metadata. Active is useful?

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇩🇰Denmark ressa Copenhagen

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

Comments & Activities

  • Issue created by @ressa
  • 🇩🇰Denmark ressa Copenhagen
  • 🇩🇰Denmark ressa Copenhagen
  • 🇩🇰Denmark ressa Copenhagen

    The cause is missing route cachability metadata in civicrm/src/CivicrmBreadcrumbBuilder.php, so not a Drupal core issue.

    Tip: To find the problem, go to the contrib modules folder, do this search, and look for the word "Bread":

    $ grep -liR "RouteMatchInterface" .
    ./admin_toolbar/admin_toolbar_links_access_filter/admin_toolbar_links_access_filter.module
    ./admin_toolbar/admin_toolbar_search/admin_toolbar_search.module
    ./admin_toolbar/admin_toolbar_tools/src/AdminToolbarToolsHelper.php
    ./admin_toolbar/admin_toolbar_tools/admin_toolbar_tools.module
    ./admin_toolbar/admin_toolbar.module
    ./civicrm_entity/src/Plugin/views/argument/Date.php
    ./civicrm/src/CivicrmBreadcrumbBuilder.php
    ./civicrm/modules/civicrmtheme/src/Theme/CivicrmThemeNegotiator.php
    
Production build 0.71.5 2024