Routing problem - None of the chained routers were able to generate route

1,278 views
Skip to first unread message

Antonio Peric

unread,
Feb 11, 2014, 1:21:02 PM2/11/14
to symfony-...@googlegroups.com

I have document with six routes - because  of languages because of relations to other documents.

I want to choose which route to render in my template for example I want to put always the same route for that element. I tried to remove other routes inside loop but then I got error below. I am sure there is some way to do this but I cannot find it. Than you for help. I will write one huge blog post with all problems we find in this project and how we solve it for sure


In exception has been thrown during the rendering of a template ("None of the chained routers were able to generate route: Route 'Route aware content Locastic\CmsBundle\Document\Service' not found") in LocasticUhyCmsBundle:Helpers:list_services_sidebar.html.twig at line 2.

500 Internal Server Error - Twig_Error_Runtime
1 linked Exception:
  • RouteNotFoundException »


David Buchmann

unread,
Feb 13, 2014, 4:13:59 AM2/13/14
to symfony-...@googlegroups.com
hi antonio,

not sure i understand. you should not have more routes than languages
for the same document. if you need other urls that lead to the same
content, you should create RedirectRoute rather than more routes. then
you should have no such problems.

removing the routes sounds dangerous, as when you flush the document
manager, you would also remove the link in storage.

cheers,david

Am 11.02.2014 19:21, schrieb Antonio Peric:
>
> I have document with six routes - because of languages because of
> relations to other documents.
>
>
> I want to choose which route to render in my template for example I
> want to put always the same route for that element. I tried to remove
> other routes inside loop but then I got error below. I am sure there
> is some way to do this but I cannot find it. Than you for help. I will
> write one huge blog post with all problems we find in this project and
> how we solve it for sure
>
>
>
> In exception has been thrown during the rendering of a template ("None
> of the chained routers were able to generate route: Route 'Route aware
> content Locastic\CmsBundle\Document\Service' not found") in
> LocasticUhyCmsBundle:Helpers:list_services_sidebar.html.twig at line 2.
>
> *500* Internal Server Error - Twig_Error_Runtime
> *1* linked Exception:
>
> * RouteNotFoundException »
> <http://localhost/app_dev.php/hr/usluge#traces-link-1>
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "symfony-cmf-devs" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to symfony-cmf-de...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

--
Liip AG // Agile Web Development // T +41 26 422 25 11
CH-1700 Fribourg // PGP 0xA581808B // www.liip.ch

Antonio Peric

unread,
Feb 17, 2014, 3:53:43 AM2/17/14
to symfony-...@googlegroups.com
We fixed this - it was problem with inconsistent in database data

Thnx for answering
Reply all
Reply to author
Forward
0 new messages