Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

Fatal error: Call to undefined function get_post_thumbnail_id() (5 posts)

Started 1 year, 3 months ago by: crowdsourcewriting

  • Profile picture of crowdsourcewriting crowdsourcewriting said 1 year, 3 months ago:

    Hi everyone!

    I’ve been using WP/BP for a little while on the blog http://www.ZesterandPeeler.com without any glitches.
    Then, all of a sudden, my gallery upload started acting up. When I try to upload an image to include in a post, I receive the error message:

    Fatal error: Call to undefined function get_post_thumbnail_id() in /homepages/26/d354374997/htdocs/wp-admin/includes/media.php on line 1292

    I tried with different images, including images I’ve uploaded before.
    I am using WP 3.0.4 and BP 1.2.7
    The theme I am using is the BuddyPress Default 1.2.7

    Can someone shed some light on why this is happening?

    Thank you.

  • Profile picture of Grosbouff grosbouff said 1 year, 2 months ago:

    Got the same problem (WP3.1+BP1.2.8)
    Should work as current_theme_supports( ‘post-thumbnails’ ) returns true…

  • Profile picture of Grosbouff grosbouff said 1 year, 2 months ago:

    Anyone ?

  • Profile picture of r-a-y r-a-y said 1 year, 2 months ago:

    I haven’t tested this myself, but the bp-default theme in BP 1.2 does not add theme support for post-thumbnails.

    This would have to added to your child theme’s functions.php:

    http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails

    Also read the note here:

    http://codex.wordpress.org/Function_Reference/get_the_post_thumbnail#Notes

    Give that a shot and report back.

  • Profile picture of Grosbouff grosbouff said 1 year, 2 months ago:

    OK, but then why current_theme_supports( ‘post-thumbnails’ ) returns true ?
    I’ll give a shot and tell you what.