Currently when selecting "Slick Media" as a media entity reference display formatter the loading animation appears and gets stuck and it's not possible to configure it.

The log shows the following error:

TypeError: Argument 9 passed to Drupal\slick\Plugin\Field\FieldFormatter\SlickEntityReferenceFormatterBase::__construct() must be an instance of Drupal\slick\Plugin\Field\FieldFormatter\ImageFactory, instance of Drupal\Core\Image\ImageFactory given, called in /var/www/html/maritimetas/modules/slick/src/Plugin/Field/FieldFormatter/SlickEntityReferenceFormatterBase.php on line 60 in Drupal\slick\Plugin\Field\FieldFormatter\SlickEntityReferenceFormatterBase->__construct() (line 34 of /var/www/html/maritimetas/modules/slick/src/Plugin/Field/FieldFormatter/SlickEntityReferenceFormatterBase.php)

The cause is a missing use.

Comments

imclean created an issue. See original summary.

imclean’s picture

  • gausarts committed ad5eb7e on 8.x-2.x authored by imclean
    Issue #3035697 by imclean: Add core ImageFactory to...
gausarts’s picture

Status: Needs review » Fixed

Committed. Thank you for contribution!

Status: Fixed » Closed (fixed)

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