Opened 6 months ago
Last modified 2 months ago
#64600 new defect (bug)
[E_WARNING] Undefined array key "full" in wp-includes/media.php on line 4678
| Reported by: | ArtZ91 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Media | Version: | 6.9.1 |
| Severity: | minor | Keywords: | has-patch |
| Cc: | Focuses: |
Description
Actual code at 4678:
} elseif ( $meta['sizes']['full']['file'] ) {
Possible fix:
} elseif ( ! empty($meta['sizes']['full']['file'] ) ) {
Stack trace:
Array
(
[0] => Array
(
[file] => /wp-includes/media.php
[line] => 4678
[function] => {closure}
)
[1] => Array
(
[function] => wp_prepare_attachment_for_js
)
[2] => Array
(
[file] => /wp-admin/includes/ajax-actions.php
[line] => 3084
[function] => array_map
)
[3] => Array
(
[file] => /wp-includes/class-wp-hook.php
[line] => 341
[function] => wp_ajax_query_attachments
)
[4] => Array
(
[file] => /wp-includes/class-wp-hook.php
[line] => 365
[function] => apply_filters
[class] => WP_Hook
[type] => ->
)
[5] => Array
(
[file] => /wp-includes/plugin.php
[line] => 522
[function] => do_action
[class] => WP_Hook
[type] => ->
)
[6] => Array
(
[file] => /wp-admin/admin-ajax.php
[line] => 192
[function] => do_action
)
)
Attachments (1)
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
@ArtZ91 Thank you for opening a ticket.
Can you provide steps to reproduce this warning?