liip / LiipThemeBundle

Provides theming support for Symfony bundles
MIT License
290 stars 76 forks source link

Delivering wrong theme when Symfony2 has to build up the cache #6

Open ebi opened 13 years ago

ebi commented 13 years ago

For some reason on the very first request, after cleaning the cache we always get the default theme. That is either a bug in the cookie detection or the activetheme.

biozshock commented 8 years ago

Experiencing same issue. Debugged till here: https://github.com/liip/LiipThemeBundle/blob/master/Assetic/TwigFormulaLoader.php#L55 A line above causes theme to be changed when loading something related to Assetic, and never sets active theme back.

Quick fix: you should make so webserver env configs do not have

liip_theme:
    assetic_integration: true