I have a strange problem. I installed and configured SonataUserBundle to work with FosUserBundle and SonataAdminBundle. Installed went without a problem, and everything seems to work fine, except when I create another user through the sonataUserBundle web page. As soon as I create a user (and it is created when I look in the database), I no longer see the list of users. When I click to return to the list of users, I get the following error:
An exception has been thrown during the rendering of a template ("Unable to generate a URL for the named route "page_slug" as such route does not exist.") in "SonataAdminBundle:CRUD:list.html.twig".
If I remove a user from the database in order to have only one user, I can access the list of users.
I have absolutely no idea how to solve, how to solve this problem ...
Change 1:
Thanks to Marco Jurincic, I found out that I have these lines in my configuration
sonata_user:
impersonating:
route: page_slug
parameters: { path: / }
However, this does not look like a route and is effective; there are no routes named page_slug. Is it supposed to have a route name of "page_slug"?
source
share