Fri 19 Dec 2008
How to solve Image Upload Error in Wordpress 2.7 ?
Posted by cyriac under Tips & Tricks, Wordpress
[62] Comments
There is no need to say that i was very much excited to upgrade my old worpress to the latest version Wordpress 2.7. But it didnt lasted for long. As i was preparing the previous article Why you should upgrade to Wordpress 2.7 ? i tried to upload few screen captures of the new interface. But then all the excitement went to PANIC.
This is what i got when i tried to upload an image.

wordpress-2_7-image-upload-error
/home/.boogee/cyriac/cyriac.me/wp-content/uploads
So I googled for the solution and i had to research for 3 hours to find a solution. I found the solution from Wordpress Support Forum. As usual all Wordpress upgrades have some problems. Its actual cause is unknown, because only few have this, for others it works just fine.
In that various solutions were given and some claim they work too, but for me the following solution worked.
Solution for the error
Step 1: Log into your admin panel
Step 2: Go to Settings>>Miscellaneous
You will see two options,
- Store uploads in this folder
- Full URL path to files
Most probably you will see
/home/.boogee/XXXXX/XXXXXXX/wp-content/uploads
in the first field.
Step 3: Edit that to just
wp-contents/uploads
PS: Please take a backup of what you are editing, incase this trick didnt work, you can restore the old URL.
This should do the trick.
Why I like this solution ?
Other solutions given in the forum were including CHMOD’ing wp-content directory to 777, and everybody who has little “techie” knowledge doesnt like that. Its because CHMOD 777 means, everybody has access to that folder and they can write/read or do what ever they want. Generally this will leave a security hole. Lucky for me, that didnt work too, else I would have to be affraid from a security hack anytime. Lucky for me the other solution worked fine, it doesnt leave any security holes.
So did you guys upgrade your wordpress to the latest version ? Did you guys had this “image upload error” or any other problems? If yes please try this solutions and let me and other know what happened. If you have any other problems, just share it, I will try to find a solution.
Did you like my article. Subscribe to receive updates when i update the blog with more useful posts.
If you like this post, but me a beer
Related posts:
- Why you should upgrade to Wordpress 2.7 ? New wordpress (v2.7) is out and I’M LOVIN’ IT. Why,...
- The 22 must have wordpress plugins for your blog By popular request , I have prepared an article on,...
- Gmail changed its favicon, How to add one to yours ? After a long stretch of work time in front of...
- How to change Gmail Theme? Gmail has now become the most popular email service provider...
62 Responses to “ How to solve Image Upload Error in Wordpress 2.7 ? ”
Trackbacks & Pingbacks:
-
[...] seems to be working. here is the URI for documentation of how to do the fix [...]
-
[...] An answer to the image uploading issue can be found at www.cyriac.me [...]
-
[...] This article helped me figure out why I couldn’t upload media to my wordpress blog. [...]

