DEV Community

Cover image for How to fix bug-like "Destination directory for file streaming does not exist or is not writable" in WordPress🔥
Stan Kukučka
Stan Kukučka

Posted on • Updated on

How to fix bug-like "Destination directory for file streaming does not exist or is not writable" in WordPress🔥

Unexpected WordPress Issues

WordPress as free open CMS can surprise you anytime and you may found out while trying to update plugins that you are not able to do that anymore.

Plugin Update Error

If you receive a message while pressing the Update button as "Destination directory for file streaming does not exist or is not writable" you may be quite surprised. Stay calm, you don't need to be a big research hero. All you need to do is this quick fix mentioned hereunder.

Fixing This Issue

Go to root of your WordPress installation directory and look for wp-config.php file. Open it for next editation and at the top of the file, you will find something like this.



   * @package WordPress
   */
  // ** MySQL settings - You can get this info from your web host ** //
  /** The name of the database for WordPress */


Enter fullscreen mode Exit fullscreen mode

Just Paste This Code

Just grab this line of code hereunder and paste it in the middle of @package and ** MySQL settings lines.



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

Enter fullscreen mode Exit fullscreen mode




Final Wp-Config

So the final file may look like this.



  • @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 */
Enter fullscreen mode Exit fullscreen mode




Plugin Update Passed

Save it and then after you may found out your desired message after updating a plugin looks like this.

No need for sleepless nights looking for a plugin update error fix. Happy WordPressing with your future projects.

Thanks to Stephen Phillips for the cover image from Unsplash.

Top comments (0)