phiamo / MopaBootstrapBundle

Easy integration of twitters bootstrap into symfony2
http://bootstrap.mohrenweiserpartner.de
711 stars 349 forks source link

Error when using the most recent 1.* Twig version (1.42.0, session_flash issue) #1244

Open DaniFuchoBasetis opened 5 years ago

DaniFuchoBasetis commented 5 years ago

The current bundle (version 3.3.0) uses session_flash and something has changed in the most recent version twig/twig (1.42.0) that raises an error.

Workaround: Forcing my site's composer.json to explicitely use twig/twig 1.41.0 temporary solves it.

jmeyo commented 5 years ago

Just to confirm that I had the same problem, can't really dig into it, but the error was not clear indeed:

Unknown "flash" function. Did you mean "sonata_flashmessages_get", "sonata_flashmessages_types", "mopa_bootstrap_flash_mapping"?

Workaround is fine for me for now