Pass instance of Drupal\path_alias\AliasManager instead of Drupal\Core\Path\AliasManager

Created on 11 August 2021, over 3 years ago
Updated 28 April 2023, almost 2 years ago

Problem/Motivation

Installed the module on my Drupal core version: 8.9.16 and Module version: jsnlog (dev-1.x 2e29ddb). After enabling it, I get the following error:

The website encountered an unexpected error. Please try again later.

In logs:

TypeError: Argument 4 passed to Drupal\jsnlog\Access\AjaxLogAccess::__construct() must be an instance of Drupal\path_alias\AliasManager, instance of Drupal\Core\Path\AliasManager given, called in /var/www/html/frontend/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 in Drupal\jsnlog\Access\AjaxLogAccess->__construct() (line 99 of /var/www/html/frontend/web/modules/contrib/jsnlog/src/Access/AjaxLogAccess.php)

Steps to reproduce

Install and enable the module.

User interface changes

NONE

API changes

-

Data model changes

NONE

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India ankithashetty Karnataka, India

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.

Production build 0.71.5 2024