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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | blazy-invalid_argument_supplied_foreach-2979418-2.patch | 1 KB | it-cru |
Comments
Comment #2
it-cruProvide patch to fix PHP warnings for Invalid argument supplied for foreach() in Drupal\blazy\Blazy::preprocessResponsiveImage().
Comment #3
it-cruComment #4
killes@www.drop.org commentedThis looks good to me.
Comment #5
gausarts commentedComment #7
gausarts commentedCommitted. Thanks!