Unable to create directory /wp-content/uploads/2009/09. Is its parent directory writable by the server?
Today I moved one of my site to a new server and when I tried uploading an image I got this error :
Unable to create directory /wp-content/uploads/2009/09. Is its parent directory writable by the server?
The parent directory is 2009 and uploads is ‘super’ parent directory (if I can call it that way). Both the directories had 777 permission so there was nothing wrong with the permission settings.
The problem was not with the directory permissions, but it was with URL where WordPress was trying to upload the image.
On my previous server, I had the blog in a folder named ‘tech’ and in the new server I had renamed it as ‘technology’.
Since I had moved the complete blog to the new server, the upload path was pointing to :
/home/tech/public_html/wp-content/uploads/2009/09
instead of pointing to
/home/technology/public_html/wp-content/uploads/2009/09
Do you notice the source of the problem ?
How can you fix it ?
Simple,
Login to your Blog as admin, go to Miscellaneous under Settings.
You’ll find the option “Store uploads in this folder” Set it to default which is “wp-content/uploads“, unless u specifically want the content in some other folder.
This should solve your problem !
There is a more complicated way of changing the file upload path of your wordpress blog, this is recommended only for those who know how to handle wp-config file !
For this you’ll have to modify wp-config.php file. Add below mentioned code before
require_once(ABSPATH.’wp-settings.php’); code in your wp-config file
define(‘UPLOADS’, ‘wp-content/new_folder’);
Once you save this new configuration all your uploaded files will go to the ‘new_folder’ under wp-content directory.
Related posts:
- Send And Receive Files With HTTP File Server
- Site Stats For The Month Of January And February 2009
- Investment In A New Blog To Increase Profits And Online Presence
- How Can I Get Rid Of Antivirus 2009 ?
- How Can I Create Folder On Windows Named CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9 ?
This solution worked. Thanks
Hi, where can i find the wp-config.php? i face this Is “its parent directory writable by the server?”
i’ve tried the 1st method but it does not work ><
Thanks, it worked for me!!! I had that error when trying to load the /wp-admin page, so the only fix that worked was “the more complicated way”.
Keep up the good work
Thanks for the tips. I moved my blog from one server to another and your tip fixed the problem. But the fix is located in settings > Media. not “Miscellaneous” in WP 3.1
This helped. Thank you.
Thanks for the new location
The fix worked. and a HUGE THANK YOU to Merv – I was lost and then read your comment. Fixed quickly when located. Thanks .
Thanks heaps – this solution worked for me. Appreciate you sharing this.
hi, just came to say thank you. I found your link in wordpress forum
Wuhuu! Thanks a lot. I too found your link in the WP-forum
thanks it worked for me,
eep up the good work
thank you master
hehe .. finally I was able to upload photos
define(‘UPLOADS’, ‘wp-content/new_folder’);
did NOT work for me. Perhaps you can change this to
define (‘UPLOADS’, ‘wp-content/new_folder’);
(the difference is the single quote is an apostraphe!
@Tom – Thanks. Guess the default wordpress editor changed it to a quote.
oh yes, that’s ironic – at least it didn’t strip the space after define which I think is still useful.
I wonder if this will work?:
define ('UPLOADS', 'wp-content/new_folder');thxx it’s solved