Skip to content
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

An exception has been thrown during the rendering of a template ("Unable to generate a URL for the named route "" as such route does not exist."). #233

Open
Manalro opened this issue Mar 5, 2018 · 1 comment

Comments

@Manalro
Copy link

Manalro commented Mar 5, 2018

I've been trying to install the adminLTE templateinto my symfony project but i have encountred several problems.

  • First, I was using the 1.3 version of adminLTE, I followed the documentation (https://github.com/avanzu/AdminThemeBundle) step by step and when I tried to launch the server to see of it did work i got the following error : Unable to find template "AvanzuAdminThemeBundle:layout:default-layout.html.twig"
  • Second, I tried to see the previous issues that were open for the same reason and I tried to do as instructed in the different comments : i launched these two commands ( npm install uglify-js -g and npm install uglifycss -g ) and still had the same problem
  • Then i decided to swithch branch and try to install the dev-master, and again I did as instructed in the doc but when I tried to use the layout I got this error : An exception has been thrown during the rendering of a template ("Unable to generate a URL for the named route "" as such route does not exist.")
    It also says that there's a :
    Twig_Error_Runtime
    in vendor\avanzu\admin-theme-bundle\Resources\views\layout\default-layout.html.twig (line 42)

    line 42 :

I followed the documentation still I'm not able to install the template, I don't know where the problem is, can you please help ?

Component Version
Symfony version Symfony 3.4
AdminThemeBundle 1.3.5/dev-master
Operating System Windows
@kevinpapst
Copy link
Contributor

For the first problem read the PR #216 - its related to an incompatible twig syntax for SF3.4 and 4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants