LogicException: The controller result claims to be providing relevant cache metadata, but leaked metadata was detected

Created on 15 June 2023, over 2 years ago

Problem/Motivation

Getting below error for anonymous user on /system/menu/main/linkset page.
"LogicException: The controller result claims to be providing relevant cache metadata, but leaked metadata was detected. Please ensure you are not rendering content too early. Returned object class: Drupal\Core\Cache\CacheableResponse. in Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (line 154 of /app/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php)."

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇮🇳India Binoli Lalani Gujarat

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

Comments & Activities

  • Issue created by @Binoli Lalani
  • Open on Drupal.org →
    Core: 9.5.x + Environment: PHP 7.3 & MySQL 5.7
    last update over 2 years ago
    Waiting for branch to pass
  • Open on Drupal.org →
    Core: 9.5.x + Environment: PHP 7.3 & MySQL 5.7
    last update over 2 years ago
    Waiting for branch to pass
  • 🇮🇳India Binoli Lalani Gujarat

    Hello,

    I am attaching 2 patches as code is not latest either in git or download module with composer.

    1. 3366988-2-composer.patch patch is for downloading module by composer
    2. 3366988-2-composer.patch patch is for cloning module with git

    Please review.

  • Issue was unassigned.
  • Status changed to Needs review over 2 years ago
Production build 0.71.5 2024