- Issue created by @rupertj
- 🇬🇧United Kingdom joachim
Isn't that the route that will get defined automatically by this in the finders_facet_type entity type?
> 48: * "collection" = "/admin/structure/finders_facet_type",
- 🇬🇧United Kingdom rupertj Bristol, UK
Ah, so it does exist. Problem is that it doesn't when you enable the module :)
% ddev drush en finders_facets In RouteProvider.php line 211: Route "entity.finders_facets_type.collection" does not exist. Failed to run drush en finders_facets: exit status 1
- 🇬🇧United Kingdom rupertj Bristol, UK
Here's the stack trace from when the exception's thrown:
RouteProvider.php:211, Drupal\Core\Routing\RouteProvider->getRouteByName()
RouteProviderLazyBuilder.php:83, Drupal\Core\Routing\RouteProviderLazyBuilder->getRouteByName()
UrlGenerator.php:443, Drupal\Core\Routing\UrlGenerator->getRoute()
UrlGenerator.php:276, Drupal\Core\Routing\UrlGenerator->generateFromRoute()
MetadataBubblingUrlGenerator.php:108, Drupal\Core\Render\MetadataBubblingUrlGenerator->generateFromRoute()
Url.php:765, Drupal\Core\Url->toString()
PmCommands.php:112, Drush\Commands\pm\PmCommands->Drush\Commands\pm\{closure:/var/www/html/vendor/drush/drush/src/Commands/pm/PmCommands.php:111-113}()
PmCommands.php:111, array_map()
PmCommands.php:111, Drush\Commands\pm\PmCommands->install()
CommandProcessor.php:276, call_user_func_array:{/var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php:276}()
CommandProcessor.php:276, Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback()
CommandProcessor.php:212, Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter()
CommandProcessor.php:175, Consolidation\AnnotatedCommand\CommandProcessor->process()
AnnotatedCommand.php:387, Consolidation\AnnotatedCommand\AnnotatedCommand->execute()
Command.php:326, Symfony\Component\Console\Command\Command->run()
Application.php:1096, Symfony\Component\Console\Application->doRunCommand()
Application.php:324, Symfony\Component\Console\Application->doRun()
Application.php:175, Symfony\Component\Console\Application->run()
Runtime.php:110, Drush\Runtime\Runtime->doRun()
Runtime.php:40, Drush\Runtime\Runtime->run()
drush.php:140, include()
drush.php:119, {main}()It looks like the issue only shows up in Drush, too.
- 🇬🇧United Kingdom joachim
What was the drush command that caused this, and what did you have enabled prior to it?
And what version of Drush is it?
- 🇬🇧United Kingdom joachim
Ok so it's not just that an entity collection route isn't ready at that point -- I found LOTS of contrib modules with this, e.g.
eca/modules/ui/eca_ui.info.yml
6:configure: entity.eca.collectionfacets/facets.info.yml
6:configure: entity.facets_facet.collectiongeo_entity/geo_entity.info.yml
14:configure: entity.geo_entity_type.collectionmetatag/metatag.info.yml
7:configure: entity.metatag_defaults.collection - 🇬🇧United Kingdom rupertj Bristol, UK
It's drush 13.3.3.0, and the command was "drush en finders_facets", although enabling localgov_events 4.x which has finders_facets as a dependency triggers the same error.
- 🇬🇧United Kingdom rupertj Bristol, UK
Facets doesn't have the same issue, oddly:
% ddev drush en facets
[success] Module facets has been installed. (Help - Permissions - Configure)% ddev drush en finders_facets
In RouteProvider.php line 211:
Route "entity.finders_facets_type.collection" does not exist.
Failed to run drush en finders_facets: exit status 1What you're actually meant to do with those (Help - Permissions - Configure) "links" that appear in the terminal, I don't know.
- 🇬🇧United Kingdom joachim
> % ddev drush en finders_facets
Is that with facets and finders already enabled?
> What you're actually meant to do with those (Help - Permissions - Configure) "links" that appear in the terminal, I don't know.
Are they clickable links? Drush is printing them with href tags:
> return sprintf('
%s', $link->getUrl()->setAbsolute()->toString(), $link->getText()); Automatically closed - issue fixed for 2 weeks with no activity.