How to fix WP-Error “Unable to create directory /wp-content/uploads/”

error 300x197 How to fix WP Error Unable to create directory /wp content/uploads/

For some reason, a lot of WordPress 2.5 to WordPresss 2.6 upgrader continue to suffer in this “weird bug”.  I’m also become a victim of this Bug when I upgraded my WordPress from v2.3x to WordPress 2.5, I though I’m gonna stuck back again to stone age where I need to FTP my image and point to that directory. So what’s the purpose of the upgrade if that will be the case, right? So why not we enjoy the power of the future, the WordPress 2.6 power!

If you think uploading image to your post is a pain in your butt well this is your lucky day (I guess), for sure changing the setting permission to chmod 755 or 777 not work as well to you? simply because that was not the problem but if you still not try that before I will suggest try my suggestion first and then lets check your file permission chmod later. Let’s straight to the solution now.

How To Fix”Unable to create directory”:

1. Log-in to your WordPress admin page.

2. Go to SETTINGS –> MISCELLANEOUS.

3.  At the “Uploading” section, make sure that the box is empty if not delete all the text input inside – “STORE UPLOADS IN THIS FOLDER and FULL URL PATH TO FILES (OPTIONAL).”

no backslash 300x182 How to fix WP Error Unable to create directory /wp content/uploads/

4. Or you may put the default setting at   “STORE UPLOADS IN THIS FOLDER: =>  wp-content/uploads” (see the picture below).

5. In my case, I notice as shown in the picture below that my text at “STORE UPLOADS IN THIS FOLDER” had a two backslash before “wp-content/uploads” and this is the reason that result the error and when I delete the two backslash everything went normal again. So better check this and make sure that you input the right text as sample without the “//” and that’s it!!!

backslash 300x181 How to fix WP Error Unable to create directory /wp content/uploads/

Enjoy WordPress 2.6!

Post a Comment or Leave a Trackback

18 Comments

  1. Posted August 6, 2008 at 4:54 pm | Permalink
    Thanks for this article :) I found it very useful and was able to apply it to another plugin that uses the /uploads folder.
  2. Posted September 1, 2008 at 1:28 am | Permalink
    Thanks for the tips.

    But, after setting in the miscellanous, should we set the permission to 777? Is it secure if we set the directory permission to 777?

  3. Posted September 1, 2008 at 9:03 am | Permalink
    @Aikidoka:

    No you don’t need to do that, it will really make your site vulnerable to hackers. just change the value in miscellaneous and your good to go. :)

  4. Posted December 8, 2008 at 6:17 am | Permalink
    Hey your this post is very interesting. One of my friend said the same thing to me the other day. I think I will think it over and get back to you. Great work!
  5. Posted December 14, 2008 at 5:48 am | Permalink
    Awesome. Thank you for sharing this! It works perfectly now :)
  6. FIXED
    Posted January 1, 2009 at 3:07 pm | Permalink
    THIS FIXED MY PROBLEM:

    I was playing with some of the settings that weren’t mentioned in any of the posts I found on the forums and was able to fix the problem WITHOUT messing with permissions and safe-mode. When logged into WordPress dashboard(wp-admin url page) I went to settings>miscellaneous. I changed ‘Store uploads in this folder’ to ‘wp-content/uploads’ (mine was this by default but I made sure it was this since I read it could cause this problem if it wasn’t this), then I unchecked the ‘Organize my uploads into month- and year-based folders’ box. Unchecking this box and saving the changes is what solved my problem.

  7. Posted February 12, 2009 at 2:27 am | Permalink
    @pinoyconsole,

    Thank you! but actually it didn’t solve my problems since my blog is already working for sometime then I just encountered this problem today. Have check the setting/misc and it is still set to default.

    @Fixed,

    Your the man! I’m getting desperate, was reading the forums when somebody posted a link to this blog and by following what you suggested to uncheck the ‘Organize my uploads into month- and year-based folders’ it work perfectly!

    Thanks again to both of you! ;)

  8. Posted March 30, 2009 at 3:40 am | Permalink
    Thanks, Its worked for me. God Bless You !
  9. Posted May 22, 2009 at 3:39 pm | Permalink
    Yes, this fix is a savior. Thanks. There’s another fix out there that might work for some as well.
  10. Posted June 5, 2009 at 10:12 am | Permalink
    Okay, …. let me just say THANKS!

    And also G*** DAMN! This is a crazy bug, and should totally be fixed IN WP!

    Thanks again,
    Chris

  11. Posted August 18, 2009 at 8:24 am | Permalink
    This worked. Thanks a bunch.

    -Max

  12. Posted September 5, 2009 at 11:43 pm | Permalink
    If you tryed everything and upload in your wordpress still doesn’t work – i have an answer for you. In short: php safe mode won’t let you create files or directories if your php scripts and upload directory belongs to different users. So there are 2 possible solutions: either disable php safemode (not recommended), or change an owner of scripts and upload directory:

    cd blog_root
    chown -R apache:apache *

  13. Posted November 4, 2009 at 7:39 pm | Permalink
    You saved my day :) .
  14. gracias!
    Posted April 13, 2010 at 6:10 am | Permalink
    realmente este era el problema que tenia me volvi loco verificando los permisos, el safe_mode, el owner de la carpeta… hasta que encontre tu post! que bug! thanks!!
  15. Posted April 24, 2010 at 3:22 pm | Permalink
    I’ve got a Starcraft II & Diablo III Blog. I come here often :P .
  16. Posted December 11, 2010 at 5:06 pm | Permalink
    Thanks, this problem was driving me crazy with a website!
  17. Posted January 11, 2011 at 3:39 am | Permalink
    I am getting problem in importing my old blog. how to solve it
  18. Posted June 20, 2012 at 8:08 pm | Permalink
    ffaAiPa SouWQqiJdxusnSM

One Trackback

  1. By Bookmarks about Wp on January 4, 2009 at 10:15 pm
    [...] – bookmarked by 6 members originally found by ItsJustSomeRandomGuy on 2008-12-04 How to fix WP-Error “Unable to create directory /wp-content/uploads/” [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

Stop SOPA