[wp-trac] [WordPress Trac] #12549: Incorrect file URL for existing uploaded images (3.0-single to multi-site)

WordPress Trac wp-trac at lists.automattic.com
Sun Mar 7 21:28:51 UTC 2010


#12549: Incorrect file URL for existing uploaded images (3.0-single to multi-site)
--------------------------+-------------------------------------------------
 Reporter:  kpdesign      |       Owner:            
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  Multisite     |     Version:  3.0       
 Severity:  normal        |    Keywords:  multisite 
--------------------------+-------------------------------------------------
 I upgraded an existing 2.9.2 single WordPress install to 3.0-alpha (latest
 nightly build), then converted it to multi-site yesterday. Image paths on
 the 3.0-alpha single install were fine, but once I converted it to multi-
 site, the existing uploaded image paths appear to be broken.

 The images for the main site (now site 1) are located in '''wp-
 content/uploads/''' and broken down into '''year/month''' folders.

 The existing uploaded images fail to display in the following locations in
 the Admin area:

 - Post Thumbnail meta box: Gives me the option to remove the thumbnail, so
 it recognizes that an image had been assigned as the post thumbnail.[[BR]]
 - Add Image link above the post box: Shows one image in the gallery, but
 the image doesn't display.[[BR]]
 - Media Library: I'm presented with the list of existing uploaded images,
 but image thumbnails are missing.

 I was able to get the images to display again by manually copying the
 '''year/month/''' folders inside '''wp-content/uploads/''' over to '''wp-
 content/blog.dir/1/files/'''.

 However, the old files are still being referenced in older posts/pages,
 and plugins that allow image uploads (example: WP Cycle). Those will have
 to be fixed somehow to reflect the new image locations.

 1. Are there plans to include a migration script to move the existing
 year/month folders into the proper directory when converting from single
 to multi-site? If not, there should be a notice to the user during or
 after the conversion that they will need to manually move those folders
 into the correct directory.

 2. Existing references/links to these uploaded files will break if the
 user moves the files to '''wp-content/blog.dir/1/files/''' and deletes the
 old folders in '''wp-content/uploads/'''. Possible to fix those references
 when converting from single to multi-site?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12549>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list