TypeError: Argument 1 passed to Drupal\url_redirect\EventSubscriber\RedirectSubscriber::requestRedirect() must be an instance of Symfony\Component\HttpKernel\Event\RequestEvent

Created on 6 June 2023, over 1 year ago
Updated 29 September 2023, about 1 year ago

On a Drupal 8.9.20 site, PHP 7.4.33, I get this error after updating drupal/url_redirect (2.62.0 => 3.0.0).

The website encountered an unexpected error. Please try again later.
TypeError: Argument 1 passed to Drupal\url_redirect\EventSubscriber\RedirectSubscriber::requestRedirect() must be an instance of Symfony\Component\HttpKernel\Event\RequestEvent, instance of Symfony\Component\HttpKernel\Event\GetResponseEvent given in Drupal\url_redirect\EventSubscriber\RedirectSubscriber->requestRedirect() (line 129 of modules/url_redirect/src/EventSubscriber/RedirectSubscriber.php).

I have tried composer update drupal/url_redirect --with-all-dependencies but no luck.
FWIW this site is still on Composer 1 in case that matters.

Any ideas appreciated.

Thanks!

πŸ’¬ Support request
Status

Closed: duplicate

Version

3.0

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States Rick Hood

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

Comments & Activities

Production build 0.71.5 2024