Fixed: Auto Featured Image Not Working After Upgrade WordPress 3.4

If you use either the Auto Featured Image or Auto Post Thumbnail plugin you may have noticed that your automatically created thumbnails are not working since the WordPress 3.4 update.Fixed: Auto Featured Image Not Working in Wodpress 3.4

The issue is that thumbnails which are created by the plugins don’t have a _wp_attached_file entry in the _postmeta table, which manually created thumbnails do.


The solution to the problem in to do the following:

1: Open your media library in WordPress and delete all of the the grey, unattached images which do not appear to have a thumbnail. They should look just like the ones in the picture in this post.

2. You’ll have to edit the plugin for this one so fire up your FTP client and download whichever of the two plugins you are using.

Open the plugin in your favorite editor and locate the code below. In auto-featured-image.php it’s line 202, and it’s line 258 of auto-post-thumbnail.php

wp_update_attachment_metadata( $thumb_id, wp_generate_attachment_metadata( $thumb_id, $new_file ) );
return $thumb_id;

Replace it with the code with the following:

wp_update_attachment_metadata( $thumb_id, wp_generate_attachment_metadata( $thumb_id, $new_file ) );
update_attached_file( $thumb_id, $new_file );
return $thumb_id;

Upload the plugin to your site, find the settings page for your plugin and hit the “generate thumbnails” button. Now sit back and wait while the plugin regenerates all of the thumbnails again.

Thanks to misthero for originally finding the solution for the Auto Post Thumbnail plugin.

Filed in: Blogging, Wordpress Tags: , , ,
Thanks for making this possible! Kindly Bookmark and Share it.

Get Updates

Recent Posts

One Response to "Fixed: Auto Featured Image Not Working After Upgrade WordPress 3.4"

  1. Bcupakes says:

    Thanks! You save my blog!

Leave a Reply

Your feedback is always appreciated. We will try to reply to your queries as soon as time allows.
Please do not spam Spam comments will be deleted immediately upon our review.

Submit Comment
© 2013 Enet Blog. All rights reserved.
Theme Designed by Freemium Themes. Google+