Title: Getting &#8216;Missing a temporary folder.&#8217; message uploading image
Last modified: August 19, 2016

---

# Getting ‘Missing a temporary folder.’ message uploading image

 *  [civmatt](https://wordpress.org/support/users/civmatt/)
 * (@civmatt)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder/)
 * So I started a new installation of 2.7 and have everything in place but as soon
   as I try to upload an image for a post (or upload anything) I get Missing a temporary
   folder.

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/topic/missing-a-temporary-folder/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/missing-a-temporary-folder/page/2/?output_format=md)

 *  Thread Starter [civmatt](https://wordpress.org/support/users/civmatt/)
 * (@civmatt)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder/#post-923683)
 * Why is it not creating what it needs, and/or permission issue?
 *  [goyocomova](https://wordpress.org/support/users/goyocomova/)
 * (@goyocomova)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder/#post-923994)
 * I’m having the same problem. Any help is appreciated!
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder/#post-923995)
 * > Missing a temporary folder
 * That error is thrown by PHP and likely you will need to contact your host to 
   have them specify a temporary directory (e.g. upload_tmp_dir in php.ini)
 *  [dwj](https://wordpress.org/support/users/dwj/)
 * (@dwj)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder/#post-924088)
 * thanx MichaelH, that was the problem i had on some local installations on both
   Linux and Mac (didn’t test on Windows) using XAMPP.
 * For future reference i’ve made a [quick how-to](http://www.dwightjack.com/diary/2009/01/04/fixing-missing-a-temporary-folder-error-on-wordpress-27-uploader/)
   on my website:
 * PS: this WP2.7 is really awesome good job! 😀
 *  [mpasetsky](https://wordpress.org/support/users/mpasetsky/)
 * (@mpasetsky)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder/#post-924106)
 * i can’t post images?
 *  [billbennett](https://wordpress.org/support/users/billbennett/)
 * (@billbennett)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder/#post-924162)
 * My site was working absolutely fine until earlier today, when we tried uploading
   photos and hit the ‘Missing a temporary folder.’ message for the first time.
 * The site is hosted, so I can’t work the fix offered by dwj.
 * There is another new problem that’s possibly related.
 * Trying to automatically install a plug-in I get the following message:
 * Warning: ftp_rawlist() [function.ftp-rawlist]: Unable to create temporary file.
   Check permissions in temporary files directory.
 * Both these problems are for performing tasks that worked perfectly well until
   a few days ago.
 *  [danoph](https://wordpress.org/support/users/danoph/)
 * (@danoph)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder/#post-924167)
 * I had this same problem and it was from WordPress working in a different directory
   than the root, trying to upload to a tmp folder that doesn’t exist.
 * If you are using WordPress 2.7, go to wp-admin/includes/file.php, and after line
   260, add this line temporarily:
 * `echo getcwd();`
 * This will tell you the current working directory. If there is more than just `"/"`,
   you will need to add this to your PHP temporary directory line as well instead
   of just the usual `"/tmp"`
 * So, I changed my php.ini file from `upload_tmp_dir ="/tmp/"` to
 * `upload_tmp_dir ="/usr/home/usernamehere/tmp/"`
 * Works now!
 *  [seanerickson](https://wordpress.org/support/users/seanerickson/)
 * (@seanerickson)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder/#post-924178)
 * To all those experiencing the issue:
    What hosting company are you using? I am
   having the same issue on DiscountASP and am currently working with their support
   to get it resolved. If more people on their servers are experiencing the issue
   I’m sure it would help get this done faster.
 * I’ll repost when this gets resolved.
 *  [moovok](https://wordpress.org/support/users/moovok/)
 * (@moovok)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder/#post-924179)
 * I’m using supanames.co.uk and I don’t have access to my ini file nor will my 
   hosting company change it for me. Is there any way of altering the image.php 
   or something to change it to point directly to a folder rather than what the 
   php.ini file has it as???
 *  [borsaro](https://wordpress.org/support/users/borsaro/)
 * (@borsaro)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder/#post-924181)
 * **TO RESOLVE THE PROBLEM:** i just create on the root directory on server a directory
   named “tmp”
 * Hope to be useful
 * [http://www.ilborsaronero.com](http://www.ilborsaronero.com)
    facebook: borsaronero
 * twitter: borsaronero
 * Bye
 *  [moovok](https://wordpress.org/support/users/moovok/)
 * (@moovok)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder/#post-924182)
 * nope still nothing. I have “tmp” directories all over my site now…
 *  [moovok](https://wordpress.org/support/users/moovok/)
 * (@moovok)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder/#post-924183)
 * There must be something in file.php or somewhere that I can edit to make point
   to a direct line rather than it using some isi file…
 *  [andydoc](https://wordpress.org/support/users/andydoc/)
 * (@andydoc)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder/#post-924186)
 * I have tried to edit file.php where it returns the temporary directory at line
   143 at function get_temp_dir. No success – I did have 3 occasions where the error
   message disappeared but another error cropped up and now it is back to where 
   it was. I had it return usr/home/usernamehere/tmp/ and the active directory.tmp
   but no joy. I am now waiting to hear from my host.
 *  [usman435](https://wordpress.org/support/users/usman435/)
 * (@usman435)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder/#post-924201)
 * I am trying to upload images on site but when i click to upload images the an
   error comes “Unable to create directory /var/www/vhosts/mastmp3s.com/httpdocs/
   pics/2009/03. Is its parent directory writable by the server?”
    please help me
   how can i fix this prob.
 *  [dpapa](https://wordpress.org/support/users/dpapa/)
 * (@dpapa)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder/#post-924206)
 * moovok: if you’re using supanames, I seem to remember they have no default upload
   directory in their php.ini for each server. You have to set it in your control
   panel by going to advanced->php settings and then selecting upload_tmp_dir. You
   will first need to create a write-enabled folder somewhere in your site root –
   the ‘/tmp’ suggested earlier here should work. I can’t yet verify this as working
   as it can take up to 12 hours for the change to go through but I don’t see why
   not.
 * Just a thought for everyone else who can’t access php.ini and doesn’t have shell
   access – maybe you can try and set the ini value upload_tmp_dir using the php
   command `@ini_set('upload_tmp_dir','/path/to/tmp');` using danoph’s suggestion
   to find your current working directory path. Instead of putting it in the file.
   php you can try to put it in the wp-settings.php file in the wordpress root. 
   This may not work, however, if your host, like supanames, has no value set in
   the php.ini for upload_tmp_dir or doesn’t allow scripts to alter this value. 
   Still, it maybe that there’s another way in the host’s control panel to set this
   value – for that you’d have to contact your own support I’d guess.
 * finally, don’t forget you can check the current value of upload_tmp_dir in several
   ways but a simple php file containing the following script should tell you all
   you need to know:
 *     ```
       <?php
       var_dump(ini_get('upload_tmp_dir'));
       ?>
       ```
   
 * note: if it returns bool(false) it means upload_tmp_dir has no value.

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/topic/missing-a-temporary-folder/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/missing-a-temporary-folder/page/2/?output_format=md)

The topic ‘Getting ‘Missing a temporary folder.’ message uploading image’ is closed
to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 22 replies
 * 20 participants
 * Last reply from: [picklezoo](https://wordpress.org/support/users/luciehall/)
 * Last activity: [16 years, 6 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder/page/2/#post-924277)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
