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);
CommentFileSizeAuthor
getscheme-deprecated.patch779 bytesstefvanlooveren

Comments

stefvanlooveren created an issue. See original summary.

stefvanlooveren’s picture

stefvanlooveren’s picture

Thanks for this amazing module btw :-)

quadrexdev’s picture

Status: Active » Reviewed & tested by the community

I can confirm that applying this patch solves the error Error: Call to undefined method Drupal\Core\File\FileSystem::uriScheme()

+1 to RTBC

daveferrara1’s picture

Here is a link to another issue where there is a patch that addresses this issue as well as another issue you may have if you attempt to upload files vs. providing a file path. https://www.drupal.org/project/paragraphs_browser/issues/3355760#comment...

greggles’s picture

Version: 8.x-1.0 » 8.x-1.x-dev
Status: Reviewed & tested by the community » Closed (duplicate)

OK, I guess we should mark this as a duplicate of that one. I've given credit to stefvanlooveren over there since this issue predates that one.

cosmicdreams’s picture

Is this still an issue since 8.x-1.30?