[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
Mon Jul 12 07:42:35 UTC 2010


#12549: Incorrect file URL for existing uploaded images (3.0-single to multi-site)
------------------------------------------+---------------------------------
 Reporter:  kpdesign                      |        Owner:          
     Type:  defect (bug)                  |       Status:  reopened
 Priority:  normal                        |    Milestone:  3.0     
Component:  Multisite                     |      Version:  3.0     
 Severity:  blocker                       |   Resolution:          
 Keywords:  multisite, reporter-feedback  |  
------------------------------------------+---------------------------------
Changes (by gazouteast):

  * status:  closed => reopened
  * resolution:  fixed =>


Comment:

 QUOTE - wpmuguru — 8 weeks ago

 Replying to jimmcq:
     Why is it only overwrriten for the main site? Shouldn't your change
 also apply to all sites?

 An upgraded MU install will have media folders as follows (excepting
 custom content dirs):
 /wp-content/blogs.dir/1/files /wp-content/blogs.dir/2/files /wp-
 content/blogs.dir/3/files ...

 A WP install after the network is enabled will have:
 /wp-content/uploads /wp-content/blogs.dir/2/files /wp-
 content/blogs.dir/3/files ...
 So, the only thing that needs to be excluded is a WP -> WP Network main
 site.
 UNQUOTE

 Just had a new site banjaxed by this uploads path issue.

 Site was a WPMU 2.9.2 new build with a repository theme (modern style)
 being rbuilt as the home site theme.  One additional blog was created for
 testing sub-blog to main-blog connectivity.

 I upgraded to 3.0 using the automatic updater (didn't bother with any
 backups because this is still a very early build and I can restart from
 just a save of the theme folder).

 Home theme is / should be blog 0 directly under blogs.dir, and the sub
 blog should be blog 1 in the /1/ folder according to what's said above.

 Nope - there is only the folder for /1/ into which some newly uploaded
 images arrived using the standard post media uploader - arriving into
 /blogs.dir/1/uploads/2010/07/ - they should have arrived into /wp-
 content/uploads/2010/07/ except none of that folder path exists.

 It seems that the upgrade has moved the home blog to /1/ and has
 overwritten the actual sub blog, even though it's still in the blogs list
 in admin.

 The prime symptom of this is that in both admin and public of the home
 blog, no images of any type show in posts and pages drafts, published or
 whatever.  The insert gallery from media uploader returns with just text
 links to images that do not display, and clicking those text links returns
 image not found.  However on the server, the images are there and viewable
 from cPanel using the file viewer.

 I've just done searches on WP.org and BP.org and there are literally
 hundreds of threads about non-displaying images, all started in the last
 few weeks.

 I did have both a trac ticket and WP.org / MU and BP.org forum posts a
 while back reporting a fix (for image non-display) due to hosting services
 disabling fread (I think - might have been fopen) but all those have been
 removed in entirety and I cannot locate them.

 '''I have 2 of my own sites completely killed by this, plus a client's
 site (upgraded from 2.9.2 single site to 3.0 single site - so it's not
 exclusively a multi-site issue).'''  I will not be upgrading any more
 sites until this is absolutely assuredly fixed.

 This issue is NOT resolved - 100's / 1000's of users have posted about
 this topic on WP's site forums in the last few weeks alone - it needs a
 major and urgent revisit.

 Gaz

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


More information about the wp-trac mailing list