WordPress.org

Ready to get started?Download WordPress

Forums

Broken Image/media (32 posts)

  1. scherschels
    Member
    Posted 3 years ago #

    Right now I am running a wordpress network with around 300 blogs. All except the main blogs images are broken. They upload to the correct folder in blog.dir but they do not show up. I am able to see images on the main site but that is all. Here is my .htaccess file

    RewriteEngine On
    RewriteBase /
    
    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.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>

    Any one have any ideas?

  2. Did you upgrade from WPMU? There's a lot out of date there...

    There are now different .htaccess' to use, if you're using SubFolder or SubDomain installs http://codex.wordpress.org/Create_A_Network#.htaccess_and_Mod_Rewrite

  3. scherschels
    Member
    Posted 3 years ago #

    Yes it was from WPMU 2.8 but everything was ok at 3.0.1 but once it went to 3.0.3 they broke. I also had some server issues that corrupted some of my database. I think I have everything in the database repaired but still not sure if it is a database or a .htaccess issue.

  4. scherschels
    Member
    Posted 3 years ago #

    I am also using subfolders

    http://blogs.wws.k12.in.us

    the blogs in the are all effected.

  5. everything was ok at 3.0.1 but once it went to 3.0.3 they broke

    This would be the kicker here. The rewrite rules should not have been affected. :-/

    I'd be double-checking those db issues to see if anything affecting images was related to it first.

  6. Since the .htaccess is a brainless fix I'd start with this:

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

    I mean, I doubt it'll fix it, but it WILL be somewhat more efficient, and then you can narrow it all down.

  7. scherschels
    Member
    Posted 3 years ago #

    Thanks Ipstenu you were right nothing really changed. Are there specific tables or records I should be looking at in the database.

  8. scherschels
    Member
    Posted 3 years ago #

    Something also weird is that pdf files that are uploaded to media are showing up and so are powerpoints.

  9. scherschels
    Member
    Posted 3 years ago #

    Does anyone know Why Power Points and PDF's would work but not images?

  10. scherschels
    Member
    Posted 3 years ago #

    The image does not load like this and this is the address wordpress creates.

    http://blogs.wws.k12.in.us/wordpress/files/2010/11/banner2.jpg

    but it will using this link do I need to change something somewhere.

    http://blogs.wws.k12.in.us/wordpress/wp-content/blogs.dir/371/files/2010/11/banner2.jpg/

  11. Interesting. I get a blank page and NOT a 404.

    Can you verify that /wp-includes/ms-files.php exists?

  12. iwese
    Member
    Posted 3 years ago #

    I have the same problem with the image-upload since i updated to 3.0.3. An example is: http://bloggat.me/?attachment_id=245 all the images will now be shown as that. Why? And what should i do?

  13. scherschels
    Member
    Posted 3 years ago #

    Just looked for it and yes it is in there.

  14. scherschels
    Member
    Posted 3 years ago #

    Iwese yeah looks like the exact same issue. too strange.

  15. iwese
    Member
    Posted 3 years ago #

    I just wanted to add that ive tested everything that you said above.

  16. iwese
    Member
    Posted 3 years ago #

    Just wanted to tell that i solved a problem, i diabled all the pugins and it was evDbFiles that made it go weird.

  17. scherschels
    Member
    Posted 3 years ago #

    I disabled all of my plug-ins also. I have no luck though.

  18. When did this start happening?

  19. scherschels
    Member
    Posted 3 years ago #

    After the upgrade to 3.0.3.

  20. What version did you upgrade FROM? There were, literally, less than 10 files changed from 3.0.1 to 3.0.4, so I'm really surprised...

    Can you try making a post off your main blog and see if images show up there?

    ETA: Okay, looked at your helloworld where there's an image

    http://blogs.wws.k12.in.us/wp-content/uploads/2010/12/Winter.jpg works

    http://blogs.wws.k12.in.us/files/2010/12/Winter.jpg does NOT

    Did you ever do a manual update? Delete the wp-admin and wp-includes folders and copy them back up?

  21. scherschels
    Member
    Posted 3 years ago #

    no I have not tried a manual update. i will give it a try. everything is no white.

  22. scherschels
    Member
    Posted 3 years ago #

    After the Manual update. I get server error 500. I have.

  23. scherschels
    Member
    Posted 3 years ago #

    500 error fixed but everything is now white only.

  24. scherschels
    Member
    Posted 3 years ago #

    Ok after fixing a couple thing everything is back to where we were with No images showing up.

  25. scherschels
    Member
    Posted 3 years ago #

    Ok here is where I am at... In my wp_config file the only way I can access wp-admin is to have `define( 'SITE_ID_CURRENT_SITE', 0); I can Upload photos and view the like normal on my "1" blog. Hope this helps.

  26. What happens if you comment out the whole line?

  27. mchseo
    Member
    Posted 3 years ago #

    I have same problem on sub-sites' images.
    All images stored in "/blogs.dir/" are not shown on Media Library and web pages.
    Anybody found the answer?

  28. scherschels
    Member
    Posted 3 years ago #

    I added a second super admin and that allowed me to keep the "1" in there. Images and videos are still not showing up. I am able to access the mp3's pdf's and powerpoints on there.

  29. Do you have any sort of hotline protection turned on for your server?

  30. scherschels
    Member
    Posted 3 years ago #

    I don't think so. Images showed up 3 weeks ago, and if I do it would have been running then

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.