Bug #53350

Trying to create a Link in an Template in CLI Context should provide a helpful exception

Added by Marc Neuhaus almost 8 years ago. Updated almost 8 years ago.

Should have
MVC - Routing
Target version:
Start date:
Due date:
% Done:


Estimated time:
PHP Version:
Has patch:


If you try to render a FluidTemplate with a link in it through a
CommandController it fails currently with this error:

Uncaught Exception
  Could not resolve a route and its corresponding URI for the given
  parameters. This may be due to referring to a not existing package /
  controller / action while building a link or URI. Refer to log and check
  the backtrace for more details.

This happens, because the router isn't configured by default in the
cli context and needs to be configured manually.

We should provide a more helpful exception here to tell the dev what
he needs to do


Updated by Bastian Waidelich almost 8 years ago

  • Category set to MVC - Routing
  • Status changed from New to Accepted

Also available in: Atom PDF