Problem/Motivation

TypeError: Drupal\paragraphs_report\ParagraphsReport::__construct(): Argument #5 ($aliasManager) must be of type Drupal\path_alias\AliasManager, Drupal\workspaces\WorkspacesAliasManager given, called in /var/www/app/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php on line 261 in Drupal\paragraphs_report\ParagraphsReport->__construct() (line 137 of modules/contrib/paragraphs_report/src/ParagraphsReport.php).

Steps to reproduce

1. enable paragraphs_report and workspaces
2. go to http://localhost/admin/reports/paragraphs-report

Proposed resolution

Use the AliasManagerInterface in \Drupal\paragraphs_report\ParagraphsReport::__construct

Remaining tasks

User interface changes

API changes

Data model changes

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

malcomio created an issue. See original summary.

malcomio’s picture

Issue summary: View changes
Status: Active » Needs review
chiragp185’s picture

Facing the same issue when I am trying to save a node when I use am using this module - Domain Unique Path Alias.

This MR fixes the error since Domain Unique Path Alias is implementing the AliasManagerInterface

malcomio’s picture

lincoln-batsirayi’s picture

Status: Needs review » Reviewed & tested by the community

I was also getting this error but from having the domain access module enabled and this patch / mr resolved it, so i can confirm that this is working and would be good to get it merged in.

The error was getting was:

TypeError: Drupal\paragraphs_report\ParagraphsReport::__construct(): Argument #5 ($aliasManager) must be of type Drupal\path_alias\AliasManager, Drupal\domain_path\DomainPathAliasManager given, called in /var/www/html/www/core/lib/Drupal/Component/DependencyInjection/Container.php on line 261 in Drupal\paragraphs_report\ParagraphsReport->__construct() (line 172 of modules/contrib/paragraphs_report/src/ParagraphsReport.php).

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

astonvictor’s picture

Version: 2.0.1 » 2.x-dev
Status: Reviewed & tested by the community » 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.

Status: Fixed » Closed (fixed)

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