Media Upload problem on Network Version
-
Hi,
I have installed WP 3.0.4 Network(Multi-Site) and all functions are fine except Image(media) uploading to Sub-Sites.
Thumb images(sub-sites) are not shown on Media library.(main site’s media library is fine).
Images in Main Site(wp-comtent/uploads/) are fine, but the images in sub-sites(wp-content/blogs.dir/id/files/…) has problem.
File URL can not bring the image at all. If I change “/subsite name/…” on image file url to “wp-content/blogs.dir/site-id/files”, it works.I just installed .htaccess file same with instruction.
Please HELP!!!
-
Are your subsites subfolder or subdomain?
What’s in your .htaccess file?
It is sub-directory and htaccess is;
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ – [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]I tried with this htaccess, but server error message is shown.
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ – [L]
RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
RewriteRule . index.php [L]
# END WordPress<IfModule mod_security.c>
<Files async-upload.php>
SecFilterEngine Off
SecFilterScanPOST Off
</Files>
</IfModule>After try to change above htaccess file, the site went to error.
So, I change back to original, but the site never come back!!!!Please help!
Just this should suffice for your .htaccess:
# BEGIN WordPress RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # uploaded files RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L] RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L] RewriteRule . index.php [L] # END WordPressCan you share your URL?
Thank you so much.
Because of error caused by above second htaccess file, I cleaned up and re-installing now.
On finishing re-install and test, I will let you know URL.Thank you so much for your help.
Michael.
Oh!
I have second network-site which has only one main and one sub site(no contents though).
This one has same problem with cleaned one.main site; www,haancom.com
sub-site: http://www.haancom.com/globalposts(I have installed MU sitewide Tags Plug-in and changed the name from tags to globalposts).I can give you the access to the server and WP admin etc, if you need.
How can I send the info?Thank you so much.
The main site does not show /blog/ on this site.
I did same install at same server but different domain & IP.
The site that I cleaned up shows /blog/ at main site.I just made another sub site /site2/, it works fine except image problem.
As I asked, both /globalposts/ and /site2/ does not bring the images those are in /blogs.dir/.Thanks.
I just re-installed and tested with one main and one sub-site.
main: http://www.haanpress.com
Sub: http://www.haanpress.com/losangelesThe same problem on Image loading to Media Library and front page.
Main site is OK. All network functions look fine so far other than image file loading.Still wondering the other main site(haancom.com) “why missing /blog/”.
Please help!
Dude. Take a breath π Also? Sometimes we sleep.
Posting multiple times in a short timespan makes it HARDER for us to help you. it’s better if you take the time to make one post with the information.
So okay. To SUMMARIZE for everyone playing at home:
1) http://www.haanpress.com, using subfolders, works fine.
2) http://www.haancom.com/, also using subfolders, doesn’t show the blog folder preface.for haancom.com, revert your theme to TwentyTen, turn off ALL plugins, and test again.
If that still fails, go into Super Admin -> Sites and click on EDIT for your main site. Scroll down to the Permalink Structure and verify that /blog/ is in there at all.
The main site does not show /blog/ on this site.
I did same install at same server but different domain & IP.
The site that I cleaned up shows /blog/ at main site.That /blog/ only shows up on subfolder installs to prevent collisions with page names on the main site and blog names.
Thank you so much for your help.
Please excuse me that I did not much familiar with the forum manner and English is my second lalguage.
Thanks anyway and will keep in mind.
And, well noted about showing /blog/. Thanks Andrea.Yes, all works fine but the only problem is “Images on the Sub-Sites’ /blogs.dir/ folder” does not loaded to Media Library and front webpages.
The image file URL with “/wp-content/blogs.dir/id/files/…” is working, but re-written with “/subsite-directory/ (instead of /wp-content/blogs.dir/id/)” does not work or can not bring the image to Media library and front webpage.This is the point what I want to clear.
Thank you so much.
Michael.
Andrea – Both sites are subdirectory installs, so the main site on both should include /blog/ … but we’ve got a lot going weird here.
It SHOULD be rewritten as domain.com/subsite/files/… – You should NEVER see blogs.dir in your URLs.
Since this all seems to work FINE on your second install, I’d scrap this one all together and start over. Something went wrong when you cleaned up.
Thank you so much for your help.
For your clear understanding about my sites;
1. Haancom.com & /site2/ & /globalposts/
1)This is first install of wp-network.
And I have installed “WP MU Sitewide Tags Pages” plugin.
This plugin site is;
http://haancom.com/globalposts/. It shows all the post on the network.2)I made subsite /site2/ and deactive all plugin, etc. But, /blog/ is not showing on main site URL. But it works fine including images.
http://haancom.com/2011/01/04/image-test-from-main-site/3)And, as I said images on subsites are not shown on Media library and front page.
(But, all the information about the image is shown on Media library page.)
http://haancom.com/site2/2011/01/04/inage-test-from-site-2/2. Haanpress.com & /losangeles/ & /newyork/
This is second install after clean up.
I cleaned up twice and re-boot twice prior to re-install.The result is same with first install.
All works fine(include /blog/) except images on sub-sites.3. Yes. I can not see the /blogs.dir/ on URL.It is re-written with /subsite/.
1)But, if I type /subsite/files/… url on the browser, the image is not showing up.
http://haancom.com/site2/files/2011/01/Chrysanthemum.jpg2)Instead, I type the uploading(physical) url /wp-content/blogs.dir/id/…., the image is showing up.
http://haancom.com/wp-content/blogs.dir/3/files/2011/01/Chrysanthemum.jpg3)On the Media library, it said File URL is;
http://haancom.com/site2/files/2011/01/Chrysanthemum.jpg
But, the image is not shown up.4. I followed both sites install by ww.wp.xz.cn instruction and both sites are on same server with different IP & Domain.
This is brief explanation so far.
I do not have knowledge regarding server, htaccess files.If you need more details, just let me know.
Your kind help would be highly appreciated.
Thank you so much.Michael
Hello Ipstenu,
I have a simmlar issue:
1.) Have 2 Domains running on 1 WordPress Network installation
2.) I use WP Multi-Network plugin to manage the Sites
3.) The blog on Domain1.com works fine
4.) The blog on Domain2.com canΒ΄t upload images
5.) I use the standard .htaccess that comes with “wp network mode”
Warning: Invalid argument supplied for foreach() in /www/htdocs/wp-includes/functions.php on line 2388
Dismiss β001_file1.pngβ has failed to upload due to an error
Sorry, this file type is not permitted for security reasons.
Do you have and idea how to fix this?
Best regards, Guntram
The topic ‘Media Upload problem on Network Version’ is closed to new replies.