WordPress.org

Ready to get started?Download WordPress

Forums

Facebook
[resolved] Fatal Error (11 posts)

  1. MarshallWayne
    Member
    Posted 1 year ago #

    The Facebook plugin installed just fine.

    The comments, and "Like" box work.

    However, when I try to publish, and have it posted to my Facebook page, and fan page, it gives me this:

    Fatal error: Call to undefined function get_post_thumbnail_id() in /home/stopmar/public_html/wp-content/plugins/facebook/fb-social-publisher.php on line 193

    I hope someone can help.

    Thank you.

    http://wordpress.org/extend/plugins/facebook/

  2. Samuel Wood (Otto)
    Tech Ninja
    Plugin Contributor

    Posted 1 year ago #

    The get_post_thumbnail_id() function has been in WordPress since version 2.9.

    The plugin requires WordPress version 3.1.1 or higher. Upgrade.

    If you have upgraded, then make sure that you have all the correct core WordPress files and aren't running some kind of bad upgrade in some way.

  3. MarshallWayne
    Member
    Posted 1 year ago #

    Hmmmm....

    I have the latest upgrade.

    I completely deleted my blog last night, and reinstalled within my Host Gator cPanel, so I could start fresh.

    So I don't have any conflicting plugins at the moment either, and the only posts are posts to test this plugin.

    I'm not sure what to do.

  4. MarshallWayne
    Member
    Posted 1 year ago #

    I think it may be that when I try to submit my publish actions for review in the Facebook Developers dashboard, I get this:

    You must publish at least one action to your Timeline using this action type. Review the documentation.

    I'm not sure how to publish an action, unless it means I can just manually enter my link to my page, or fan page.

  5. speechpoet
    Member
    Posted 1 year ago #

    Adding this to functions.php - add_theme_support( 'post-thumbnails' ); - stopped the undefined function error. But I can't get "Publish to author's Timeline" to stay checked, and the posts don't show up in the timeline.

  6. MarshallWayne
    Member
    Posted 1 year ago #

    Thank you for that tip. I added that section to functions.php, but just like you, I'm not seeing the posts show up in the timeline.

  7. MarshallWayne
    Member
    Posted 1 year ago #

    It's posts to a friends wall now if I tag the friend, so that's a step.

  8. seravi
    Member
    Posted 1 year ago #

    Hm...I'm getting the same undefined function error, and also recently upgraded. How does one go about doing this particular advice:

    "make sure that you have all the correct core WordPress files and aren't running some kind of bad upgrade in some way. "

  9. jasonlanderson
    Member
    Posted 1 year ago #

    I noticed this was put as resolved, but I see the post from 2 hours ago seems to be have an issue. I just enabled this plugin as well now and get this error when I attempt to publish a post.

    No post shows on the timeline and I get this screen right after publishing.

    Fatal error: Call to undefined function get_post_thumbnail_id() in /home/gstyle/public_html/wp-content/plugins/facebook/fb-social-publisher.php on line 193

    Can someone let me know what the resolution of this is. I have the latest WordPress version, and all the core files are fine.

    Thanks

  10. MarshallWayne
    Member
    Posted 1 year ago #

    I simply did what speechpoet laid down, and that worked perfectly:

    Adding this to functions.php - add_theme_support( 'post-thumbnails' ); - stopped the undefined function error.

    ...so, go to your Appearance tab, then to Editor.

    You'll then click on, "Theme Functions" which will be functions.php

    Under, "// Theme specific functionality", I added this:

    add_theme_support( 'post-thumbnails' );

  11. jmunchbach
    Member
    Posted 1 year ago #

    I'm trying to correct the same problem (I think...)

    Fatal error: Wrong parameters for Exception([string $exception [, long $code ]]) in /home/content/37/9099637/html/wp-content/plugins/facebook/includes/facebook-php-sdk/base_facebook.php on line 54

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic