I did an update on Blazy contrib module "Updating drupal/blazy (2.0.0-rc6 => 2.0.0-rc7)" and got the following error with Slick 2.0.0 version.

Undefined index: field_type
/var/www/html/web/modules/contrib/blazy/src/BlazyFormatter.php:147
/var/www/html/web/modules/contrib/blazy/src/BlazyFormatter.php:109
/var/www/html/web/modules/contrib/slick/src/SlickFormatter.php:32
/var/www/html/web/modules/contrib/slick/src/Plugin/Field/FieldFormatter/SlickEntityFormatterBase.php:96

I will attach a patch and please review.

Comments

bsztreha created an issue. See original summary.

gausarts’s picture

Doh. Thank you!

bsztreha’s picture

Status: Active » Needs review
StatusFileSize
new580 bytes
gausarts’s picture

This should go to BlazyFormatter to inherit by related modules once. Kindly update it to Blazy. Thanks!

gausarts’s picture

Hang on, there. I just noticed mismatched versions.

drupal/blazy (2.0.0-rc6 => 2.0.0-rc7)" and got the following error with Slick 2.0.0 version.

Both should be the latest. Likely some optimization was happenning, and if one is left behind, you will likely have more issues as mentioned in the docs.

Blazy 2.0 for Slick 2.1.
Blazy rc6 below for Slick 2.0 below.

Let me know if still an issue with the latest combo. If yes, please move it to Blazy.

bsztreha’s picture

Ok, thanks the suggest, I will check it to change versions

bsztreha’s picture

Status: Needs review » Closed (works as designed)

It is getting complicated .. I noticed rc7 is require core 8.8, but we can't update right now, so I will close that and revert all changes in our project

b_sharpe’s picture

Just to help anyone else looking, if your are using the Lightning distro, it is currently pinned to Slick 2.0, but unfortunately Slick 2 is requiring Blazy `~2.0` so it allows the update. Until Lightning Media makes an update, you will need the above patch or to downgrade blazy.

tzt20’s picture

Thanks @b_sharpe. Just ran into this myself.

hardikpandya’s picture

In case someone bumps into this and still needs the patch, here is the updated patch that works with Slick v2.4