[wp-trac] [WordPress Trac] #63529: Fatal Error Media Upload MP3 PHP 8.2 when metadata contains list

WordPress Trac noreply at wordpress.org
Mon Jul 28 13:05:30 UTC 2025


#63529: Fatal Error Media Upload MP3 PHP 8.2 when metadata contains list
-------------------------------------------------+-------------------------
 Reporter:  sllimrovert                          |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  6.9
Component:  Media                                |     Version:  6.8
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-test-info has-unit-    |     Focuses:
  tests needs-testing                            |
-------------------------------------------------+-------------------------
Changes (by rollybueno):

 * keywords:  has-patch has-test-info needs-unit-tests => has-patch has-
     test-info has-unit-tests needs-testing


Comment:

 Updated the test unit to focus on the main issue in this task. The test
 data tructure will closely resemble the attachment file metadata which has
 {{{
 [
     'album' => 'Map the Dark',
     'title' => 'Back in Spring',
     'artist' => 'Quote the Raven',
     'albumartist' => 'Quote the Raven',
     'tracknumber' => '1/9',
     'isrc' => 'CAFOV2400002',
     'date' => '2024',
     'encoder' => 'WaveLab Pro 11.1.20',
     'involved_people' => [
         [
             'role' => 'Mastered by Justin Perkins @ Mystery Room
 Mastering',
             'name' => ''
         ]
     ]
 ]
 }}}

 especially the 'involved_people' key which is an array that causing the
 fatal error.

 https://github.com/WordPress/wordpress-develop/pull/8901/files#diff-
 1828470281074506315d482d58fa75908b8a4b060c83df15db3b6a0deec1ce16

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


More information about the wp-trac mailing list