Title: Missing a temporary folder
Last modified: February 24, 2020

---

# Missing a temporary folder

 *  [richardcrouse99](https://wordpress.org/support/users/richardcrouse99/)
 * (@richardcrouse99)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder-38/)
 * On Friday my site stopped allowing me to upload photos. I keep getting a, “Missing
   a temporary folder” message… also, I can no longer update plug ins. I have made
   no changes to my site… can you help?
    -  This topic was modified 6 years, 3 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
      Reason: Moved to Fixing WordPress, this is not an Everything else WordPress
      topic
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmissing-a-temporary-folder-38%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 10 replies - 1 through 10 (of 10 total)

 *  [Martin Greenwood](https://wordpress.org/support/users/beardeddev/)
 * (@beardeddev)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder-38/#post-12473758)
 * Have you go this in your wp-config file?
 * `define('WP_TEMP_DIR', dirname(__FILE__) . '/wp-content/temp/');`
 * If not, paste this code to the file just before the line that says ‘That’s all,
   stop editing! Happy blogging’
 * If this doesn’t, then check the directory permissions for your wp-content folder
   and make sure it is writeable by the server – it should be 755
 *  Thread Starter [richardcrouse99](https://wordpress.org/support/users/richardcrouse99/)
 * (@richardcrouse99)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder-38/#post-12473768)
 * Where do I find the That’s all, stop editing! Happy blogging’ line?
 *  [Martin Greenwood](https://wordpress.org/support/users/beardeddev/)
 * (@beardeddev)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder-38/#post-12473819)
 * It’s in the wp-config.php file. which is located in the root of your WordPress
   installation.
 * You will need to open it using a FTP Programme or through your file editor on
   your website hosing account.
 * If you don’t have access to this, contact your hosting company and ask them to
   check your WordPress folder permissions.
 *  [mda345](https://wordpress.org/support/users/mda345/)
 * (@mda345)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder-38/#post-12534488)
 * I’ve done this fix, and I still can’t add media to my wordpress site.
 *  [jkintzele](https://wordpress.org/support/users/jkintzele/)
 * (@jkintzele)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder-38/#post-12546252)
 * Hey same here. Specifically preventing the upload of new media files.
 * Added this line to wp-config.php:
    define(‘WP_TEMP_DIR’, dirname(__FILE__) . ‘/
   wp-content/temp/’);
 * Made sure wp-content\temp directory existed.
    Set temp directory permissions 
   to 755 (also tried 777).
 * No dice. This occurred once before following a WP upgrade a few months ago (Jan
   2020ish), but in that case following the steps above worked – but not this time.
   Everything else appears to be functioning normally. Little help here.
    -  This reply was modified 6 years, 2 months ago by [jkintzele](https://wordpress.org/support/users/jkintzele/).
 *  [Martin Greenwood](https://wordpress.org/support/users/beardeddev/)
 * (@beardeddev)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder-38/#post-12546372)
 * Have you tried this?
 * Log into your server or use your FTP.
 * Open public_html folder.
 * Now create a file with a name php.ini
 * Place the following code inside the file:
    upload_tmp_dir= your/path/to/public_html/
   temp/
 * Save the file.
 * Create a temp folder at the same location, i.e. inside public_html.
 * If the issue is not resolved, I strongly recommend you to contact your hosting
   provider as this is a server configuration problem
 *  [jkintzele](https://wordpress.org/support/users/jkintzele/)
 * (@jkintzele)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder-38/#post-12550457)
 * Martin, good call. Process was a little different as this was on Fatcow, but 
   the guidance was helpful. For anyone on Fatcow:
    1.  Login to your Control Panel.
        Go to CGI and Scripted Language Support. Click
       PHP Scripting. Your php.ini file is displayed in a text box at the bottom. Click
       Edit if you cannot edit the php.ini file text. Find the line: `;upload_tmp_dir
       =` Update this line by removing leading semi and then put the path to the temp
       directory you created and set to 755 per Martin’s instructions above. You should
       have something of the format: `upload_tmp_dir = /home/users/web/uniquestringforyou/
       uniquenameforyou/temp` Click Save then try another upload
 *  [rnaportland2016](https://wordpress.org/support/users/rnaportland2016/)
 * (@rnaportland2016)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/missing-a-temporary-folder-38/#post-12734084)
 * I have the same problem on my site. Having searched the forum and googled this
   issue to death, I can’t find anywhere which explains why it happens in the first
   place to a site which has been running happily for 4 years with no issues like
   this before? Especially when the only likely changes that have been made are 
   various plugins being updated. Anyone have any ideas?
    Thanks
 *  [Floridian12](https://wordpress.org/support/users/floridian12/)
 * (@floridian12)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder-38/#post-13188030)
 * I had this problem on my Linux server. My temporary files exceeded the maximum
   space limit and my host deleted the temporary files and the folder they resided
   in.
 * When the temporary folder was deleted by my host, I kept seeing the “Missing 
   a temporary folder” error message when I tried uploading images.
 * The solution is very simple and does not require editing the wp-config or php.
   ini files.
 * Log into your server or your FTP
 * Open your root directory
 * Create a tmp folder inside your root directory
 * If you don’t have root access, place the tmp folder in your public_html directory
 * Make sure the folder name is tmp, NOT temp
 * If you don’t have root or public_html access, ask your host to create a tmp folder
   in the root for you.
 * That’s it. Problem solved.
    -  This reply was modified 5 years, 10 months ago by [Floridian12](https://wordpress.org/support/users/floridian12/).
 *  [justicebriger](https://wordpress.org/support/users/justicebriger/)
 * (@justicebriger)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder-38/#post-13761190)
 * In my case it was the ‘Inodes’ (see the meaning [here](https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwjozfLqg7_tAhUotYsKHRYLAfkQFjABegQIBRAC&url=https%3A%2F%2Fwpsauce.com%2F6-tips-to-reduce-inode-usage-on-wordpress-websites%2F%23%3A~%3Atext%3DAn%2520inode%2520is%2520a%2520data%2Cis%2520stored%2520and%2520its%2520size.&usg=AOvVaw3EZ1HUnkRZfgs0LfnABqGN)).
   The Inodes you can find in your CPanel Statistics. Mine was over 100%, hence 
   the error.
 * To reduce your number of inodes you may want to see all these solutions proposed
   in this article: [https://www.socmedsean.com/solved-how-do-i-reduce-my-inode-usage-on-siteground-hostgator-or-other-hosts/](https://www.socmedsean.com/solved-how-do-i-reduce-my-inode-usage-on-siteground-hostgator-or-other-hosts/)
 * Summary:
    – Remove Unused Themes – Remove Old Plugins That Aren’t Needed Or Are
   Deactivated – Remove Overly-Complex Folder Structures – Remove Obsolete WordPress
   Core Files – Reduce The Number Of Images You Have Stored On Your Server – Delete
   Old Backup Files – Remove Unnecessary Cache Files – Work With Your Host To Remove
   Folders In The /tmp Or /temp Folders That You Might Not Have Access To

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Missing a temporary folder’ is closed to new replies.

## Tags

 * [missing a temporary folder](https://wordpress.org/support/topic-tag/missing-a-temporary-folder/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 10 replies
 * 7 participants
 * Last reply from: [justicebriger](https://wordpress.org/support/users/justicebriger/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder-38/#post-13761190)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
