Incompatible with modules that override the AliasManager

Created on 8 March 2024, 4 months ago

Problem/Motivation

With fixed_path_alias enabled, you get this error:

TypeError: Drupal\ps\ParagraphsStats::__construct(): Argument #5 ($aliasManager) must be of type Drupal\path_alias\AliasManager, Drupal\fixed_path_alias\FixedPathAliasManager given, called in /var/www/html/webroot/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 in Drupal\ps\ParagraphsStats->__construct() (line 115 of modules/contrib/ps/src/ParagraphsStats.php).

Steps to reproduce

- Enable this module and fixed_path_alias.
- Go to admin/reports/paragraphs-stats-report

Proposed resolution

Use AliasManagerInterface instead of AliasManager when constructing ParagraphsStats.php.

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium beerendlauwers

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

Comments & Activities

Production build 0.69.0 2024