Error: Call to undefined method Drupal\Core\File\FileSystem::uriScheme()

Created on 9 June 2022, over 2 years ago
Updated 11 August 2023, over 1 year ago

After filling in a wrong path in "PARAGRAPHS BROWSER SETTINGS" > "IMAGE SETTINGS" > "Path to image" you get an error saying:
Error: Call to undefined method Drupal\Core\File\FileSystem::uriScheme()

Proposed resolution

resolution was to replace the urlScheme call with

replace:

\Drupal::service('file_system')->uriScheme($uri);

with:

use Drupal\Core\StreamWrapper\StreamWrapperManager;
StreamWrapperManager::getScheme($uri);
πŸ› Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium stefvanlooveren

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