WordPress.org

Ready to get started?Download WordPress

Forums

Images suddenly disappeared on sub-blogs? (14 posts)

  1. westowp
    Member
    Posted 3 years ago #

    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! :)

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

  3. westowp
    Member
    Posted 3 years ago #

    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.

  4. 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?

  5. westowp
    Member
    Posted 3 years ago #

    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

  6. westowp
    Member
    Posted 3 years ago #

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

  7. westowp
    Member
    Posted 3 years ago #

    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...

  8. 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...

  9. westowp
    Member
    Posted 3 years ago #

    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.

  10. 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...

  11. westowp
    Member
    Posted 3 years ago #

  12. westowp
    Member
    Posted 3 years ago #

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

  13. I bet the host did some upgrades. :) That sometimes knocks things out of whack.

  14. westowp
    Member
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic