[wp-trac] [WordPress Trac] #55204: Error in upload mp3 file with wrong ID3 tags

WordPress Trac noreply at wordpress.org
Sun Feb 20 04:00:57 UTC 2022


#55204: Error in upload mp3 file with wrong ID3 tags
----------------------------+-----------------------------
 Reporter:  mjkhajeh        |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Media           |    Version:  5.9
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 Hello. I wanted to upload this file to the library but got this error:

 Fatal error: Uncaught TypeError: number_format(): Argument #1 ($num) must
 be of type float, string given in /var/www/html/hub/wp-
 includes/functions.php:425 Stack trace: #0 /var/www/html/hub/wp-
 includes/functions.php(425): number_format() #1 /var/www/html/hub/wp-
 admin/includes/media.php(369): number_format_i18n() #2 /var/www/html/hub
 /wp-admin/async-upload.php(114): media_handle_upload() #3 {main} thrown in
 /var/www/html/hub/wp-includes/functions.php on line 425

 I figured out the file has the wrong ID3 tags and this is the cause of the
 error. It can fix simply by adding a condition to check if track_number is
 numeric.

 Thanks.

 File: [https://mjkhajeh.ir/Ahmad-Solo-Raha-320.mp3]

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


More information about the wp-trac mailing list