PHP 8.1 compatibility

Created on 19 January 2023, almost 2 years ago
Updated 1 September 2023, about 1 year ago

After upgrading to PHP 8.1 and turning on redirection I get

Deprecated function: parse_str(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\splash_redirect\EventSubscriber\SplashRedirectEventSubscriber->onKernelRequest() (line 87 of modules\contrib\splash_redirect\src\EventSubscriber\SplashRedirectEventSubscriber.php). 
Drupal\splash_redirect\EventSubscriber\SplashRedirectEventSubscriber->onKernelRequest(Object, 'kernel.request', Object)
call_user_func(Array, Object, 'kernel.request', Object) (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.request') (Line: 145)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713) message 
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

The redirect works, but the message appears as well.

🐛 Bug report
Status

Needs review

Version

1.8

Component

Code

Created by

🇭🇺Hungary Grabby

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024