InvalidArgumentException repeatedly thrown when running cron via drush

Created on 24 July 2024, 4 months ago
Updated 8 August 2024, 3 months ago

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.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States wsantell

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024