Call to undefined function utf8_decode() cause fatal error

Posted in: Newsmag
Post count: 1

After upgrade WordPress to version 4.9.1 I can’t anymore upload large audio files to Media Library.
When I post a large audio file (.mp3 of 15MB), I get a HTTP 500 error in Chrome console:

>>>> POST https://MY_SITE.com.br/wp-admin/async-upload.php 500 (Internal Server Error)

I checked the directory on host and the file is uploaded there, but it doesn’t appear on WordPress media library.

After enabled wp_debug and wp_debug_log and try to upload again I got this:

[04-Jan-2018 19:15:01 UTC] PHP Fatal error: Uncaught Error: Call to undefined function utf8_decode() in /var/www/html/wp-content/themes/Newsmag/includes/wp_booster/td_util.php:1218
Stack trace:
#0 /var/www/html/wp-includes/ID3/getid3.lib.php(968): mb_convert_encoding(‘Blues’, ‘UTF-8’, ‘ISO-8859-1’)
#1 /var/www/html/wp-includes/ID3/module.tag.id3v2.php(726): getid3_lib::iconv_fallback(‘ISO-8859-1’, ‘UTF-8’, ‘Blues’)
#2 /var/www/html/wp-includes/ID3/module.tag.id3v2.php(345): getid3_id3v2->ParseID3v2Frame(Array)
#3 /var/www/html/wp-includes/ID3/getid3.php(364): getid3_id3v2->Analyze()
#4 /var/www/html/wp-admin/includes/media.php(3136): getID3->analyze(‘/var/www/html/w…’)
#5 /var/www/html/wp-admin/includes/media.php(299): wp_read_audio_metadata(‘/var/www/html/w…’)
#6 /var/www/html/wp-admin/media-new.php(31): media_handle_upload(‘async-upload’, 0)
#7 {main}
thrown in /var/www/html/wp-content/themes/Newsmag/includes/wp_booster/td_util.php on line 1218

Post count: 9544

Check you max file upload size for php in your hosting panel, as good first test.
I usually upload large files via FTP, as safer way to upload audio and video files to my sites. I prefer not to clog my media manager with audio and video files, but that’s me.

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newsmag’ is closed to new topics and replies.