Import XML
-
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'] );
- The topic ‘Import XML’ is closed to new replies.