WordPress.org

Support

Support » Multisite » Images suddenly disappeared on sub-blogs?

Images suddenly disappeared on sub-blogs?

  • westowp

    @westowp

    So I have a work related site up at blog.osbornewood.com

    the subsite of blog.osbornewood.com/besttaste/ had quite a few images. Everything was fine until a few days ago, when the images on the sub blog disappeared.

    I’ve manually uploaded some images, linked them via url, and those work. I’ve also looked in the blogs.dir, and used the actual path in a web browser and the images work that way. It seems that when the rewrite is applied for the blog something is amiss, and all we wind up with is a page which contains text instead of the image location.

    here is what I have in my .htaccess file:

    <IfModule mod_rewrite.c>
    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]
    </IfModule>
    # END WordPress

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

    This is a bit frustrating, so I’m hoping someone can help… Thanks in advance! 🙂

Viewing 13 replies - 1 through 13 (of 13 total)
  • Moderator Ipstenu (Mika Epstein)

    @ipstenu

    Are the files still listed in the media tab for the subsite?

    westowp

    @westowp

    Yes, they are. Even the thumbnails don’t show up in the media tab, but the weird thing is that the ‘Edit Image’ function still works just fine.

    Moderator Ipstenu (Mika Epstein)

    @ipstenu

    Okay, let’s try this…

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    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]
    </IfModule>
    # END WordPress
    
    <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>

    If that doesn’t work, did you add any new plugins or have any upgrades recently?

    westowp

    @westowp

    still the same result. If I try to access the file, i get the text path of the file instead:

    try out http://blog.osbornewood.com/besttaste/files/2010/11/01.jpg

    westowp

    @westowp

    I don’t have any plugins running on it at the moment.

    westowp

    @westowp

    Also, it doesn’t seem to generate an error in apache’s logs, just:

    [19/Nov/2010:14:32:44 -0500] “GET /besttaste/files/2010/11/01.jpg HTTP/1.1” 200 – “http://blog.osbornewood.com/besttaste/files/2010/11/01.jpg” “Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)”

    Which should be normal…

    Moderator Ipstenu (Mika Epstein)

    @ipstenu

    I get a blank screen, which is usually a PHP error…

    Rename your plugins folder to plugins-old and try again? Some don’t uninstall so well…

    westowp

    @westowp

    Ok, no dice there either. I also tried moving to another machine and directly accessing the file, and there it also regurgitates the link, but no image.

    Moderator Ipstenu (Mika Epstein)

    @ipstenu

    Now I’m getting a 404! That’s good!

    What’s the ‘real’ URL? It should be http://blog.osbornewood.com/wp-content/blogs.dir/2/files/2010/11/01.jpg or something…

    westowp

    @westowp

    westowp

    @westowp

    OK, so the link text is a firefox thing. Tried it in IE and I get a broken image icon.

    Andrea Rennick

    @andrea_r

    Customer Care at Copyblogger Media and Studiopress

    I bet the host did some upgrades. 🙂 That sometimes knocks things out of whack.

    westowp

    @westowp

    Is there a way to disable it from rewriting the url, and use the direct url instead?

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Images suddenly disappeared on sub-blogs?’ is closed to new replies.
Skip to toolbar