• I have recently installed WordPress MU and it seems to work perfectly except for one issue. Whenever I try to upload a picture (might also be a problem for other types of uploads, but I’ve only tried pictures) it seems to upload normally and it even gets the size of the image, but the image itself won’t show and when I try opening the image in a new tab I only get an error page as if nothing is there.

    This problem is not only for posts, but also for the custom header and avatar for the buddypress plug-in.

    I have tried re-installing with no luck. However the normal version of wordpress works just fine.

    Any solutions?

Viewing 15 replies - 31 through 45 (of 50 total)
  • For the record the solution to my problem was that Mod_rewrite was not initiated in my Apache site config file correctly.

    I needed to change
    AllowOverride None

    To
    AllowOverride All

    As soon as I did that and reloaded Apache, bang! Images now work.

    ~n

    ah-hah! the changing the #uploaded files portion of the .htaccess worked for me

    thanks!

    This is an installation I automatically upgraded from WPMU 2.92. I followed the directions when upgrading, and the images and galleries disappeared, showing broken image boxes.

    the instruction to delete the blogs.php file *and* update the rewrite rules? ??

    They should have been in a different order.

    Thread Starter christorp

    (@christorp)

    Well, I give up.

    Hey Chris,

    Don’t give up yet:

    Changing the #uploaded files portion worked for me, but notice that the .htaccess file has permission and ownership restrictions. I used Cpanel’s file manager and I thought the file had been changed, but kept getting the same error. On a second look, I realized the content hadn’t been modified. You may want to check that again…

    Cheers!

    Sorry to hear that Chris. Running a network does require more technical knowledge and certainly isn’t for everyone.

    Hi,
    I really want to fix this issue with my site as well.
    I am really confused. I’ve spend 2 hours trying to figure this out.
    this is my .htaccess

    RewriteEngine On
    RewriteBase /

    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [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>

    What code do I need to add in there so that I can upload images to my blog using the Media Uploading function?

    should I be looking in the config file instead?

    Change this line

    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

    just like it said in the upograde instructions.

    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-filess.php?file=$2 [L]

    Hi Andrea,
    I just did that right now and I am still not seeing the images. I read the read me file that came with the upload. Would you happen to have a link to the upgrade instructions?
    Thanks so much
    -Illya

    Hi Andrea,
    Found the file in the DOCS section. Thank you so much for the code. That fixed it. It works with the subdirectories.
    But since I started to screw around with editing the main site option, so that’ll be fun to figure out. But again, thank you.
    -Illya

    Chris – I had a similar problem and fixed it by cleaning the output – see https://www.ads-software.com/support/topic/new-30-install-images-not-working-in-subsites/page/2?replies=60#post-1662597

    dosius71

    (@dosius71)

    Just check that the path specified in your dashboard Settings -> Media -> ‘Store uploads in this folder’ is the correct folder path on your server.
    I had a legacy path in their from a backup and it was pointing in the wrong place. It should be pointing to your_wordpress_install_directory/wp-content/uploads/

    I’m not sure it will fix your problem but you should rule it out during troubleshooting.

    paluchgda

    (@paluchgda)

    anyone fix this problem with uploading files into blogs? I have the same problem.
    blogs.dir – exist
    images are on the server when i look via ftp
    no images in media and page

    this is my image with good path
    https://www.pbon.pl/wp/wp-content/blogs.dir/7/files/2010/11/wwwsolutions_2.jpg

    this is from dashboard
    https://www.pbon.pl/wp/abcimmobilien/files/2010/11/IMG_5526-Panorama.jpg

    where is part of the path ?
    abcimmobilien is wp-content/blogs.dir/7 ? If yes there is a problem with .htaccess?

    RewriteEngine On
    RewriteBase /wp/
    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]

    paluchgda

    (@paluchgda)

    i discovered one thing

    i have another wpmu on the same server but not in subfolder and it works.

    Broken WPMU is on the https://www.xxx.xx/wp/

    Is this problem?

Viewing 15 replies - 31 through 45 (of 50 total)
  • The topic ‘Image upload issue’ is closed to new replies.