WordPress:
WordPress is an online, open source website creation tool in existence. It is the easiest blogging and website content management system (CMS) which has an easy built-in feature to install themes and plugins needed for the website. It can add functionality and new features for the website.
Steps to fix Plugin update failed error in WordPress:
When a WordPress plugin was updated, sometimes it might show an error like “Download failed”. It might appear like the below mentioned error.
An error occurred 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:
When an error occurs while updating the plugins in WordPress dashboard, it can be resolved easily by following the below steps.
- Open your wp-config.php file with the cPanel File Manager Code Editor
- You should see this code towards the top of the file:
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.
Now Save your wp-config.php file.
3. Now check again by updating the same. If the same error occurs again, check file permission for your wp-content folder and ensure it’s set to 755 so that the server can write to it.