Condition 'request_path' has a dependency on 'path_alias.manager'

Created on 4 July 2022, over 2 years ago
Updated 13 April 2023, over 1 year ago

Problem/Motivation

When this module is being installed without path_alias enabled, creating a 'request_path' condition will result in a ServiceNotFoundException:

  [Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException]  
  You have requested a non-existent service "path_alias.manager".

Steps to reproduce

Create an install profile with at least admin_theme, path_alias and smtp enabled.

The smtp module triggers a \Drupal::service('router.builder')->rebuild() which in return triggers admin_theme on user.* related routes before path_alias gets installed.

Proposed resolution

Add dependency to path_alias in admin_theme or fix drupal core whic is providing a plugin which depends on an optional module.

Remaining tasks

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Closed: works as designed

Component

Code

Created by

🇨🇭Switzerland phma Basel, CH

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇩🇪Germany geek-merlin Freiburg, Germany

    At least today, path_alias is a required core module:

    name: Path alias
    type: module
    description: 'Provides the API allowing to rename URLs.'
    package: Core
    version: VERSION
    required: true
    hidden: true
    
Production build 0.71.5 2024