[wp-trac] [WordPress Trac] #58535: Undefined array key "file" in function wp_calculate_image_srcset()

WordPress Trac noreply at wordpress.org
Wed Jun 14 15:51:30 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:
--------------------------+-----------------------------
Changes (by joemcgill):

 * version:  6.2.2 =>
 * milestone:  Awaiting Review => Future Release


Comment:

 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58535#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list