Symfony 2.1 - Unreleased Twig_Error_Runtime PHP Exception

I get this error when trying to open a route in Symfony 2.1

I really don't know where to check this. There is nothing on the Internet.

Many thanks for your help:

CRITICAL - Uncaught PHP Exception Twig_Error_Runtime: "An exception was made while rendering the template (" The URL for the specified route "_wdt" could not be created because such a route does not exist.) In "@ WebProfiler / Profiler / toolbar_js.html.twig "on line 15." on the page / home / milos / workspace / merrin 3.0 / vendor / twig / twig / lib / Twig / Template.php 280

+7
source share
2 answers

This exception is thrown in the dev environment if the profiler is enabled but there is no routing configuration.

Unable to generate a URL for the named route "_wdt" as such route does not exist. 

Make sure your / config / routing _dev.yml application contains the following lines:

 # app/config/routing_dev.yml _wdt: resource: "@WebProfilerBundle/Resources/config/routing/wdt.xml" prefix: /_wdt _profiler: resource: "@WebProfilerBundle/Resources/config/routing/profiler.xml" prefix: /_profiler 

This will fix your problem.

+11
source

Rename the folder provider or delete (back up the project), use the composer installation again (Server Windows) (Symfony 2.3.35)

0
source

All Articles