Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293895

fatal error in UrlGenerator->getRoute

$
0
0

Problem/Motivation

Fatal error __clone method called on non-object in Drupal\Core\Routing\UrlGenerator->getRoute

when $name = <current>

Function expects to throw specific error instead:

```
@throws \Symfony\Component\Routing\Exception\RouteNotFoundException
```

Steps to reproduce

For me it was using drush uli to login after pulling DB down, the language `en` was not available due to config split.

So <current> isn't a loadable route. We need better steps to reproduce.

Proposed resolution

Do not clone if route isn't an object.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 293895

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>