Opened 3 years ago
Closed 3 years ago
#55204 closed defect (bug) (fixed)
Error in upload mp3 file with wrong ID3 tags
Reported by: | mjkhajeh | Owned by: | peterwilsoncc |
---|---|---|---|
Milestone: | 6.0 | Priority: | normal |
Severity: | normal | Version: | 5.9 |
Component: | Media | Keywords: | has-patch php8 commit |
Focuses: | administration | Cc: |
Description (last modified by )
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.
Attachments (2)
Change History (7)
This ticket was mentioned in Slack in #core by costdev. View the logs.
3 years ago
Note: See
TracTickets for help on using
tickets.
Per the discussion in the bug scrub, I'm adding the
commit
keyword for commit consideration.