Title: Import XML
Last modified: February 25, 2020

---

# Import XML

 *  [shuwi](https://wordpress.org/support/users/shuwi/)
 * (@shuwi)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/import-xml-5/)
 * Thx for plugin! it save much time with media uploading.
    But I have some specific
   problem. I need ipmort 10000+ images. And when I want to register them I have
   500 timeout error. I played with Limit number of search files, Search method 
   of files and also with max_execution_time on php.ini. Nothing can’t help solve
   my problem. And i decided to import my files with plugin. But I haven’t thumbnail
   images on server. Just full images. I want create it with this plugin. And when
   I import xml with `_wp_attachment_metadata` it display error no file. So I think
   that import function can’t create thumbnails. At first I should upload thumbnail.
   Am I right?
 * Not about this question. But about import. When import xml I have 0% progress.
   When I debug import function I see that data of $item with \n and \t. Code where
   I find it `foreach ( $xml->channel->item as $item )`. I solve it with replace.
   
   And function unserialize not work with my exported data. I solve it with:
 *     ```
       $fixed_data = preg_replace_callback ( '!s:(\d+):"(.*?)";!', function($match) {      
       	return ($match[1] == strlen($match[2])) ? $match[0] : 's:' . strlen($match[2]) . ':"' . $match[2] . '";';
       }, $value['postmeta_wp_attachment_metadata_value'] );
       ```
   
    -  This topic was modified 6 years, 7 months ago by [shuwi](https://wordpress.org/support/users/shuwi/).

 The topic ‘Import XML’ is closed to new replies.

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

 * 0 replies
 * 1 participant
 * Last reply from: [shuwi](https://wordpress.org/support/users/shuwi/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/import-xml-5/)
 * Status: not resolved