Terrific module :) It was working great in initial config, but on Drupal 8.8.1 / PHP 7.3.8 I encountered the following wsod error after importing config and image managed by this module and viewing an entity that displays a field with a formatter provided by this module:

Error: Using $this when not in object context in Drupal\Core\File\FileSystem::dirname() (line 148 of core/lib/Drupal/Core/File/FileSystem.php).
...

and another message not shown except in watchdog or next renderable screen:

Deprecated function: Non-static method Drupal\Core\File\FileSystem::uriScheme() should not be called statically in Drupal\config_default_image\Plugin\Field\FieldFormatter\ConfigDefaultImageFormatter->viewElements() (line 187 of modules/contrib/config_default_image/src/Plugin/Field/FieldFormatter/ConfigDefaultImageFormatter.php).
Drupal\config_default_image\Plugin\Field\FieldFormatter\ConfigDefaultImageFormatter->viewElements(Object, 'en') (Line: 89)
Drupal\Core\Field\FormatterBase->view(Object, 'en') (Line: 76)
...

The error will not show if the derived image style was already created one time in the sites/default/files/config_default_image folder. With the forthcoming patch, the error won't happen either :)

Comments

texas-bronius created an issue. See original summary.

texas-bronius’s picture

Status: Active » Needs review
StatusFileSize
new3.1 KB

  • GaëlG committed cfbd80b on 8.x-1.x authored by texas-bronius
    Issue #3105770 by texas-bronius, GaëlG: Config Default Image: Deprecated...

  • GaëlG committed f52edf1 on 8.x-2.x authored by texas-bronius
    Issue #3105770 by texas-bronius, GaëlG: Config Default Image: Deprecated...
gaëlg’s picture

Status: Needs review » Fixed

Thank you very much! This has been committed to both branches.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.