Title: Error while importing videos
Last modified: August 21, 2016

---

# Error while importing videos

 *  Resolved [stereonom](https://wordpress.org/support/users/stereonom/)
 * (@stereonom)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/error-while-importing-videos/)
 * Hi.
 * When the plugin tries to import videos it fails with:
    Fatal error: Call to undefined
   function wp_read_video_metadata() in …/wp-admin/includes/image.php on line 122
 * I clean installed WP 3.7.1. No other plugins active.
 * Any idea?
 * [http://wordpress.org/plugins/photostream-sync/](http://wordpress.org/plugins/photostream-sync/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [apokalyptik](https://wordpress.org/support/users/apokalyptik/)
 * (@apokalyptik)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/error-while-importing-videos/#post-4354793)
 * This *should* be fixed in 2.0.3. Mind upgrading and giving it another go?
 *  Thread Starter [stereonom](https://wordpress.org/support/users/stereonom/)
 * (@stereonom)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/error-while-importing-videos/#post-4354799)
 * it works.
    thanks, awesome work!
 *  Thread Starter [stereonom](https://wordpress.org/support/users/stereonom/)
 * (@stereonom)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/error-while-importing-videos/#post-4354840)
 * when I add a video only to photostream and the video gets insert into wordpress
   the code is:
    [gallery][video mp4="http://www…video.mp4"]
 * Is it possible for you to remove the unnecessary [gallery]-element?
 *  Thread Starter [stereonom](https://wordpress.org/support/users/stereonom/)
 * (@stereonom)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/error-while-importing-videos/#post-4354841)
 * and one additional request: videos from photostream are often very big. would
   you please add a setting where I can say preload=”none” or even make it the default?
 *  Plugin Author [apokalyptik](https://wordpress.org/support/users/apokalyptik/)
 * (@apokalyptik)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/error-while-importing-videos/#post-4354854)
 * > Is it possible for you to remove the unnecessary [gallery]-element?
 * Maybe. It’s not going to be a simple thing though. That tag allows WordPress 
   to add the image gallery into the post automagically. It doesn’t, however, add
   videos to the auto-generated gallery. So my workaround here was to leave the 
   existing [gallery] which gets *all* the images in one code, and then add the 
   individual videos to the page… Since we don’t necessarily know if more images
   and/or videos are coming through at the time we are adding videos to the post
   it gets tricky…
 * Is it actively causing a problem?
 *  Plugin Author [apokalyptik](https://wordpress.org/support/users/apokalyptik/)
 * (@apokalyptik)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/error-while-importing-videos/#post-4354855)
 * > and one additional request: videos from photostream are often very big. would
   > you please add a setting where I can say preload=”none” or even make it the
   > default?
 * I can add the ability to customize the video shortcode in a similar way to how
   I allow customizing the gallery shortcode…
 *  Thread Starter [stereonom](https://wordpress.org/support/users/stereonom/)
 * (@stereonom)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/error-while-importing-videos/#post-4354860)
 * > Is it actively causing a problem?
 * No, I just thought it would be cleaner without it.
    But when it’s that hard you
   can leave it there.
 * > I can add the ability to customize the video shortcode in a similar way to 
   > how I allow customizing the gallery shortcode…
 * That would be very nice.
 *  Plugin Author [apokalyptik](https://wordpress.org/support/users/apokalyptik/)
 * (@apokalyptik)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/error-while-importing-videos/#post-4354905)
 * I added support for adding content inside the [video] shortcodes in version 2.0.4.
   Mind upgrading and giving it a go?

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Error while importing videos’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/photostream-sync.svg)
 * [photostream-sync](https://wordpress.org/plugins/photostream-sync/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/photostream-sync/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/photostream-sync/)
 * [Active Topics](https://wordpress.org/support/plugin/photostream-sync/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/photostream-sync/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/photostream-sync/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [apokalyptik](https://wordpress.org/support/users/apokalyptik/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/error-while-importing-videos/#post-4354905)
 * Status: resolved