Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #55204


Ignore:
Timestamp:
02/20/2022 09:11:53 AM (3 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #55204 – Description

    initial v1  
    11Hello. I wanted to upload this file to the library but got this error:
    2 
    3 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
    4 
     2{{{
     3Fatal 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
     4Stack trace:
     5#0 /var/www/html/hub/wp-includes/functions.php(425): number_format()
     6#1 /var/www/html/hub/wp-admin/includes/media.php(369): number_format_i18n()
     7#2 /var/www/html/hub/wp-admin/async-upload.php(114): media_handle_upload()
     8#3 {main} thrown in /var/www/html/hub/wp-includes/functions.php on line 425
     9}}}
    510I 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.
    611