'Symfony\Component\Routing\Exception\RouteNotFoundException' with
message 'Route "entity.eck_entity_type.edit_form" does not exist.' in
/www/ruhrfutur/htdocs/core/lib/Drupal/Core/Routing/RouteProvider.php:191

This seems to happen when enabling a feature module that defines an ECK entity type as configuration, has a dependency on ECK module, and ECK module hasn't been enabled before, due to the log message containing a link to the ECK entity type edit form:

  public function postSave(EntityStorageInterface $storage, $update = TRUE) {
    parent::postSave($storage, $update);

    // Create an edit link.
    $edit_link = $this->l(t('Edit'), $this->urlInfo());

If we want to keep the log message, we'd have to rebuild the router cache, which would have a negative performance impact.
Or, move it back to EckEntityTypeFormBase::save(), where it's been before #2603522: Cannot import Eck Type Definition, but then log messages will only be created for form saves, which is kinda pointless.
Third option, remove the log message, or at least the edit link altogether, since it has probably just been copied over from somewhere (block module?).

Comments

smk-ka created an issue. See original summary.

  • legolasbo committed 176462a on 8.x-1.x
    Issue #2632428: RouteNotFoundException when importing configuration
    
legolasbo’s picture

Status: Active » Fixed

I've chosen to rebuild the router cache and take the performance impact for granted. The performance is only affected during save operations and people are used to save operations taking some time.

legolasbo’s picture

Thanks for reporting the bug! :)

Status: Fixed » Closed (fixed)

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