Support » Fixing WordPress » Images upload fine but are broken and wont display

  • Resolved active_benjamin

    (@active_benjamin)


    I have a real brain buster of an issue with images.

    Images upload fine and get stored in the proper folder…
    I just uploaded one, and it went to the
    /wp-content/blogs.dir/27/files/2010/9 folder on the server.

    However, the image didn’t display in the uploader preview, or on the post… and I can’t direct link to it.

    Thanks in advance for any help, i’m just not sure where to go from here or what I can search for.

    This 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]

    RewriteRule ^(.*/)?uploads/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?uploads/(.*) 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]

Viewing 15 replies - 1 through 15 (of 24 total)
  • Hi,
    I like to look at the easy stuff first… in Admin, Settings… Media… Uploading Files….

    Take a look at “Store uploads in this file” and see if it’s wrong.That’s often messed up, especially if someone moves a site.

    Even if it matches the huge path you described above, it may want the default setting, for instance.

    good luck, Dave

    in settings… media …. I don’t have an Uploading Files ?!?! I’m on WordPress 3.0.1

    The files get put into the correct place, they’re just not accessible once they’re uploaded. I get broken images, and file not founds.

    Hi! Are you uploading via FTP, or the media uploading tool. I had to mess around uploading with the flash version, without the flash version, via FTP mess with settings, etc before I could finally get it to work. Unfortunately, I don’t remember what finally made it work, but now the uploader works correctly for me…though it only correctly posts TIFF files. I know that’s not much help, but just make sure you’ve tried all the options.

    esmi

    (@esmi)

    Forum Moderator

    though it only correctly posts TIFF files.

    Well, that’s not right. You shouldn’t be using .tiff files on the Web. Have you checked with your hosts that an up-to-date version of GD Library in installed & running?

    Yep. They say it is installed, running and correctly figured. They told me to try the basic theme, which I’ll do now.

    Nope – that didn’t do it either. JPGs just give me a question mark in a box, both in the dashboard in the edit post/page section and online.

    esmi

    (@esmi)

    Forum Moderator

    Have you tried opening up any of these .jpgs in a graphics application such as Photoshop or GIMP and re-saving them (using standard encoding or optimised for web use, if that’s an option)?

    Well, no…seems a ridiculous amount of work when the TIFFs work fine…but I’ll try it out. I gather that some browsers can’t see TIFF images.

    That didn’t work. I chose the save for the web option – still get the question mark in the blue box. The other option, from Microsoft – Jpeg2000 (jpg2)- “does not meet security requirements.”

    esmi

    (@esmi)

    Forum Moderator

    I gather that some browsers can’t see TIFF images.

    Correct. They’re also much large in terms of file size than a .jpg or a .png – which means a slower download.

    What graphics application are you using to save these images?

    Depends…some of them were Photoshop, some “save as picture” in Word, some from Snag-it, Preview…that’s all I remember.

    esmi

    (@esmi)

    Forum Moderator

    Stick to Photoshop for image preparation. Word may not save .jpgs correctly for web use. Not sure about the others.

    OK..but still…the photoshop versions don’t work, either. I’ve tried .png, .gif and .btp as well…nothing shows up but tiffs.

    esmi

    (@esmi)

    Forum Moderator

    Have you tried asking your hosts about this? It’s not WP that is blocking those image formats (and pretty much any .png file should work).

    Yes, I have, and also about the GD Library as advised here. They say it’s not them…I should as WordPress.

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘Images upload fine but are broken and wont display’ is closed to new replies.