Problem/Motivation
After upgrading Drupal Core from 11.3.13 to 11.4.1, the site returns an HTTP 500 error during bootstrap when drupal/redirect:^1.13.0 module is enabled.
The error occurs before any page is rendered:
The website encountered an unexpected error. Try again later.
Error: Call to undefined method Drupal\Core\PathProcessor\PathProcessorManager::addInbound() in Drupal\redirect\PathProcessor\RedirectPathProcessorManager->addInbound() (line 39 of modules/contrib/redirect/src/PathProcessor/RedirectPathProcessorManager.php).
The full stack trace is included below.
Stack trace
Error: Call to undefined method Drupal\Core\PathProcessor\PathProcessorManager::addInbound() in Drupal\redirect\PathProcessor\RedirectPathProcessorManager->addInbound() (line 39 of modules/contrib/redirect/src/PathProcessor/RedirectPathProcessorManager.php).
call_user_func_array() (Line: 279)
Drupal\Component\DependencyInjection\Container->createService() (Line: 173)
Drupal\Component\DependencyInjection\Container->get() (Line: 429)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters() (Line: 240)
Drupal\Component\DependencyInjection\Container->createService() (Line: 173)
Drupal\Component\DependencyInjection\Container->get() (Line: 453)
Drupal\Component\DependencyInjection\Container->Drupal\Component\DependencyInjection\{closure}() (Line: 243)
Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}() (Line: 206)
Symfony\Component\EventDispatcher\EventDispatcher->callListeners() (Line: 56)
Symfony\Component\EventDispatcher\EventDispatcher->dispatch() (Line: 159)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 54)
Drupal\simple_oauth\HttpMiddleware\BasicAuthSwap->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 30)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 53)
Asm89\Stack\Cors->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 61)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 54)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 753)
Drupal\Core\DrupalKernel->handle() (Line: 34)
Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() (Line: 32)
require('/var/www/html/vendor/autoload_runtime.php') (Line: 22)
require_once('/var/www/html/docroot/autoload_runtime.php') (Line: 13)
The fatal error shows that RedirectPathProcessorManager calls PathProcessorManager::addInbound(), but that method no longer exists in Drupal Core 11.4.1 (see https://www.drupal.org/project/drupal/issues/3571046 and https://git.drupalcode.org/project/drupal/-/commit/5a0a3bb5e072216e8fbb2...).
Steps to reproduce
1. Start with a Drupal site running Drupal Core 11.3.13 with the redirect module enabled.
2. Upgrade Drupal Core to 11.4.1.
3. Clear caches and load the site.
Comments
Comment #2
berdirNeither does this class exist in redirect, you are using patches from #2879648: Redirects from aliased paths aren't triggered