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);
| Comment | File | Size | Author |
|---|---|---|---|
| getscheme-deprecated.patch | 779 bytes | stefvanlooveren |
Comments
Comment #2
stefvanlooveren commentedComment #3
stefvanlooveren commentedThanks for this amazing module btw :-)
Comment #4
quadrexdevI can confirm that applying this patch solves the error
Error: Call to undefined method Drupal\Core\File\FileSystem::uriScheme()+1 to RTBC
Comment #5
daveferrara1 commentedHere 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...
Comment #6
gregglesOK, 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.
Comment #7
bvoynickComment #8
cosmicdreams commentedIs this still an issue since 8.x-1.30?