Each time I use drush cron, I get 500 entries in dblog:

InvalidArgumentException: Route required in Drupal\Core\Url::fromRouteMatch() (line 171 of /var/www/docroot/core/lib/Drupal/Core/Url.php).

#0 /var/www/docroot/modules/contrib/easy_breadcrumb/src/EasyBreadcrumbBuilder.php(332): Drupal\Core\Url::fromRouteMatch(Object(Drupal\Core\Routing\NullRouteMatch))

As you can see in the trace, this is providing a NullRouteMatch for $route_match to Url::fromRouteMatch(), which sees the object on the route is NULL and throws the exception.

This is a minor issue but it is flooding our dblog page and making it unusable. The fix is simple and I will provide it in a merge request.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

wsantell created an issue. See original summary.

greg boggs’s picture

Status: Active » Reviewed & tested by the community

My site doesn't throw this error on drush cron, but this looks like a good defensive code addition all the same.

spuky made their first commit to this issue’s fork.

  • spuky committed ecda9aec on 2.x authored by wsantell
    Issue #3463616 by wsantell, Greg Boggs: InvalidArgumentException...
spuky’s picture

Status: Reviewed & tested by the community » Fixed

Looks good to me Thanks.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.