Investigate whether LanguageRequestSubscriber::onContainerInitializeSubrequestFinished() is still required and appropriate

Created on 20 November 2025, 2 months ago

Problem/Motivation

Discovered while investigating 🐛 Uninstalling and installing modules during config:import can lead to fatal errors Active

LanguageRequestSubscriber::onContainerInitializeSubrequestFinished gets triggered very early on container rebuild which can cause havoc in some scenarios as described in #3549397, especially when the language-user-admin (LanguageNegotiationUserAdmin) is enabled since it ends up calling a lot of hooks at a time when the container is still unstable.

The current implementation of this listener originates from 🐛 Clearing cache via UI in translated language resets config translation of field labels to default language Fixed .
Interestingly the corresponding test from ConfigTranslationCacheTest.php passes even after removing the listener.
We should investigate why the test passes without the subscriber and re-evaluate whether this event listener should still exist, should be adjusted, or is no longer the proper solution.

Steps to reproduce

N/A - this issue concerns architectural behavior triggered during container rebuilds.

Proposed resolution

To be determined

Remaining tasks

TODO

User interface changes

TODO

Introduced terminology

TODO

API changes

TODO

Data model changes

TODO

Release notes snippet

TODO

📌 Task
Status

Active

Version

11.0 🔥

Component

language.module

Created by

🇧🇪Belgium herved

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