[wp-trac] [WordPress Trac] #58535: Undefined array key "file" in function wp_calculate_image_srcset()
WordPress Trac
noreply at wordpress.org
Wed Jun 14 16:19:41 UTC 2023
#58535: Undefined array key "file" in function wp_calculate_image_srcset()
--------------------------+-----------------------------
Reporter: martinjhenne | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: General | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+-----------------------------
Comment (by martinjhenne):
Replying to [comment:2 joemcgill]:
> Hi @martinjhenne,
>
> Thanks for reporting this. It seems like something is causing the
metadata associated with your intermediate image sizes (the extra crops
that WordPress creates when you upload an image) to be formatted
incorrectly. We can probably add some extra safety checks in place to this
function in order to avoid these types of warnings, but I would encourage
you to find out what is causing this. It could be either a plugin that you
are using that modifies the image data before it's saved to the database,
or a plugin that is filtering the metadata for image sizes before it
reaches this function.
I use svg and webp images. Can this be a reason?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58535#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list