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

WordPress update failing

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

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 instead when updating:

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');

    Place this definition of define('WP_TEMP_DIR', ABSPATH . 'wp-content/'); in-between the lines mentioned above, so it ends 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 this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

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
n/a Points
2014-04-04 3:40 pm

Woah, thank you so much!!

Staff
9,968 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!

n/a Points
2014-05-21 10:45 am

This fixed my issue. Thanks a lot!

n/a Points
2014-05-23 8:25 pm

Fixed! Thanks heaps Jacob

n/a Points
2014-06-22 9:58 am

It worked ! thanks

n/a Points
2014-07-08 4:15 am
Thanks for the help. Perhaps the text on the website could have a bit more whitespace around it as it is a tiny bit cramped. Great site. Thanks!
Staff
9,968 Points
2014-07-09 1:21 am
Hey Nick, thanks a lot for commenting!

This is one of my guides that hasn't been updated for quite some time, and Google Analytics doesn't give me human input about styling. So I really appreciate your observations for hopefully making this content easier to read for another person down the road!

Please take another look at the guide if you can, and let me know if you have any other recommendations!

Thanks again :)

- Jacob
n/a Points
2014-07-16 4:28 am

Great Fix. :P

n/a Points
2014-08-30 10:36 am

Hi Jacob,

For me this sollution is still not working.I have also put this problem up on the wordpress forum but still no luck.Do you have any other ideas what could be wrong?I have the: define('WP_TEMP_DIR', ABSPATH . 'wp-content/');

as follow: define( 'WP_TEMP_DIR', ABSPATH . '/public/tmp') ;in my config.phpMy tmp folder is in my public-folder

Everything is set to 755

Hope you can help me out.

Thanks,Daphne

n/a Points
2014-08-30 11:40 am

Hi Jacob,

I posted a question earlier today but it's not showing here.

But in case you did receive this question...I resolved it so please ignore that post ;-)

Thanks,Daphne

Staff
20,113 Points
2014-09-02 11:32 am
Hello Daphne,

Yes, the questions will not display unless they are approved due to lots of spammers. However, we are glad to hear you were able to resolve the issue. If you would not mind sharing how you did it, it may be helpful for others who run into the same situation.

Kindest Regards,
Scott M
n/a Points
2014-09-02 12:06 pm

Hi Scot,

Yes ofcourse!

What resolved the issue for me was removing: "DEFINE('WP_TEMP_DIR', ABSPATH . '/PUBLIC/TMP')" in the config.php file.

After that I could update all my plugins again!

Kind regards,Daphne

Staff
20,113 Points
2014-09-02 1:44 pm
Hello Daphne,

Thank you very much for the share! We will be sure to pass that info on.

Kindest Regards,
Scott M
n/a Points
2014-10-09 7:19 pm

Thank you Daphne. You saved my day.

n/a Points
2014-09-20 8:02 am

Hello

It sorts it out. Thank you  ;)

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

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

16 Questions & Comments

Post a comment

Back to first comment | top

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!