[wp-trac] [WordPress Trac] #61997: Undefined array key "height" and "width" in wp-includes/media.php on line 1241 and 1242

WordPress Trac noreply at wordpress.org
Fri Sep 6 08:42:21 UTC 2024


#61997: Undefined array key "height" and "width" in wp-includes/media.php on line
1241 and 1242
----------------------------+-----------------------------
 Reporter:  internationils  |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Media           |    Version:  6.6.1
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 I am getting lots of these errors in my logs:
 2024-09-01_03:38:54_PHP Warning:  Undefined array key "height" in
 /srv/data/web/vhosts/MYSITE.COM/htdocs/wp-includes/media.php on line 1242
 2024-09-01_03:38:54_PHP Warning:  Undefined array key "width" in
 /srv/data/web/vhosts/MYSITE.COM/htdocs/wp-includes/media.php on line 1241

 They are coming from the code below... any chance of catching the error
 and hinting at where it is coming from (what file, possibly an SVG or
 something with dimensions not specified?) As is, its pretty hard to figure
 out whats causing it and if its a real problem or an annoyance.

 https://github.com/WordPress/wordpress-
 develop/blob/8e89a9856e3d8369225df0c63cb6911ec884ab4f/src/wp-
 includes/media.php#L1241

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61997>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list