TypeError when restrict_by_ip is also installed

Created on 30 June 2022, over 2 years ago
Updated 28 February 2023, almost 2 years ago

The following error occurs if the Restrict By IP module is also installed:

TypeError: Drupal\block_class\Service\BlockClassHelperService::__construct(): Argument #10 ($currentUser) must be of type Drupal\Core\Session\AccountProxy, Drupal\restrict_by_ip\Session\AccountProxy given, called in /Users/dicksb/Sites/MAMP/moweb7/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php on line 262 in Drupal\block_class\Service\BlockClassHelperService->__construct() (line 118 of modules/contrib/block_class/src/Service/BlockClassHelperService.php).

The attached patch replaces any uses of Drupal\Core\Session\AccountProxy with Drupal\Core\Session\AccountProxyInterface.

πŸ› Bug report
Status

RTBC

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States wrd-oaitsd

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