Deprecated function getException() in RedirectSubscriber

Created on 4 April 2023, about 1 year ago
Updated 27 April 2023, about 1 year ago

Problem/Motivation

I'm getting the following error in Drupal 10 with the version 3.0.0 which is supposed to be Drupal 10 compatible :

Error: Call to undefined method Symfony\Component\HttpKernel\Event\ExceptionEvent::getException() in Drupal\url_redirect\EventSubscriber\RedirectSubscriber->exceptionRedirect() (line 116 of modules/contrib/url_redirect/src/EventSubscriber/RedirectSubscriber.php).

Steps to reproduce

Install the version 3.0.0 in Drupal 10

Proposed resolution

I have created a patch to fix the deprecated function.

Remaining tasks

Review the patch and add it to the next release.

🐛 Bug report
Status

RTBC

Version

3.0

Component

Code

Created by

🇲🇦Morocco chaimaariz

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

Comments & Activities

Production build 0.69.0 2024