July 28, 2009

WordPress 2.8 Media Upload Issue

Gotta love that WordPress. It seems like instead of doing a real, thorough QA, they rely on us to bitch and wine when shit doesn’t work until a.) one of us figures it out, or b.) we complain enough until they figure it out.

Then again, at least it’s a pure open source solution, unlike those greedy bastards at Varien who decided Magento was worth more than the price of a growing community.

But again, I digress.

So, are you among the dozens in this post that can’t upload their images after installing the new WordPress v 2.8?

Me to. At least I was until I figured out a small solution. I commented on the above post with the information below.

In the wordpress admin, go to “settings,” then “miscellaneous.”

The first input field should be for the directory to which you store your images… for me it was the absolute path to my wp-content/uploads directory so it looked sort of like this

/a/lot/of/directories/until/blog/wp-content/uploads

And that was the error… simply replace whatever is in those fields to

wp-content/uploads

Notice there is no backslash at the beggining! As long as you’re storing your files in the same directory as any normal wordpress user, this ought to work. Basically the trick is to not use the absolute path to the folder and just use whatever folder is under the main wordpress directory.

Make sense?

If this hack manages to work for you, let others know! Or, if it didn’t, let me know so I don’t feel so good about myself (this can be accomplished with numerous other approaches as well).

RSS feed for comments on this post.

  1. Laura — August 5, 2009 @ 7:59 am

    I found your post on the wordpress.org support — your “hack” worked beautifully! Thank you so much for posting this — you’ve saved me a lot of frustration!

  2. Paul — August 6, 2009 @ 9:22 am

    Thank you! Your solution fixed the problem with my installation.

  3. Cyndi — August 22, 2009 @ 9:03 am

    Unfortunately, this didn’t work for me. The dir under settings: misc was already wp-content/uploads.

    Since the update to 2.8, I can’t use any of the buttons on the Upload/Insert line. Image, video, etc all do nothing when clicked. I do get the popup name when my cursor is over them though.

    I also lost complete use of my plugin, Advanced Tag Entry. Going to their website, they say: “Note: Advanced Tag Entry is not recommended for WordPress 2.5 and later. Also, it doesn’t work at all for WordPress 2.2 and earlier versions. It is ONLY for WordPress 2.3.”

    I deactivated it, did a “save draft” on my post to get it to refresh. And boom, image uploading is working :) I haven’t tested the flash uploader since that never worked for me and I have a plugin to disable it. But the regular uploader seems just fine.

    For a good discussion of the plugin incompatibility issue, check out: http://wordpress.org/support/topic/278446/page/2

    But thanks for this tip because, even though it wasn’t my issue, it clearly is for many people and not something most would think of.

  4. Dave Lyon — August 29, 2009 @ 8:41 am

    Worked for me too! Thanks!

  5. Marc — August 30, 2009 @ 7:57 am

    Thank you, you saved my ass man.

  6. sankho — September 4, 2009 @ 8:55 am

    Cyndi,

    Thanks for the comment; I’m sure there’s someone out there with the same configuration and headaches; I hope they read your wisdom!

  7. Laurie — October 1, 2009 @ 6:25 am

    Worked great for me too! Thanks so much for a flawless solution and a headache saved.

  8. John F. — October 6, 2009 @ 1:52 am

    I have the same issue as Cyndi… I’ll try the “save as draft” workaround, but I hope something more permanent comes along.

    (I wonder, by the way, if this upload issue is related in any way to the “Categories” button for posts that no longer works and the fact that I can’t approve comments unless I open them to “edit” and then hit “approve” and “update” in the post editor.)

  9. John F. — October 6, 2009 @ 2:07 am

    UPDATE: I’ve discovered a plugin culprit, for those in the situation where their upload directory was already set up like the one mentioned above.

    Many other sites have pointed to PodPress. I didn’t have that plugin, but I did have another one mentioned — WP-Amazon 2.1 — and disabling that has restored image uploading, categories AND quick approval on comments.

  10. Nathan Watkins — October 7, 2009 @ 8:01 pm

    Worked like a charm!! I reintstalled WP 4 times and could never get anything to work. Thank you for making the open-source community a little bit better!

  11. David Whittley — October 19, 2009 @ 2:39 pm

    Worked a treat. Thank you very much.

  12. Jennifer Green — November 4, 2009 @ 2:35 pm

    Thank you a million times over! You rock.

  13. Travis @ TPD — November 15, 2009 @ 1:09 pm

    Holy! That worked like a charm. I was considering doing something stupid, like opening up a gigantic hole for hackers, but your solution worked out like a charm. Thanks!

  14. Tina — November 17, 2009 @ 12:10 pm

    AWESOME ~ Thanks! It worked for me also. I’m bookmarking you!! :)

  15. sankho — November 17, 2009 @ 1:22 pm

    Hey, nice site! I’m thinking of getting a Havanese… perfect NYC dogs… looks like I’m bookmarking you back!

  16. Becky — November 18, 2009 @ 6:11 am

    That worked for me! Thank you for the solution!

  17. Jeff — December 12, 2009 @ 12:28 pm

    Finally a solution that works for this. All the other theories about conflicting plugins were inaccurate in my case. Thank you for taking the time to help us with this.

    Jeff

  18. daMax — March 4, 2010 @ 8:38 am

    Since upgrading to 2.9.2, I have serious problems uploading files OTHER THAN images. Images work fine, but when I upload anything else (PDF,TXT) the files get uploaded to the correct directory but wordpress is not able to display them in the media library! I searched the whole web but it seems that no one else has this problem.

    All folders are 777, so it cannot be a permission-problem. Here’s a screenshot of my media library trying to show a pdf:
    http://tinypic.com/r/t67xxy/6

    The corresponding source code of the page looks like this:
    http://tinypic.com/r/2rfd4l3/6

    This is a serious issue, because I am not able to get a link to the uploaded files anymore. Of course I can create the links by myself (as I said: the files ARE THERE), but this is annoying as hell.

    If any of you lot out there has any idea of how to fix this, please contact me via mail[AT]todamax[DOT]kicks-ass[DOT]net

    Thanks.

  19. sankho — March 8, 2010 @ 6:27 am

    Hey Max,

    Sounds like you have something screwing up the way wordpress is entering data for file locations and such. Either something went wrong in your upgrade, or you have a plugin that’s not up to date to the upgrade and interfering.

    I’d try disabling plugins (always a wordpress debugging first thing to do) and seeing if one of those is causing the issues.

    If not – you may need to reinstall everything again :-( . Backup what you’ve got.

Leave a comment

Best of Blog

  1. Let’s do the kids a favor: HTML as a classroom language
  2. USTORE.js – cross browser local and session storage
  3. Add Facebook Connect to your PHP Web App
  4. Setting up your website on Rackspace Cloud Servers – Manage Your Own Hosting
  5. Tutorial: Using Zend_Captcha_Image

Search if you must