Opened 3 months ago
Closed 3 months ago
#61997 closed defect (bug) (duplicate)
Undefined array key "height" and "width" in wp-includes/media.php on line 1241 and 1242
Reported by: | internationils | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.0 |
Component: | Media | Keywords: | has-patch |
Focuses: | Cc: |
Description (last modified by )
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.
Change History (3)
This ticket was mentioned in PR #7307 on WordPress/wordpress-develop by navinrangar.
3 months ago
#1
- Keywords has-patch added
#2
@
3 months ago
- Description modified (diff)
- Version changed from 6.6.1 to 4.0
I'm doing triage for 6.6.x cycle. No changes were made in this function or its usage in 6.6.1. In searching for usages of _wp_get_image_size_from_meta()
, it was introduced in WP 4.4.0 via [35412]. Updating the Version
that introduced this code to 4.4.0
.
#3
@
3 months ago
- Milestone Awaiting Review deleted
- Resolution set to duplicate
- Status changed from new to closed
Hello @internationils,
Welcome back to WordPress Core's Trac.
Ticket #57239 is already open for this issue. To keep the discussion in one place, closing this ticket as a duplicate. I invite you to contribute to that ticket. Also to help contributors triage, please share more information in that ticket such as step-by-step instructions on how to reproduce the issue, debugging you've done, etc.
Thank you.
Wrote a check to see if the 'key' we are trying to access does exist in the object or not.
Trac ticket:
https://core.trac.wordpress.org/ticket/61997#no0