Problem/Motivation

You can install the D10 compatible version by applying the patch https://www.drupal.org/files/issues/2023-07-27/3289377-6.patch

After porting to D9 (highest version) or D10, you may encounter a issue stated above and will fall in to wsod with following error.

TypeError: Drupal\restrict_role_login_by_ip\EventSubscriber\RestrictRoleLoginByIpEventSubscriber::onKernelRequest(): Argument #1 ($event) must be of type Symfony\Component\HttpKernel\Kernel

Steps to reproduce

Install the module as usual by applying the patch above.

Proposed resolution

Use Symfony\Component\HttpKernel\Event\RequestEvent; in the onKernelRequest.
for more pls refer: https://www.drupal.org/project/drupal/issues/3113884

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#3 3377357-3.patch1.31 KBdineshkumarbollu

Comments

MukhtarM created an issue. See original summary.

mukhtarm’s picture

Title: TypeError: Drupal\restrict_role_login_by_ip\EventSubscriber\RestrictRoleLoginByIpEventSubscriber::onKernelRequest(): Argument #1 ($event) must be of type Symfony\Component\HttpKernel\Kernel » Remove usage of deprecated GetResponseEvent
Issue summary: View changes
dineshkumarbollu’s picture

StatusFileSize
new1.31 KB

Provided patch for this. Please Review.

mukhtarm’s picture

#3 patch is applying cleanly. Thanks

mukhtarm’s picture

Status: Active » Needs review
2pha’s picture

Update Bot has already added a patch with this change about a year ago.
https://www.drupal.org/project/restrict_role_login_by_ip/issues/3289377#...

2pha’s picture

Status: Needs review » Closed (duplicate)
Parent issue: » #3289377: Automated Drupal 10 compatibility fixes