Checked everything I can think of and no luck. Has anyone encountered an error like this on a Drupal 9 site using version 8.x-2.1:
Error: Call to undefined method Drupal\blazy\Plugin\views\field\BlazyViewsFieldMedia::getItems() in Drupal\blazy\Dejavu\BlazyStylePluginBase->getFieldRenderable() (line 144 of
/modules/contrib/blazy/src/Dejavu/BlazyStyleBaseTrait.php)
?
Error occurs on every attempt to load an image in a carousel that uses blazy. Getting the same error on my dev and production site and trying to sort it out on the dev site so I can use it with slick.

Comments

woodhome created an issue. See original summary.

gausarts’s picture

I can't help you debug for now, but I put the warning here:
https://git.drupalcode.org/project/blazy/-/blob/8.x-2.x/src/Dejavu/Blazy...

// Be sure to not check "Use field template" under "Style settings" to have
// renderable array to work with, otherwise flattened string!

Please verify against your settings.

Other potential misses:
- mismatched branches.
- during initial creation, the Views style (Slick) must select Media entity, not Content, etc. in order to use Blazy Views field (non-formatter) correctly. Or other entities with correct relationship under Advanced settings at RHS, IIRC.

gausarts’s picture

If still an issue, please check out Slick Browser. It uses Blazy Views field intensively. You can map its settings to Slick's if not using the module.

gausarts’s picture

Status: Active » Postponed (maintainer needs more info)

I am planning to release a new one soon. Does this issue still stand?

More detailed warning is here:
https://www.drupal.org/project/slick_views#slick-gotchas

gausarts’s picture

Category: Bug report » Support request
Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Feedback provided. Feel free to re-open and provide more details if still an issue. Thanks.