You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I realize this is an old post, but I ran into this exact problem today. Everything appears to work fine when I don't use ESI. As soon as I call render_esi, the locale blows up and that breaks everything.
I spent quite a bit of time today trying to figure out why my locale kept changing to en@vendor-theme when using render_esi. I finally pinpointed it when I realized it was appending my theme name (e.g., vendor/theme) to the actual locale. Unfortunately, the only way I've been able to fix this is by removing this bundle.
Thinking back on this, I also encountered the bug months ago before using ESI. Previewing errors with the Symfony FrameworkBundle's ErrorController also seems to trigger it.
For what it's worth, I'm also using Sulu and the SuluThemeBundle, But this appears to be a bug with this bundle and not Sulu.
As soon as I'm using render_esi in a template, I get a changed default language (defaultlocale@theme-name) in the symfony profiler.
That's weird and symfony is using the correct selected language as fallback.
If I remove render_esi from the template all works fine.
The text was updated successfully, but these errors were encountered: