Title: Plugin function returns an empty file
Last modified: August 30, 2016

---

# Plugin function returns an empty file

 *  Resolved [taridonohue](https://wordpress.org/support/users/taridonohue/)
 * (@taridonohue)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/plugin-function-returns-an-empty-file/)
 * I’m attempting to export the media library and import it to a new WP site. It
   returns an empty file. Should I be export/importing posts first? Would that give
   it something to attach to?
 * [https://wordpress.org/plugins/wp-attachment-export/](https://wordpress.org/plugins/wp-attachment-export/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Pete](https://wordpress.org/support/users/helvetian/)
 * (@helvetian)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/plugin-function-returns-an-empty-file/#post-6253803)
 * Hi,
 * – does the normal Tools->Export work? Are you able to export your posts?
    – do
   you actually have any media in Media->Library?

Viewing 1 replies (of 1 total)

The topic ‘Plugin function returns an empty file’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-attachment-export_ae6a68.svg)
 * [WP Attachment Export](https://wordpress.org/plugins/wp-attachment-export/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-attachment-export/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-attachment-export/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-attachment-export/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-attachment-export/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-attachment-export/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Pete](https://wordpress.org/support/users/helvetian/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/plugin-function-returns-an-empty-file/#post-6253803)
 * Status: resolved