Following PHP warning occurs when used responsive image style only has a fallback image:

Warning: Invalid argument supplied for foreach() in Drupal\blazy\Blazy::preprocessResponsiveImage()

This could also happen, when you remove a breakpoint in your theme which is used in responsive image style and so only the fallback image style (which is the only required one) is left in responsive image style.

I'm already working on a patch for this.

Comments

IT-Cru created an issue. See original summary.

it-cru’s picture

Provide patch to fix PHP warnings for Invalid argument supplied for foreach() in Drupal\blazy\Blazy::preprocessResponsiveImage().

it-cru’s picture

Status: Active » Needs review
killes@www.drop.org’s picture

Status: Needs review » Reviewed & tested by the community

This looks good to me.

gausarts’s picture

Status: Reviewed & tested by the community » Patch (to be ported)

  • gausarts committed 303187c on 8.x-1.x authored by IT-Cru
    Issue #2979418 by IT-Cru: Invalid argument supplied for foreach() in...
gausarts’s picture

Status: Patch (to be ported) » Fixed

Committed. Thanks!

Status: Fixed » Closed (fixed)

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