Title: Automatic Youtube Video Posts Plugin Warning: Illegal offset type
Last modified: August 21, 2016

---

# Automatic Youtube Video Posts Plugin Warning: Illegal offset type

 *  [AardvarkGirl](https://wordpress.org/support/users/aardvarkgirl/)
 * (@aardvarkgirl)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/automatic-youtube-video-posts-plugin-warning-illegal-offset-type/)
 * Warning: Illegal offset type in /wp-content/plugins/automatic-youtube-video-posts/
   core/video.php on line 72
 * I’m using the most recent version of WP and a child 2010 theme. It was all working
   fine (no error) until I updated WP and the plugin.
 * This is how I’m calling in the thumbnails:
 *     ```
       <?php the_post_thumbnail(array(100,100), array('class' => 'alignleft post_thumbnail'));?>
                     <?php the_excerpt() ?>
       ```
   
 * And this is in the functions.php file
 *     ```
       // This theme uses post thumbnails
       	add_theme_support( 'post-thumbnails' );
       ```
   
 * and
 *     ```
       /* this is for thumbnails*/
       if ( ! function_exists( 'twentyten_posted_in' ) ) :
   
       function get_post_thumbnail() {
        $files = get_children('post_parent='.get_the_ID().'&post_type=attachment&post_mime_type=image');
        if($files) :
        $keys = array_reverse(array_keys($files));
        $j=0;
        $num = $keys[$j];
        $image=wp_get_attachment_image($num, 'large', false);
        $imagepieces = explode('"', $image);
        $imagepath = $imagepieces[1];
        $thumb=wp_get_attachment_thumb_url($num);
        print $thumb;
        else:
        print "<?php bloginfo('stylesheet_url'); ?>/images/post-thumb.png";
        endif;
        }
       //
       ```
   
 * [http://wordpress.org/plugins/automatic-youtube-video-posts/](http://wordpress.org/plugins/automatic-youtube-video-posts/)

The topic ‘Automatic Youtube Video Posts Plugin Warning: Illegal offset type’ is
closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/automatic-youtube-video-posts_e39595.
   svg)
 * [Automatic Youtube Video Posts Plugin](https://wordpress.org/plugins/automatic-youtube-video-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/automatic-youtube-video-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/automatic-youtube-video-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/automatic-youtube-video-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/automatic-youtube-video-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/automatic-youtube-video-posts/reviews/)

## Tags

 * [Automatic Youtube Video Posts Plugin](https://wordpress.org/support/topic-tag/automatic-youtube-video-posts-plugin/)
 * [illegal](https://wordpress.org/support/topic-tag/illegal/)

 * 0 replies
 * 1 participant
 * Last reply from: [AardvarkGirl](https://wordpress.org/support/users/aardvarkgirl/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/automatic-youtube-video-posts-plugin-warning-illegal-offset-type/)
 * Status: not resolved