(4.67 out of 5)
(4.00 out of 5)
Hi,
thank you for posting this. Sadly, it didn’t work for me — my settings were already set the way you suggested.
@Gib
Double check your settings, also see that you dont have CHMOD’ed any folder to 777, if you have done that then, revert it back to 755.then try again. also try different browsers like, internet explorer, firefox,chrome.
Let me know what happenes
Thanks for the reply.
I ended up seeing this message:
http://wordpress.org/support/topic/224840?replies=25#post-933442
And I deactivated my Amazon.com plugin and that worked beautifully.
@Gib
Thanks for the share
Nice Work!
@Linko
Thanks…. Did you upgrade your wordpress ?
I have a theme that requires the cache folder to be chmod’d to 777 (inside the them). I don’t get an error about my pics not uploading..I just get a blank screen when I attempt to upload a pic even from my library.
Just nada. Won’t upload?
@Tony
hi, i think your theme folder’s cache has nothing to do with media uploading. i beleive only the wp-contents/upload is the relative folder here.
in your case, my suggestion is, to try different browsers (like IE,firefox,chrome) and do you have the latest version of flash installed ???
Thanks so much. This worked for me!
Thanks a bunch.
@Rudi Schiller and Jennifer
Happy to help you.
Add to .htaccess WordPress 2.7
SecFilterEngine Off
SecFilterScanPOST Off
Then it worked fine for me.
http://wordpress.org/support/topic/164999
@MC
thanks for the share. i saw that tweak during my research, but i was afraid to do it (me not much of a techie hehe…), since it involves disabling “security” and all (i dont know what those are for)
if any of you guys are trying these tweaks, please share it to others whether it is working or not.
I can successfully upload the image and I see it in the Media Gallery. But when I say Insert to Post a blank screen appears and nothing happens then.
@Kapil
glad news is you can upload images.
please try using various browsers like, firefox,chrome,internet explorer.
alternatively if you can, create a new user “cyriac” and email me its password (remember to make me a author). i shall try to upload and see what the problem is.
I actually have this problem only if I activate the checkbox saying “create sub-folders for years and months” (maybe not properly written like this..I’m using italian version..but that checkbox)
and I didn’t solve so far.. :S
Its actually “Organize my uploads into month- and year-based folders” (atleast in my case). But adedip that checkbox is ticked for me, and i do not have any problem.
any way arranging it in years and months are not that important if you dont have a photo-intense blog.
Thanks.
This helped me to solve the problem.
@Jose
Always happy to help.
Very useful.
I had the same problem and now thank to you all works perfectly.
@Maluen
Happy to help
Fantastic, solved the problem. I wasn’t receiving any errors, it simply wasn’t uploading the images at all.
@Kinesis
Happy to help.
Thanks, Cyriac, this fixed one of my problems, too.
@Lance
Happy to help.
Helped me alot, fixed my problems. Now i dont need to search the web for hours:)
@Jinn
Happy to help.
Thanks!! That fixed the problem!
@Nicolas
Happy to help
Thanx man!
Remco
Many thanks.
It worked straight away for me.
@John
Happy to help.
In my one website i have same problem: “Unable to create directory /home/username/public_html/wp-content/uploads/2009/01. Is its parent directory writable by the server?”
These type of error you can solve by below steps as per my experience
- First pass 777 permission to WP-content & also too upload folder and its sub folder
- Then moves to your admin section where you can find setting option, in this section check “Miscellaneous’ for uploading path ( This is the main problem please check it again)
- After this please create folder which are mention in your error. as per above mention error i have to create “2009? and also a subfolder with name “01?
- Now try to upload image…
Best Luck!!
You are my freakin’ hero!!!!!!!!!!!! thank you!
unfortunately… I’ve tried everything… the only (ONLY!) thing that works is setting 777. and i don’t want to do that. i am clueless… and my blog is useless without pix…..
ANY IDEAS ???? – sob -
am sorry my friend. this is the only way i know. but if you explore more in wordpress forum am sure you will find couple of solutions and if you are lucky you may find one working
Thanks! Worked! I moved my blog from windows hosting to linux hosting and I just couldn’t get the image upload to work.
Duh! I would have never figured that one out.
I’ve just been wrestling with the same issue – and tried all the solutions mentioned above, which I’d also found on the web.
NOTHING worked except changing the uploads folder permission to 777, and I didn’t want to leave that security hole. So I thought I’d be stuck with using FTP to upload all files, and type the full URL etc. Messy!
But then I contacted my hosting provider, and here’s the solution he came up with that worked worked brilliantly for me:
“chown USER:nobody uploads”
and then “chmod 770 uploads”
I had no idea what ‘chown’ was – but that’s something the hosting provider has to do anyway. (I couldn’t do it through FTP or CPanel)
So try asking your host to take these steps and see if it works for you – it did for me!
Good luck!
Thank you!!!!!! Appreciate the fix. It worked perfectly.
yeah that do the trick, hehehe why i didn’t think of it on the settings area.. hahaha
hello cyriac,
greetings from Sarawak,malaysia. i read your advice and cant upload image still. got a blank screen when i hit “insert into post”. i tried using IE,Mozilla & chrome. wont work. then i tried disabling all my plugins as advised in wordpress forum. couldnt upload either.
what is ” CHMOD’ing wp-content directory to 777?
Please help. I am techie dummy.
cheers,
sandy
hi there,
just to share with u and the world that i found a solution to my problem.
Under Settings -> Wordpress Address (URL), my domain name had mixed capitalization. Once I changed it to all lower-case, it started working.
thanks,
sandy
thanks but for those who are having problems with this
- make sure u have the folder uploads in content directory first (via ftp )
- Go to Settings>>Miscellaneous
wp-content/uploads NOT wp-contents/uploads as mentioned here
worked for me like a charm
worked a treat. that’s been bugging me for some time. thx!
Woooo, u are a life saver, ive bin battling this image issue with everything i thought i know, thanx man, the solution worked perfectly.
Sweet! Worked like a charm…
Thaaaaaaaaaaaank You !!!!!!!
I had this problem-made me crazed. I read your post. For me the fix was to add the absolute path, not just /wp-content/uploads-worked. Thanks so much for pointing me to this!
Thanks so much for this solution! I’ve been searching for two weeks. This worked!
Thanks! Worked like a charm.