Error message
Undefined index local in image_resize_filter_get_images() (line 121 of modules/contrib/image_resize_filter/image_resize_filter.module)

CommentFileSizeAuthor
#5 3100957-5.patch812 bytesgnuget
#5 image_resize.png36.42 KBgnuget

Comments

alecostaweb created an issue. See original summary.

alecostaweb’s picture

Version: 8.x-1.x-dev » 8.x-1.0
ippy’s picture

Yes, we can see this on one of our client's sites too. Discovered in the logs due to reports of a mangled slider.

Notice: Undefined index: local in image_resize_filter_get_images() (line 121 of /modules/contrib/image_resize_filter/image_resize_filter.module

No time to dig deeper now unfortunately, but the original report is not an isolated incident.

Uninstalling, but may revisit. Will post anything useful if we do.
[edit: 8.x-1.0-beta1 on 8.7.9]

gnuget’s picture

Can you please provide the steps to reproduce the bug?

I noted this error in the tests but in theory configuring the filter should make that this error don't happen.

Thanks!

gnuget’s picture

Status: Active » Needs review
StatusFileSize
new36.42 KB
new812 bytes

After debugging this it seems that the problem is that there aren't default values for the "image_locations" values (even that I wasn't able to reproduce the bug on my local the tests were indeed failing because of this.

I added the default values if this is still happening to you try editing the options of the filter and save them again so the value is set in the configuration.

filter settings

Patch with the default values attached.

  • gnuget committed 73dde7a on 8.x-1.x
    Issue #3100957 by gnuget: Undefined index local in...
gnuget’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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