WordPress.org

Support

Support » Plugins and Hacks » [Plugin: WPBook] 2.1 released

[Plugin: WPBook] 2.1 released

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi John,

    I’ve followed the instructions for changing the configuration and have run into an issue with v2.1 after upgrading from 2.0.13.

    I’m getting the following error when posting –

    Fatal error: Call to undefined function get_the_post_thumbnail() in /home/autoacom/subdomains/blog/wp-content/plugins/wpbook/includes/publish_to_facebook.php on line 72

    Is there a missing file that I need?

    Thanks,
    Greg

    oraclebase
    Member

    @oraclebase

    Just upgraded. Same problem as groggu.

    Fatal error: Call to undefined function get_the_post_thumbnail() in …./blog/wp-content/plugins/wpbook/includes/publish_to_facebook.php on line 72

    Cheers

    Tim…

    Sorry – Also should have added, this is on WP 3.1 and the blog is at
    http://blog.brandmotion.com

    Thanks

    Greg

    Sorry – had to downgrade. My customer wants to use the software now.

    Plugin Author John Eckman
    Member

    @johneckman

    Can you add:
    add_theme_support( 'post-thumbnails' );

    To your theme’s functions.php?

    Not sure why get_the_post_thumbnail() would not exist – it goes back to WordPress 2.9.0 – but maybe it is suppressed if your theme doesn’t support it?

    Thanks John,

    This blog is on the 4ColoursLover 1.1 theme. Don’t know why (or how) they would have dropped support for this function. I’ll try adding the support as you suggest.

    This site is for a client and I’ll have to set up another version of the app for testing. so it might be a bit before I can let you know the results.

    Greg

    Plugin Author John Eckman
    Member

    @johneckman

    I will wrap the call to get_post_thumbnails() into a check so that it won’t throw this error, but I think that will break the functionality of having post thumbnails used in wall excerpts.

    oraclebase
    Member

    @oraclebase

    Hi.

    I’m using the “blog.txt” theme on the blog it failed on. Adding that line to the start of my functions.php file fixed it for me.

    Thanks very much for the support and of course for the plugin.

    Cheers

    Tim…

    Plugin Author John Eckman
    Member

    @johneckman

    I’ve also released 2.1.1 as a bug fix, which checks first to see if post_thumbnails are supported.

    But you’d really want to enable them anyway, since now in your post-edit screen you can set what custom thumbnail you want to be used when it is posted to Facebook.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: WPBook] 2.1 released’ is closed to new replies.