• I have uploaded podcast mp3 files for years now but as of this week I am getting an error. I have a theme that has been customized but no longer supported, therefore I am stuck on an old wordpress version. I have tried uploading through ftp with the same error. Other file types upload fine still (pdf, jpg).

    Here is the error I get when uploading….
    Fatal error: Call to undefined function wp_kses_post_deep() in /home/cbcowasso/cbcowasso.org/wp11/wp-admin/includes/media.php on line 3051

    Any help would be appreciated.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Moderator t-p

    (@t-p)

    there is a ticket about MP3 uploads problem:
    https://core.trac.www.ads-software.com/ticket/40075

    Thread Starter rylandrussell

    (@rylandrussell)

    Those problems there don’t seem similar to mine beyond it being mp3 files…

    I’m having exactly the same problem rylandrussell. I’ve tried a number of things but can’t find a solution. Have you had any success?

    Thread Starter rylandrussell

    (@rylandrussell)

    I actually just removed that line in the media.php file and re uploaded the edited php file. It works normally now.

    Moderator t-p

    (@t-p)

    Side note to @rgpanda,

    Please do not jump into other topics. As per the Forum Welcome, please post your own topic. That way you stand a good chance of getting the assistance you want.

    Thread Starter rylandrussell

    (@rylandrussell)

    I would have never seen their question that way. I mean, if I’m having the same exact problem as someone else, why wouldn’t I ask how they fixed it?

    Thanks for your reply rylandrussell, I’ll give that a go.

    I’ve the same issues, I’ve not update my wordpress (4.1.16)
    If I upload images or pdf, the upload end correctly.
    If file is mp3 obtain this error:
    Fatal error: Call to undefined function wp_kses_post_deep() in /opt/www/my.domain.ext/wp-admin/includes/media.php on line 3021
    If I go via ftp on /wp-content/uploads/{Year}/{Month}/ the file is present.
    If I go in media library there isn’t!

    If I upload an mp4 file, I got this error:
    Fatal error: Call to undefined function wp_kses_post_deep() in /opt/www/my.domain.ext/wp-admin/includes/media.php on line 2980
    If come back to the media library the file is present!

    I appreciate some suggestion to solve the problem.

    Thread Starter rylandrussell

    (@rylandrussell)

    Try deleting line 3021 and 2980 from your media.php file. That is what worked for me. Obviously keep the original file in case it breaks something.

    The workaround to comment the lines of file wp-admin/include/media.php:
    2980: $metadata = wp_kses_post_deep( $metadata );
    3021: $metadata = wp_kses_post_deep( $metadata );
    for me work!

    But I dont understand the cause of problem! in past I’ve uploaded mp3 files with the same version of wordpress

    After version 4.7.1 I installed ‘Disable real MIME check’ plugin as a temporary fix, because mp3 files were not being successfully uploaded to a site I set up and still advise on (a talking newspaper for the blind).

    I am confused about the current situation. Should I remove the plugin? If so, what will happen? The guy who uploaded the podcast this month told me he had to do my workaround of ftp’ing the files individually, as even the plugin wasn’t working.

    Help appreciated.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Fatal error – uploading mp3 files’ is closed to new replies.