Title: Missing a temporary folder &#8211; Media
Last modified: August 22, 2016

---

# Missing a temporary folder – Media

 *  [giloo33](https://wordpress.org/support/users/giloo33/)
 * (@giloo33)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder-media/)
 * “Missing a temporary folder.” on new WP 4.0 when i try to load any media from
   my hard drive.
 * Had this one yesturday on 3.9.2, decided to install new, fresh one.
    Same problem
   today. Also, cant upload/search for any theme and plugins. “An unexpected error
   occurred. Something may be wrong with WordPress.org or this server’s configuration.
   If you continue to have problems, please try the support forums.”
 * Any help plz.

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

 *  [2bearstudio](https://wordpress.org/support/users/2bearstudio/)
 * (@2bearstudio)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder-media/#post-5270731)
 * Give this a try. Add this line to wp-config.php
 *     ```
       // Setup a temporary folder for uploading and updating
       define('WP_TEMP_DIR', ABSPATH . 'wp-content/');
       ```
   
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [11 years, 9 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder-media/#post-5270732)
 * [@2bearstudio](https://wordpress.org/support/users/2bearstudio/) [@giloo33](https://wordpress.org/support/users/giloo33/)
 * Temporary folders should not be in web-accessible directories. This can be a 
   security risk.
 * If your webserver is not configured to have a server wide temporary folder (like/
   tmp or something), then you can configure it to any accessible folder, however
   you should choose one not in the web path.
 * In the long run, you should ask your webhost what the proper temporary folder
   should be and why their PHP configuration is missing it.
 *  Thread Starter [giloo33](https://wordpress.org/support/users/giloo33/)
 * (@giloo33)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder-media/#post-5270735)
 * Same or bit change… when i try to upload any picture form media->Media Library-
   >Add New, i have now “Error saving media attachment.”
 *  Thread Starter [giloo33](https://wordpress.org/support/users/giloo33/)
 * (@giloo33)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder-media/#post-5270739)
 * I have also one debug info:
 * > “Warning: stream_socket_client() [function.stream-socket-client]: unable to
   > connect to tcp://api.wordpress.org:80 (A connection attempt failed because 
   > the connected party did not properly respond after a period of time, or established
   > connection failed because connected host has failed to respond. ) in E:\kunden\
   > homepages\30\d542693708\www\wordpress\wp-includes\class-http.php on line 931”
 *  [scrupulosis](https://wordpress.org/support/users/scrupulosis/)
 * (@scrupulosis)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder-media/#post-5271063)
 * Had the same problem, fixed it by changing the permissions, using filezilla, 
   to 770 recursively, starting with the upload directory in wp-content.
 *  [altafrahman](https://wordpress.org/support/users/altafrahman/)
 * (@altafrahman)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder-media/#post-5271092)
 * `Warning: stream_socket_client() [function.stream-socket-client]: unable to connect
   to tcp://api.wordpress.org:80 (A connection attempt failed because the connected
   party did not properly respond after a period of time, or established connection
   failed because connected host has failed to respond. ) in E:\kunden\homepages\
   28\d543246238\www\wp-includes\class-http.php on line 931
 * can you help me to fix the above error?
 *  [webmastercostalessgolf](https://wordpress.org/support/users/webmastercostalessgolf/)
 * (@webmastercostalessgolf)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder-media/#post-5271114)
 * I have had the exact same problem altafrahman, can I ask if you found a resolution
   to this?
 *  [NachoPal](https://wordpress.org/support/users/nachopal/)
 * (@nachopal)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder-media/#post-5271138)
 * [@giloo33](https://wordpress.org/support/users/giloo33/) and [@altafrahman](https://wordpress.org/support/users/altafrahman/)
   I have the same problem as well. Did you find any solution, please?
 *  [scrupulosis](https://wordpress.org/support/users/scrupulosis/)
 * (@scrupulosis)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder-media/#post-5271139)
 * I don’t know if this may be of any help, but I had a lot of problems with permissions
   after unzipping the WordPress installation on the server itself. You should really
   unzip on your computer and then copy the unzipped file to your server. Otherwise
   it seem that in some case the server got all the permissions while you get limited
   ones on your files. If this is your case you may have to reinstall wp all together
   or call your server administrator.

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

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 7 participants
 * Last reply from: [scrupulosis](https://wordpress.org/support/users/scrupulosis/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/missing-a-temporary-folder-media/#post-5271139)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
