TypeError in UserVisitsSubscriber due to RequestStack Type Mismatch in Drupal >= 10.2

Created on 22 May 2024, 6 months ago

When using the user_visits module in Drupal >= 10.2, the event subscriber throws an error:

TypeError: Drupal\user_visits\EventSubscriber\UserVisitsSubscriber::__construct(): Argument #5 ($request_stack) must be of type Drupal\Core\Http\RequestStack, Symfony\Component\HttpFoundation\RequestStack given, called in /var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 in Drupal\user_visits\EventSubscriber\UserVisitsSubscriber->__construct() (line 69 of modules/contrib/user_visits/src/EventSubscriber/UserVisitsSubscriber.php).
🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇳🇱Netherlands voide Kampen, The Netherlands

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024