Recently I’ve found that some local (XAMPP powered) installations of Wordpress 2.7 on Linux and Mac return an odd error when user tries to upload a media by both the flash and the browser uploader.
The error raised is Missing a temporary folder as shown in the picture below:

Wordpress 2.7 missing temporary folder error
I’ve not yet dug the problem, anyway it seems related to misconfigured temporary paths in the local environment.
You can easily overcome this problem by editing the php.ini file located in etc/ folder, uncommenting the line upload_tmp_dir (by deleting the semi-colon “;”) and pointing the variable to a folder using an absolute path. In Linux possible steps are:
- open a terminal
- create a temporary folder for all apache tasks in your user folder and grant all right to all users:
mkdir wwwtmp && chmod 0777 wwwtmp - edit php.ini with your text editor and set the temporary folder (you must switch to root user)
su vim /opt/lampp/etc/php.ini upload_tmp_dir = /home/my_user/wwwtmp/Remeber to remove preceding “;”
- save the file (in vim type :wq an press enter) and restart xampp
/opt/lampp/./lampp restart
If everything went fine the error won’t be raised anymore.
Tags: temporary folder, tmp folder, wordpress 2.7
47 Responses to this post:
-
Great! Thank you very much!
I always wanted to write in my site something like that. Can I take part of your post to my blog?
Of course, I will add backlink?Regards, Timur I.
-
I am having a strange problem. I have two wordpress sites on the same server. One has no problem uploading while the other gives me the missing temporary folder error.
Both use the same wp-content/uploads directory and all permissions match. Any idea why one would work and not the other?
On the one that does not work I also have a vbulletin forum and that software has no problem uploading.
-
Great one
-
Thanks a million, this did the trick.
-
Thanks. This worked great.
-
Thanks a lot! This saved me a lot of hairpulling.
-
Love your work.
-
[...] E un mesaj destul de vag si mi-a luat ceva timp sa inteleg ce se intampla. Aici afli cum sa iti setezi un folder temporar pentru Apache in php.ini: http://www.dwightjack.com/diary/2009/01/04/fixing-missing-a-temporary-folder-error-on-wordpress-27-u... [...]
-
Sound like the exact problem i am having. I am un able to upload an exported WORDPRESS .xml file from one blog into another.
My error is:
Import WordPress
Sorry, there has been an error.
Missing a temporary folder.
The only issue with this fix is that its not written in plain english, that is some one with basic knowledge of php admin interface has no idea where to start, step by set with images would be great for people as above mentioned….
like me!
-
way to be!!! Thanks a Lot ^_^!!!
-
thanks man, it worked.
my blogger is fully functional locally on my leopard.
-
I love you, man!
Anyway it worked for me on a mac, but with one important variation:upload_tmp_dir = /Users/YourUserName/wwwtmp
I know it seams stupid to tell, but it was not working for me because of that linux-path you posted….so, please, tell me I’m not the only stupid in the fu***ng WorldWideWeb!
-
I have uncommented php.ini and changed to
upload_tmp_dir =” /Users/myusername/wwwtmp” but still “missing temporary folder”
I am using Mac and xammp and wordpress Should I put in a different path in php.ini? what is the exact path? I created a folder called wwwtmp and I still have absolutely no luck.
I also seemed to have sent the Terminal nuts as it now says
~
~
“/opt/lampp/etc/php.ini” [New DIRECTORY]
and no insertion point.
-
-
Hey, i can’t use this method, because i don’t have access to my “Server files” and i don’t have any php.ini file in my directory!! how can i solve this without access to those files??? please need help badly!!
Thanx in advance
-
[...] [...]
-
Worked perfectly, I didnt use terminal I logged into WHM on server and adjusted the PHP ini file there. great! thank you
-
Fix “Missing a temporary folder” in WordPress 2.7…
As I was writing my article about the installation process of Openfire, I’ve tried to upload a file but got an error message instead of my file
Because I wasn’t able to upload a file, I’ve done a quick google search and found this b… -
Hi! Where I can find that php.ini file? in my root files or in wordpress folders? I have mac and i dont see any .ini files
help -
[...] Here is the solution i got from Dwightjack. [...]
-
where to find php.ini file, I can’t find it please help…
-
i have no idea what all this means to be honest, i have the missing error problem, i’m on a mac!!!
-
[...] Fixing “Missing a temporary folder” error on Wordpress 2.7 … [...]
-
Hi!
I got the error. I’m using Windows XP and the blog is on a host right now.
Everytime I try to upload images, it reads:/vservers/h267740wp/htdocs/wp-admin
I login to my FTP server, went to the ETC folder and access to the php.ini file.
The line goes like this:upload_tmp_dir = /vservers/h282184wp/tmp /vservers/h267740wp/tmp
I just don’t know what I have to change. i’ve created “tmp” folders everywhere, but nothing works.
What do I have to change and where? what should I put on “Store uploads in this folder”???
Thanx a lot for your help
-
Thks dud….
it help and o was able to rectify my trouble!Thank U again
-
[...] Fixing “Missing a temporary folder” error on Wordpress 2.7 uploader :: Dwight Jack Diary (tags: wordpress php workaround apache bug) [...]
-
Just a small point …
I changed the temp directory to /tmp which is available on some (if not all??) linux systems. So long as Apache has rw access to it it should work too. That way you don’t have to have a temporary directory added to your home directory.
Cheers
Neill
-
I also had this issue. I checked my web hosting and I was running with php version 4. The upgraded wordpress recommended version php 4.2 and above. Once I had moved to version php 5 this problem was resolved.
-
Thanks guys. An upgrade to php 5 fixed my problem too.
-
I got the same error with my WP-powered blog (2.7V) and this is how I fixed mine: go to your dashboard:
SETTINGS–> Miscellaneous
Store uploads in this folder
DELETE the word “directory”,
thus, settings will be
default. So it will look like
this [wp-content/uploads].
Before, it looks like this;
[directory/wp-content/uploads], just delete directory/. IT WORKS!-
no, it`s not
I`m using WordPress 2.9.2. and it`s not working this way on I.E, Mozilla
-
-
I added the first few lines to my .htaccess, so this is what I ended up with.
SecFilterEngine Off
SecFilterScanPOST Off# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]# END WordPress
And it started working
-
I added the first few lines to my .htaccess, so this is what I ended up with.
SecFilterEngine Off
SecFilterScanPOST Off# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]# END WordPress

Thanks. This was the article I needed!