Closed benr77 closed 6 years ago
I've just upgraded my project from Twig 1.x to Twig 2.x and I'm getting the following errors about missing blocks:
Block "box_before" on template "AvanzuAdminThemeBundle:Widgets:box-widget.html.twig" does not exist.
This is in file
vendor/avanzu/admin-theme-bundle/Resources/views/Widgets/box-widget.html.twig at line 2
I'm using the latest Beta 5 release.
I think this is because Twig 1.x silently ignores undefined blocks, whereas Twig 2.x throws an exception.
The issue crops up for all the blocks defined for the widget - e.g. box_tools, box_after etc etc
submit a pull request?
@benr77 the PR #169 has been merged, this resolve all your issue or still present? Thanks
Yes this was all that was needed.
I've just upgraded my project from Twig 1.x to Twig 2.x and I'm getting the following errors about missing blocks:
Block "box_before" on template "AvanzuAdminThemeBundle:Widgets:box-widget.html.twig" does not exist.
This is in file
vendor/avanzu/admin-theme-bundle/Resources/views/Widgets/box-widget.html.twig at line 2
I'm using the latest Beta 5 release.
I think this is because Twig 1.x silently ignores undefined blocks, whereas Twig 2.x throws an exception.
The issue crops up for all the blocks defined for the widget - e.g. box_tools, box_after etc etc