Upload Path and site_id problems
-
We have found a bug. If you clone a blog with a site_id of 400 for example and the Upload Path was set to wp-content/blogs.dir/300/files for example. The new site (401) will inherit the Upload Path of wp-content/blogs.dir/300/files and the files (images) will not copy over to the new blog during the cloning process.
The plugin only copies over the files when the site_id and Upload Path match. So site_id = 400 and Upload Path = wp-content/blogs.dir/400/files will work but not site_id = 400 and Upload Path of wp-content/blogs.dir/300/files.
More worrying is that if you then delete the new site with the site_id of 401, wordpress will delete all of your images from the Upload Path of wp-content/blogs.dir/300/files and mess up that other blog!
I realize that the site_id and the Upload Path should match but not all sites do and ours don’t because of some past bad clones where the problem got perpetuated across our network and many sites have the same Upload Path. It seems that wordpress does not use the Upload Path anymore to upload images as they are going in the correct subdirectory when uploaded. When we delete the blog is where there is a problem and it effects the other blogs files.
Can we check to see that these match before cloning and certainly not perpetuate the problem by copying the variable, unchanged) to the new blog? Thank you.
- The topic ‘Upload Path and site_id problems’ is closed to new replies.