Deprecated function: preg_match(): Passing null to parameter

Created on 27 March 2023, over 1 year ago

Hello,

Problem/Motivation

We have the following errors when accessing a page with a background image attached to it:

Deprecated function: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in Drupal\Core\StreamWrapper\StreamWrapperManager::getScheme() (line 256 of /var/app/docroot/core/lib/Drupal/Core/StreamWrapper/StreamWrapperManager.php)
#0 /var/app/docroot/core/includes/bootstrap.inc(347): _drupal_error_handler_real()
#1 [internal function]: _drupal_error_handler()
#2 /var/app/docroot/core/lib/Drupal/Core/StreamWrapper/StreamWrapperManager.php(256): preg_match()
#3 /var/app/docroot/core/lib/Drupal/Core/StreamWrapper/StreamWrapperManager.php(279): Drupal\Core\StreamWrapper\StreamWrapperManager::getScheme()
#4 /var/app/docroot/core/lib/Drupal/Core/File/FileSystem.php(520): Drupal\Core\StreamWrapper\StreamWrapperManager->isValidUri()
#5 /var/app/docroot/modules/contrib/background_image/src/Controller/BackgroundImageCssController.php(294): Drupal\Core\File\FileSystem->prepareDirectory()
#6 /var/app/docroot/modules/contrib/background_image/src/Controller/BackgroundImageCssController.php(207): Drupal\background_image\Controller\BackgroundImageCssController->dump()
#7 /var/app/docroot/modules/contrib/background_image/src/Controller/BackgroundImageCssController.php(411): Drupal\background_image\Controller\BackgroundImageCssController->buildCss()
🐛 Bug report
Status

Closed: duplicate

Version

2.0

Component

Code

Created by

🇧🇪Belgium p-neyens

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

Comments & Activities

Production build 0.71.5 2024