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

WordPress Trac noreply at wordpress.org
Tue Sep 24 20:10:11 UTC 2024


#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 MadtownLems):

 I did some digging into this, and here's what I've found:

 When Imagick is enabled, and is used to generate thumbnails of PDFs, the
 metadata associated with the upload does not contain the 'file' key.  If
 someone were to use one of these images in a Post, it would cause this
 error.

 Note that I haven't actually figured out how a "normal" user would get the
 image URL to use, but at least one of ours has, and that's how I was able
 to track this down 😅

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


More information about the wp-trac mailing list