-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
BUG: KNP Menu: Unable to find template "knp_menu.html.twig" #21281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you fork the Symfony Standard Edition and make the changes that are necessary to reproduce your issue? |
I can confirm the problem for Symfony 3.2.2 - "solved" after downgrading symfony/symfony to 3.2.1 |
@umulmrum Can you describe which steps we need to do to reproduce your issue? |
@xabbuh I haven't managed yet to reproduce the issue with a fork of the standard edition. "Unable to find template "knp_menu.html.twig" (looked into: [my document root]/vendor/symfony/symfony/src/Symfony/Bridge/Twig/Resources/views/Form) in AppBundle::menu.html.twig at line 1." Looks like only the form directory is considered, but I have no clue why. Possibly this problem is related to #19586 |
@xabbuh OK, it was actually quite easy to reproduce. Just follow the instructions in the KnpMenuBundle docs to add a menu in the most simple way, and additionally set another menu template in config.yml. But what is important: The error only occurs if the KnpMenuBundle is registered AFTER the TwigBundle in AppKernel. I tend to sort things alphabetically instead of appending at the end, but didn't do this first when trying to reproduce. I pushed the failing app state to https://github.com/umulmrum/symfony-standard/tree/3.2 |
This PR was merged into the 2.7 branch. Discussion ---------- [TwigBundle] do not lose already set method calls | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #21281 | License | MIT | Doc PR | Commits ------- cb1a4b7 [TwigBundle] do not lose already set method calls
@xabbuh I merged 2.7 into 3.2 locally and the problem is gone. Thanks for the really quick fix! |
Uh oh!
There was an error while loading. Please reload this page.
The error appeared after upgrading composer that upgraded Symfony to version 2.8.16.
Falling back to Symfony 2.8.15 "solves" the error.
What have I to do?
I opened this same issue on the KNP Menu repository, too.
The text was updated successfully, but these errors were encountered: