Fix WordPress Download failed errors on update
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.
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.
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.
Open you wp-config.php file with the cPanel File Manager Code Editor
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.
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.
We value your feedback!
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.
new! - Enter your name and email address above and we will post your feedback in the comments on this page!
2014-04-22 3:58 am
This worked perfect in my update to 3.9.
Thanks a lot!
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!
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 :)