- πΊπΈUnited States kbentham
Tested this on a site that is on version 9.5.2 of Drupal, using version 4.0.0-beta1 of restrict_by_ip and it works great.
- Status changed to Needs review
3 months ago 1:30pm 26 September 2024
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
.
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Tested this on a site that is on version 9.5.2 of Drupal, using version 4.0.0-beta1 of restrict_by_ip and it works great.