IN Blogging

WordPress 2.6 Uploading Broken Images – Fix

posted Friday, August 8th, 2008

If you have just upgraded to WordPress 2.6 you might notice one slight problem. You are no longer able to upload your images. They show up as broken images. It doesn’t matter whether you use the AJAX option or not, the result is the same.

Surprisingly not everyone is facing this problem.

A client of mine has the exact same configuration on his blog (give or take a couple of plugins) as mine. However, he faced the broken image problem while I did not. Of course we have blogs on different servers so that might have something to do with it.

The Fix

The fix is pretty simple. It’s just finding it that takes time :)

  1. Browse to your WordPress admin settings.
  2. Click on Miscellaneous
  3. The first field there is ‘Store uploads in this folder’ and most probably contains the folder wp-content/uploads. The second field ‘Full URL path to files (optional)’ is most likely blank. It is this field which you need to fill up. Add the full path to your uploads folder as follows (assuming your upload folder is wp-content/uploads).

    http://www.yourdomain.com/wp-content/uploads

    Your images should now upload without a problem.

  • http://www.ladudapublicidad.es articulos publicitarios

    Hi, thanks for your post, great tips.

  • http://www.kondiment.ro Gabi @ Online Marketing Romania

    I do use WP 2.6 but I have not noticed this problem. Thanks for warning.

  • http://www.dotsndashes.com Erum Munir

    It is one of those problems that just crops up once in a while. Most probably has to do with your server settings. I didn’t have the problem at my blog either.

  • Alex

    I just ran into this very same problem and wasted a couple of hours searching for a solution. I thought that my problems were related to running WP on XAMPP under Windows and directory permissions, so I was looking for a solution in a wrong place. I am glad I found your post or who knows how much longer I’d be searching for a fix. Thanks a lot!

  • http://www.dotsndashes.com Erum Munir

    Glad you have been able to fix it. This one freaked me out, too, when I first encountered it.

  • http://www.revsoftware.ca Shane

    Thanks, very helpfull

  • mindy

    this did not help me. the image uploads but appears broken still. i did the absolute path. i even changed the storage directory. can someone help me?

  • http://www.dotsndashes.com Erum Munir

    @mindy, Sorry to hear that. Try upgrading to the latest version. Perhaps that has a fix.

  • http://regalocosas.com Sergio Forés

    I had exactly the same problem. Thanks for help!

  • http://www.dotsndashes.com Erum Munir

    Glad I could help :)

  • http://www.usedtaylormade.com Dan

    OMG! It worked perfectly! Been pulling my hair out over this one and you had the exact answer!

    Thanks a million!

  • WebSam

    Thanks so much for this info, i was scratching my head wondering why it wasn’t working. :)

  • Senz

    Thank you! That worked perfectly!

  • http://1721media.com Linda Hargrove

    Hi. I’ve been having this problem since the 2.6 upgrade. My only workaround was FTPing the files into /images. Wow, this was so much easier. Thanks.

  • http://www.rainboweleven.com Charlotte

    This issue had been plaguing me for some time – thanks for providing a fix – simple as it seems now!!! Much appreciated :)

  • http://shakemycouch.com/blog/ Randy

    These instructions were only part of the fix for me. After setting the full URL Path, I also had to go into my FTP client and set the directory Attributes to 775 recursing.

    I found this info here: http://wordpress.org/support/topic/279429

blog comments powered by Disqus