Just tagged release for 2.1.
Upgrading: be sure to read the release notes from 2.1b1, which outline steps you will need to take after upgrading from 2.0.x to 2.1. (If you previously used 2.1b1 or 2.1b2 you should already have done these steps).
See:
- 2.1 beta one release notes
- 2.1 beta two release notes
2.1 also incorporates a fix for Facebook's recent shift to _POST rather than _GET, which flz discusses at the end of this thread.
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
Posted 1 year ago #
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.
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
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
Posted 1 year ago #
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...
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.