Problem/Motivation

When trying to enable the domain_path_pathauto module an error appears in the terminal preventing you from enabling the module or running any other drush commands

Steps to reproduce

  1. drush si standard -y
  2. drush en pathauto, admin_toolbar, admin_toolbar_tools -y
  3. drush en domain, domain_path, domain_source, domain_access -y
  4. drush en domain_path_pathauto -y

The last command causes an error and more issues after.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

lincoln-batsirayi created an issue. See original summary.

mably made their first commit to this issue’s fork.

mably’s picture

Error message:

Cannot autowire service "Drupal\domain_path_pathauto\Hook\DomainPathPathautoHooks": argument "$keyValueFactory" of method "__construct()" has type "Drupal\Core\KeyValueStore\KeyValueFactoryInterface" but this class couldn't be loaded. Either it was not found or it is missing a parent class or a trait.

Looks like KeyValueFactoryInterface auto-wiring requires Drupal 10.6+ or 11 minimum.

mably’s picture

Priority: Major » Critical
Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • mably committed cdea0a3e on 2.x
    fix: #3574827 Errors enabling the domain_path_pathauto module
    
    By:...

Status: Fixed » Closed (fixed)

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