• Resolved olorin

    (@olorin)


    Hello, since i upgraded WordPress this weekend to 3.3.1 (saturday), this plugin (video thumbnails) started creating hundreds of thumbnails on my server. I had to disable it today because my website was loading too slow.

    In fact, the homepage was loading slowly. The only reference to the plugin in my index page was this query:

    <?php if( ( $video_thumbnail = get_video_thumbnail() ) != null ) { ?> <img src="<?php echo $video_thumbnail ?>" alt="<?php the_title(); ?>" style="border: 1px solid #000;" width="120" height="90" />

    Once i disabled the plugin and removed this line, my website was finally loading as it should (fast) and my /uploads folder doesn’t seem to get anymore thumbnails in it. (from saturday to today, the plugin created 13,000 thumbs ! lol)

    Am i alone or it happened to someone else ? Any help ?
    Because i really appreciate this plugin, but at this time i cannot enable it 🙁

    Regards

    http://wordpress.org/extend/plugins/video-thumbnails/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter olorin

    (@olorin)

    Ok after some investigations, it looks like each time this code is displayed

    <?php if( ( $video_thumbnail = get_video_thumbnail() ) != null ) { ?> <img src="<?php echo $video_thumbnail ?>" alt="<?php the_title(); ?>" style="border: 1px solid #000;" width="120" height="90" />

    It creates a new thumbs in the media library

    And i don,t know what to do next.

    Plugin Author Sutherland Boswell

    (@sutherlandboswell)

    I had someone contact me about this problem and I offered a possible solution but never heard back, maybe you can test it out. Edit the plugin file and replace this section:

    // Check to see if thumbnail has already been found and still exists as a file
    	if( ( ($thumbnail_meta = get_post_meta($post_id, '_video_thumbnail', true)) != '' ) && wp_remote_retrieve_response_code(wp_remote_head($thumbnail_meta)) === '200'  ) {
    		return $thumbnail_meta;
    	}

    with this:

    // Check to see if thumbnail has already been found and still exists as a file
    	if( ( $thumbnail_meta = get_post_meta($post_id, '_video_thumbnail', true)) != '' ) {
    		return $thumbnail_meta;
    	}

    Thread Starter olorin

    (@olorin)

    Look like this code works perfectly.
    Thanks a lot for the quick fix !

    Thread Starter olorin

    (@olorin)

    Time to delete 13,678 thumbs now 😉

    Oh i forgot, when you will update your plugin, could you state in the changelog if it’s fixed or not, if it’s not, i won’t update it.

    Plugin Author Sutherland Boswell

    (@sutherlandboswell)

    Glad it fixed the problem, I’ll be sure to include a mention in the changelog. Sorry about the excess thumbnails, in the future I plan on adding some custom metadata to the video thumbnails so that they can all be wiped in case of a failure like this.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Video Thumbnails] Since 3.3.1 keep creating hundreds of thumbs’ is closed to new replies.