Skip to Content

Solved: How do I fix WordPress update download failed due to destination for file streaming does not exist or is not writable

Question

I’m trying to update WordPress to the latest version which install on my local drive. When I click on the Update option, the appropriate files are being downloaded to my computer, but they’re going to a directory that doesn’t exist.

The detailed error message is as below:

Warning: unlink(C:\wamp64\www\wordpress/apps/wordpress/tmp/wordpress-5.9-new-bundled-ahdNU4.tmp): No such file or directory in C:\Users\A1034455\wordpress\wp-admin\includes\file.php on line 1059

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

Installation failed.

Solved: How do I fix WordPress update download failed due to destination for file streaming does not exist or is not writable

The tmp folder mentioned in the error message (C:\wamp64\www\wordpress/apps/wordpress/tmp/) doesn’t exist. I can’t find any related settings in the wp-config.php.

How can I configure where the WordPress is downloading content to a directory that does exist instead of something that’s pure fiction?

Follow the below solution steps to resolve fix WordPress update download failed due to destination for file streaming does not exist or is not writable issue.

Solution

This is the config line to add or edit in wp-config.php

define('WP_TEMP_DIR', dirname(__FILE__) . '/wp-content/temp/');

the line must be before

/* That's all, stop editing! Happy blogging. */

To know if WP use your constant

get_temp_dir()

Make sure the directory exists.

    Ads Blocker Image Powered by Code Help Pro

    Ads Blocker Detected!!!

    This site depends on revenue from ad impressions to survive. If you find this site valuable, please consider disabling your ad blocker.