Skip to main contentSkip to footer

Drupal 8 Symfony Component Routing Exception RouteNotFoundException Route view.products_list.page_2 does not exist

Rupak Nepali
Share:
Drupal 8 Symfony Component Routing Exception RouteNotFoundException Route view.products_list.page_2 does not exist

The website encountered an unexpected error. Please try again later.</br></br><em class=”placeholder”>Symfony\Component\Routing\Exception\RouteNotFoundException</em>: Route &quot;view.products_list.page_2&quot; does not exist. in <em class=”placeholder”>Drupal\Core\Routing\RouteProvider-&gt;getRouteByName()</em> (line <em class=”placeholder”>190</em> of <em class=”placeholder”>core\lib\Drupal\Core\Routing\RouteProvider.php</em>).

Solution:
This is the exception thrown when a route does not exist but you are using it in your twig files or somewhere else. As in the above example find “view.products_list.page_2” in your code and remove it.

<a href="{{ path('view.products_list.page_2') }}">

Then don’t forget to clear the cache.

We hope it is helpful for someone. http://api.symfony.com/3.0/Symfony/Component/Routing/Exception/RouteNotFoundException.html

class RouteNotFoundException extends InvalidArgumentException implements ExceptionInterface
The exception is thrown when a route does not exist.

Comments

Join the conversation and share your thoughts

Leave a Comment

Your comment will be reviewed before publishing.

Be the first to comment on this post!

Innovation

Let's Make Something Amazing Together

We always provide our best creative ideas at the highest level. Tell us about your project and we will make it work.

InnovateBringing innovative solutions to complex problems
AutomateStreamlining processes through automation
DominateLeading the market with exceptional results
Build Smarter and Launch FasterEfficient development for rapid deployment