Forums

[resolved] Cannot insert media, error message (4 posts)

  1. justinpixler
    Member
    Posted 2 years ago #

    Fatal error: Call to undefined function get_post_mime_types() in /home/xxxxxx/public_html/noonecaresaboutwhatyoudo.com/wp-admin/includes/media.php on line 1157

    that's what i see when i try to insert the media into my posts. i know they're still uploading because i can see them in media>library, i just can't use them.

    i use the theme videographex, just before this happened my friend that does some simple coding for me installed the postmash plugin, but he doesn't think he edited anything that would've caused this.

    i really appreciate any help. thanks.

    -justin

  2. riversatile
    Member
    Posted 2 years ago #

    Hi,

    Check the file called "wp-admin\includes\post.php", you must find a line :
    function get_post_mime_types()

    If you don't find this line, this mean there is no function called "get_post_mime_types" !!! Otherwise, try to overwrite the file "wp-admin\includes\post.php" to solve the issue.

  3. justinpixler
    Member
    Posted 2 years ago #

    thanks for the quick reply. can you tell me exactly where in the script that line is supposed to go? we haven't been able to make it work.

  4. justinpixler
    Member
    Posted 2 years ago #

    nevermind, i was able to find it here: http://svn.automattic.com/wordpress/trunk/wp-admin/includes/post.php

    it's working again, thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic