- Issue created by @VAnnergard
- π΅πPhilippines dsdeiz
Yeah, in case anyone wants a patch for D10, maybe this would work.
When using the built-in search module and indexing a page with a views_summary via drush core:cron the cron job fails and the logs shows "InvalidArgumentException: Route required in Drupal\Core\Url::fromRouteMatch()". This seems to be because in "template_preprocess_views_view_summary" an array of active urls are set using the route that does not exists as the code is run as cli.
Add a summary view on a page that is being indexed
The active urls section of the function should take in consideration that it is possible to be called with no route, and therefor either set
the $active_urls to an empty array when PHP_SAPI is cli , or if there is some of these that works set those instead. For our use case it seems it would be enough to set the $active_urls empty when in cli mode but I am not sure if there is some implications I am missing.
Active
10.2 β¨
Last updated
Yeah, in case anyone wants a patch for D10, maybe this would work.