Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#13128 closed defect (bug) (invalid)

upload/crop avatar in multisite setup (solution proposed)

Reported by: psycolor Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Upload Keywords:
Focuses: Cc:


there are two problems here:

  • the htaccess file need to be changed for wp 3.0 (and i guess it was the same for wp2.9.2?)
  • the settings of the main blog must also be modified.

this is what is in my htaccess for wp 3.0

RewriteEngine On RewriteBase /

# uploaded files RewriteRule (.*/)?files/$ index.php [L] RewriteCond %{REQUEST_URI} !.*wp-content/plugins.* RewriteRule (.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule - [L] RewriteRule . index.php [L]

# add a trailing slash to /wp-admin RewriteCond %{REQUEST_URI} .*/wp-admin$ RewriteRule (.+)$ $1/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule . - [L] RewriteRule ([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L] RewriteRule ([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] RewriteRule . index.php [L]

<IfModule mod_security.c> <Files async-upload.php> SecFilterEngine Off SecFilterScanPOST Off </Files> </IfModule>

the settings of the main blog can be accessed via the 'sites' under superadmin and then 'edit', all the site options are under there

(as i didn't use the WPMU before i struggled to find the options for a while!)

here there are 3 different entries for upload (don't ask me why) 1- upload path: i set this to wp-content/blogs.dir/1/files 2- upload url path: i left this blank as after a few experiment doesn't seem to do anything 3- file upload url: also left blank as it seems to duplicate the base url

i'm guessing this might be a bug, but as i'm not too sure about why there are three different upload entries for me it does solve the problem; you can double check if the extra variables are an effect of the merge.

Change History (1)

#1 @nacin
8 years ago

  • Milestone 3.0 deleted
  • Resolution set to invalid
  • Status changed from new to closed

MU is quite complicated. All of these do something somewhere, none fully duplicate each other. For a taste, see #12639.

Note: See TracTickets for help on using tickets.