19

I am trying to upgrade my version of Wordpress but I get this error:

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

3 Answers 3

45

This is a read-write permission error. Fix this by changing the "wp-content" folder's permissions to 755.

If this doesn't work checked the wp-config.php file and if it's not already defined, add

define('WP_TEMP_DIR', ABSPATH . 'wp-content/');

7
  • My temp dir was set to the wp-content/uploads folder and both plugin and Wordpress updates were failing. Changing it to the suggested value fixed it... not sure why, but thanks! Commented May 22, 2017 at 0:07
  • ran into this on mediatemple hosting and this worked perfectly
    – Legion
    Commented Nov 8, 2018 at 22:39
  • 1
    755 wasn't enough - since my WP_TEMP_DIR was already set to wp-content/uploads I used sudo chmod 775 wp-content/uploads Commented Jul 3, 2019 at 15:50
  • I created a dummy folder 'wp-content/temp' so that any temporary files will not mess the wp-content directory.
    – MaXi32
    Commented Jan 7, 2020 at 15:43
  • Perfect. Worked for me for windows localhost!
    – tinonetic
    Commented May 17, 2020 at 10:38
2

Note that if the temp directory is defined otherwise further down in the wp-config.php file, the later definition must either be changed to the above, or deleted.

This arose in my installation which started as a local Bitnami Wordpress install, but kept the same temp directory (pointing to my C: drive). I had placed the above code at the top of the file, but it was being superceded by the later temp folder definition that I was unaware of.

1
  • This did exactly happen to me.. lol Commented Apr 17 at 16:21
2

there are already Define Temp code in my wp-config.php file i just remove it and it work for me.

Not the answer you're looking for? Browse other questions tagged or ask your own question.