WordPress upload fail – unable to create directory…

wordpress_bigger

Error Message: Unable to create directory … {long directory path} … Is its parent directory writable by the server?

Cause: I recently changed hosting services so when I migrated my blog over to the new server everything worked great except for my WordPress uploads. Most things in WordPress are kept relative and ask the server where things are but the path to the upload files are kept in the database so if you change servers without changing the database string pointing to the correct directory you will get an error and probably frustrated also.

UPDATE 05/25/09

Thanks to a comment from Matt Lindsay I now realize that there is a much easier way to update the wordpress upload string in the database than digging into the actual database. A big thanks goes out to matt for making my blog better. ; )

Quicker and easier fix

  1. Login to your WordPress Admin
  2. Go to “Settings”
  3. Select “Miscellaneous”
  4. Put the correct path in the input field labeled “Full URL path to files”
  5. Save the changes and you should be done

picture-11

The advantage I had in digging into the database is that when I switched hosting services only one of the folders in the path changed so I went in and just modified the one folder. This is nice if you don’t know the exact file path from the server root like me. ; )

Older more complicated fix:

  1. Login to your database for the WordPress blog.
  2. Browse/ view tables in the database created when setting up the blog
  3. Browse/ view table named “wp_options”
  4. In the “option_name” column look for “upload_path” (was #60 for me)
  5. Edit the row values and change to the correct path
  6. Save changes

picture-4

After making that change the problem should be fixed and uploading will now work. If this helped be sure to give me a shout and leave a comment. Best of luck to you. ; )

Sources:
—————–
I figured this out all on my own. ; ) #HappyGeek

CSS Naked Day

Happy CSS Naked day!!!

A fun international day where everyone takes off their CSS. Dustin Diaz, the founder of CSS Naked Day (archived at http://www.webcitation.org/5fuQLFhny), says that the purpose of this holiday is, “…to promote Web Standards. Plain and simple. This includes proper use of (x)html, semantic markup, a good hierarchy structure, and of course, a good ‘ol play on words. It’s time to show off your <body>.” (archived at http://www.webcitation.org/5fuPcZGxn)

So, I am taking this opportunity to promote the proper use of (x)html and good hierarchal structure by taking off my CSS. If you would like to join and you have a WordPress blog all you need is a simple plugin to do the work for you. The plugin is named “CSS Naked Day”.

What happened to the design?

To know more about why styles are disabled on this website visit the

Annual CSS Naked Day
website for more information.

—————-
Sources

Dustin Diaz. About Dustin Diaz. dustindiaz.com.. URL:http://www.dustindiaz.com/about/. Accessed: 2009-04-09. (Archived by WebCite® at http://www.webcitation.org/5fuQLFhny)

Dustin Diaz. Naked ’09. dustindiaz.com. URL:http://naked.dustindiaz.com/. Accessed: 2009-04-09. (Archived by WebCite® at http://www.webcitation.org/5fuPcZGxn)