$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>Why is Wordpress creating duplicate images on exportimport of media library?|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

Why is Wordpress creating duplicate images on exportimport of media library?

matteradmin11PV0评论

Hi I am using the standard Wordpress import/export tool to try to copy my media library to another WP instance. I export selecting only the media. I download the XML file. I import it to the new WP instance - assign the users etc.

I hit run, it does import the images, but it is randomly creating duplicates. Like a lot of duplicates, maybe 90% of images are duplicated. Sometimes multiple duplicates, as in 2 or 3 additional copies.

These aren't different size versions, these are identical versions, same filesize, same dimensions, same names but with filename-1, i.e. adding -1, -2, -3 on the end of the file name.

I've looked through the XML I can't see duplicate data in there. I don't know why it's creating these duplicates. I don't know why it's not duplicating all of them, just most of them. And why some are being duplicated several times.

I've disabled all plugins except the Wordpress importer.

The exporting WP version is 5.7.2, the importing version is 6.7.2 I don't know if this would have an impact.

Any idea why this might be happening? Thanks for your assistance.

Post a comment

comment list (0)

  1. No comments so far