If you run into problems trying to update WordPress, it could be caused by the temporary directory WordPress attempts to use. You can easily fix this by defining a WP_TEMP_DIR in your wp-config.php file.

WordPress update failing

If you're trying to upgrade WordPress itself, you might encounter this error:

Download failed.: Destination directory for file streaming does not exist or is not writable.

Installation Failed

WordPress core update failed

WordPress plugin update failing

If you were trying to update a WordPress plugin, you might have encountered this error:

An error occured while updating (Plugin Name). Download failed. Destination directory for file streaming does not exist or is not writable.

WordPress plugin update failed

Define a WP_TEMP_DIR in your wp-config.php file

If you've encountered issues trying to update WordPress, you can simply follow the steps below to resolve them.

  1. Open you wp-config.php file with the cPanel File Manager Code Editor

  2. You should see this code towards the top of the file:

    * @package WordPress
     */
    
    // ** MySQL settings - You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define('DB_NAME', 'anotherd_wrd1');

    You want to add a definition for WP_TEMP_DIR using the ABSPATH WordPress variable pointing to your WordPress install path, followed by wp-content/ so that when WordPress needs to temporarily write files to the server, it can use this writable directory to do so.

    You want to place this definition of define('WP_TEMP_DIR', ABSPATH . 'wp-content/'); in-between the lines mentioned above, and it would end up looking like this when you've completed it:

    * @package WordPress
     */
     
    define('WP_TEMP_DIR', ABSPATH . 'wp-content/');
    
    // ** MySQL settings - You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define('DB_NAME', 'anotherd_wrd1');

    Now Save your wp-config.php file.

  3. Try to update WordPress again, if for some reason it is still failing, be sure to check file permissions on your wp-content folder, and ensure it's set to 755 so that the server can write to it.

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve our Support Center:
Email Address
Optional, but our team may contact you for more information.
Like this Article?

Comments

Post a comment
n/a Points
2014-04-04 3:40 pm

Woah, thank you so much!!

Staff
5,642 Points
2014-04-04 3:46 pm
No problem Daniel, glad it helped! :)
n/a Points
2014-04-22 3:58 am

Awesome!

This worked perfect in my update to 3.9.

Thanks a lot!

Post a Comment

Name:
Email Address:
Comment:
Are you a bot?
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!