Infinite recursion when autoloading is enabled

Created on 27 October 2025, 15 days ago

Problem/Motivation

When autoloading is enabled (disable_auto_loading: false in site_settings.config), and with the metatag module enabled, rebuilding caches leads to infinite recursion on every page load.

site_settings_preprocess() triggers FlattenedSiteSettingsLoader::rebuildCache()
FlattenedSiteSettingsLoader::getValue() triggers MetatagEntityFieldItemList::computeValue(), which down the line triggers MetatagToken::replace(), which down the line triggers site_settings_tokens(), which down the line triggers site_settings_token_info(), which down the line triggers FlattenedSiteSettingsLoader::loadAll(), which triggers FlattenedSiteSettingsLoader::rebuildCache() again.

Proposed resolution

I proposed 📌 Remove the canonical route of the site setting entity type Active , but that creates other problems, such as breaking translations.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇧🇪Belgium dieterholvoet Brussels

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024