How to Fix WordPress Download Failed Errors while Updating or installing new plugins/themes

If you face an error while installing WordPress OR installing new plugins or themes, it may be occurred by temp directory of WordPress  used with download, in such case you can follow the solution mentioned below

Step 1: Open the wp-config.php file from the website root folder.

Step 2: Define WP_TEMP_DIR inside the wp-config.php file, follow the below steps to apply the solution.

When you open the wp-config.php file you will notice the below code on 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', 'dbname');

You have to just enter define('WP_TEMP_DIR', ABSPATH . 'wp-content/');  as shown below and save the file.

@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', 'dbname');

Now you can try to update WordPress or install new plugins and themes.

 

NOTE: Please make sure that file permission of the wp-content folder is set to read and write so that server will be able to write.

 
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

SQL server- network related or instance-specific error happened while connection establishing

  Instance-specific or network related error happening while connecting to SQL server   Please...

OleDB connection string examples

OleDB connection string examples MS Access (Jet) "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA...

Do you allow custom COM components?

Do you allow custom COM components? We are not offering to install the custom COM components...

Error when accessing a WCF services

Error when accessing a WCF services Error when accessing a WCF service: "IIS specified...

How to cache static contents to client with UseMaxAge?

You can consider to caches static contents to the client with UseMaxAge if your website has too...

Powered by WHMCompleteSolution