Title: Cannot insert media, error message
Last modified: August 19, 2016

---

# Cannot insert media, error message

 *  Resolved [justinpixler](https://wordpress.org/support/users/justinpixler/)
 * (@justinpixler)
 * [16 years ago](https://wordpress.org/support/topic/cannot-insert-or-attach-media-error-message/)
 * 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

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Riversatile](https://wordpress.org/support/users/riversatile/)
 * (@riversatile)
 * [16 years ago](https://wordpress.org/support/topic/cannot-insert-or-attach-media-error-message/#post-1482961)
 * 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.
 *  Thread Starter [justinpixler](https://wordpress.org/support/users/justinpixler/)
 * (@justinpixler)
 * [16 years ago](https://wordpress.org/support/topic/cannot-insert-or-attach-media-error-message/#post-1483016)
 * 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.
 *  Thread Starter [justinpixler](https://wordpress.org/support/users/justinpixler/)
 * (@justinpixler)
 * [16 years ago](https://wordpress.org/support/topic/cannot-insert-or-attach-media-error-message/#post-1483027)
 * nevermind, i was able to find it here: [http://svn.automattic.com/wordpress/trunk/wp-admin/includes/post.php](http://svn.automattic.com/wordpress/trunk/wp-admin/includes/post.php)
 * it’s working again, thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Cannot insert media, error message’ is closed to new replies.

## Tags

 * [media](https://wordpress.org/support/topic-tag/media/)
 * [post](https://wordpress.org/support/topic-tag/post/)
 * [upload](https://wordpress.org/support/topic-tag/upload/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [justinpixler](https://wordpress.org/support/users/justinpixler/)
 * Last activity: [16 years ago](https://wordpress.org/support/topic/cannot-insert-or-attach-media-error-message/#post-1483027)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
