[wp-trac] [WordPress Trac] #20613: Multisite photo upload no longer working

WordPress Trac wp-trac at lists.automattic.com
Tue May 8 00:42:41 UTC 2012


#20613: Multisite photo upload no longer working
--------------------------+----------------------
 Reporter:  bigsite       |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Media         |     Version:  3.3.2
 Severity:  normal        |  Resolution:  invalid
 Keywords:  close         |
--------------------------+----------------------
Changes (by dd32):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 > and I'm seeing that the new directories being created by WordPress are
 owned by 'root', not the web server user.

 Unless your web server is running as root (bad idea) & PHP is running as
 root (even worse idea!) then it's not possible for PHP to change the
 ownership to root, without a system-level permission exploit.. which I can
 assure you !WordPress doesn't utilise :)

 This sort of problem is common when server migrations are done and
 permissions are not reset properly, or if someone manually uploads files.

 > What actually gets created in that directory is a symlink like this:

 !WordPress itself uses mkdir(),  You could use symlink() or link() and end
 up with a result like that, but once again, !WordPress doesn't do that.


 I don't think any of the problems you are seeing are caused by !WordPress,
 or can be fixed by !WordPress.[[BR]]
 It seems that either[[BR]]
 a) You have a plugin doing nasty stuff on the server/install[[BR]]
 b) You have a local script on the server running as root to manage
 something and it's getting in the way - it might be a cronjob or backup
 process even[[BR]]
 c)  You're having bad interactions between PHP and the OS/Filesystem  or
 the Filesystem is having troubles - If it's a remote filesystem, it could
 also be network issues.  Metadata might be being corrupted/written wrong
 causing new directories to be stored as symlinks, or ownership details
 changed..

 I'd seriously do some stand-alone testing with a php file (ie. mkdir(),
 file_put_contents() to write files, etc) and see if you can reproduce any
 similar problems that way, and/or from the command line, because you've
 got some problem there.. and it 'aint !WordPress.

 I'm closing the ticket as invalid, as there's nothing here that suggests
 it could potentially be a core !WordPress bug, You can still reply without
 re-opening it, but I  can't say you'll get much support here past what
 I've already said.   You might like to try the !WordPress support forums:
 http://wordpress.org/support/  or potentially a hosting forum such as "Web
 Hosting Talk" or similar (for example) as I know plenty of people who
 manage their own server drop by  there.

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


More information about the wp-trac mailing list