[resolved] MU - Images not appearing (20 posts)

  1. thevegastourist
    Posted 6 years ago #

    Opps... Posted this in another place before I found this one.

    I am running beta multi blogs at http://tevegastourist.net.

    Images uploaded to the main blog loads and shows fine.

    Images loaded to other blogs not working.
    Here is the one not showing

    When you "view image" i shows the URL the photo is supposed to be at.

  2. Check your .htaccess. It should be this:

    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]
  3. thevegastourist
    Posted 6 years ago #

    Fixed the .htaccess to be as you posted. Still no luck.

    It shows a blank box where the pic should be and if you click the link, it shows the URL of the pic, but not the pic

  4. Well it's not a 404 error (file not found) so I'm wondering if the image is corrupted. Try uploading another image you know is good? (i.e. one you've uploaded elsewhere before).

  5. thevegastourist
    Posted 6 years ago #

    I uploaded the same image on the main blog http://thevegastourist.net
    as I did to http://www.thevegastourist.net/reviews/

    On the main blog, the pic shows up just fine.
    On the second blog I get the blank box.

    You click the photo and on the main you get the pic.
    Click on the image on the second blog and you get a bad URL to the photo

    The upload path is wp-content/blogs.dir/2/files
    and the images are there.

    so the image is at

    But the blog thinks its

    So where do I fix the code showing where the image really is??

  6. thevegastourist
    Posted 6 years ago #

    Using the same image for testing purposes.

    On the main blog, the image shows perfect.

    On this blog

    Posted the same image on a second blog

    I get a blank box.
    The post shows the image location as

    When it really is at

    So how do I change it to display the right location of the image?? What did I miss on the install??

  7. Well .. see that's actually correct.

    This line in .htaccess
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

    Says 'Any time someone asks for a file from '<whatever>/files/', use the ms-files.php page to parse what that is and send back the image.'

    What version of 3.0 are you using? Beta or a nightly build?

  8. thevegastourist
    Posted 6 years ago #

    Thank you for the help.
    MU will be a learning curve....

    "You are using a development version (3.0-beta2-14896)."

    I am in Beta with the Beta Tester Update plugin set to "point release Nightlies"

  9. When you go into the blog on the media browser (admin side), do the images show correctly?

    I wonder if it's related to this: http://core.trac.wordpress.org/ticket/13483

  10. thevegastourist
    Posted 6 years ago #

    No they do not show correctly. I get a number.

    I will try to follow that ticket. It sounded similar to my problem until they got off on too much coding talk and I am not as proficient in PHP as I would like to be.

  11. No they do not show correctly. I get a number.

    Okay, this is VERY much not a htaccess issue then :) Good! We're on a track!

    Go into your database and in the table for the subblog (which will be wp_#_options, and # is whatever blog number this is), look for fileupload_url.

    If it's missing, go ahead and add it in as http://www.thevegastourist.net/(blogname)/files (no trailing slash).

    I don't have those on blogs I IMPORTED, but I do on both blogs created directly IN WordPress MultiSite. Now the trac ticket seems to imply that those values aren't needed anymore (and in fact aren't used). Instead, WP should be using upload_path but I wonder if that's actually not true, which is why I'm suggesting added this :)

  12. thevegastourist
    Posted 6 years ago #

    It's already there as you posted..

    I tried to change it to what the real URL of the images are at. Changed fileupload_url to http://www.thevegastourist.net/wp-content/blogs.dir/2/files/ and it still is not working right.

    However... If I place the image in my post and manually change http://www.thevegastourist.net/reviews/files to http://www.thevegastourist.net/wp-content/blogs.dir/2/files
    it works fine.

    But that would be a pain if I have to do that all the time to each image I post.

  13. This is not a 'fix' but it'll get you through the day.

    Add this to your .htaccess file, ABOVE the WordPress rules

    RewriteRule ^reviews/files/(.*)$ http://www.thevegastourist.net/wp-content/blogs.dir/2/files/$1 [L,R=301]
  14. Frumph
    Posted 6 years ago #


    What are the values for fileupload_url and upload_path in the options table for that one particular site.

  15. thevegastourist
    Posted 6 years ago #

    You're right, its not a fix, but makes the posting work and Getting me thru the day is what I need right now.

    It works, image posting...

    Hoping this glitch will be fixed when I update with the final initial release of the real 3.0 sometime later this year....

    upload_ path is wp-content/blogs.dir/2/files

    fileupload_url is http://www.thevegastourist.net/wp-content/blogs.di...

  16. thevegastourist
    Posted 6 years ago #

    Am I the only one having this problem??

    If so, do I need to do a new install??

    The "fix" worked for one site, but not the others.
    Meaning I have to do all the changes and coding above to each site??

    Again, I thank everyone for their help. Every time I think I have a grip on WP and PHP, they throw a curve ball!!

    But this one is a doozy

  17. Scratching my head, but over the weekend I installed the RC, enabled the network & posted an image on the second blog. It worked.

    So... I dunno what is going on with your install.

  18. Yeah, my 'fix' will need to be applied for each sub-blog

    RewriteRule ^BLOGNAME/files/(.*)$ http://www.thevegastourist.net/wp-content/blogs.dir/BLOGNUM/files/$1 [L,R=301]

    And I can't repro the error either :(

  19. thevegastourist
    Posted 6 years ago #

    As long as it works... I will deal with the final release when it happens....

    I just happen to be one of those lucky few that are the *except... You know when you go to get a part for your car and the store manual says "yes this is the part for all models except for model###" Your car is THAT model....

    Yea, that's me!

    Thanks for the help.

  20. Séno
    Posted 5 years ago #

    i've the same problem (v 3.1.1).. but, hahaha.. resolved by your tricks. thank u Ipstenu..

Topic Closed

This topic has been closed to new replies.

About this Topic