KnpLabs / KnpMenuBundle

Object Oriented menus for your Symfony project.
http://knplabs.com
MIT License
1.4k stars 203 forks source link

Version 3.3.0 -> 3.4.0 breaks twig function knp_menu_render #476

Closed evotodi closed 6 months ago

evotodi commented 6 months ago

PHP: 8.3 Symfony: 7.0 knplabs/knp-menu-bundle: 3.4.0 knplabs/knp-menu: 3.5.0

When upgrading from 3.3.0 to 3.4.0 a 500 error occurs stating Uncaught PHP Exception Twig\Error\LoaderError: "There are no registered paths for namespace "KnpMenu"." at _baseRightMenu-block.html.twig line 21

Line 21 of the file _baseRightMenu-block.html.twig is {{ knp_menu_render('baseRight', {'allow_safe_labels': true}) }}

Removing knplabs/knp-menu-bundle and re-requiring does not fix the issue. Removing the knplabs vendor folder and running composer update re-installs but does not fix the issue. Please help.

evotodi commented 6 months ago

Thank you guys for the very fast response and fix.