Cannot upgrade WordPress or a WordPress Plugin

Should you receive an error message about not being able to write or open a file in "/tmp" when upgrading WordPress or a WordPress plugin, please add this line to the bottom of your "wp-config.php" file:

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


This line will result in WordPress using your "/wp-content/uploads" folder to store temporary files required during the upgrade process instead of the system-wide /tmp folder.  We have only seen this issue reported for the "Jetpack" plugin, however, this issue may affect other plugins.

An example error message that this line will resolve:
========
Installing Plugin: Jetpack by WordPress.com 2.3.1
Downloading install package from http://downloads.wordpress.org/plugin/jetpack.2.3.1.zip…
Download failed. Could not open handle for fopen() to /tmp/jetpack.tmp
========

  • Domain, wordpress, wordpress plugin, upgrade, upgrade process
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

BackupBuddy not working, how can I fix this?

BackupBuddy schedules things to run in the background in a way that isn't inherently...

Critical Error page when visiting site

Manually disabling Wordpress plugins: Occasionally plugins can have issues that will cause a site...

Disabling Maintenance Mode in WordPress

If you are using WordPress and you need to manually disable maintenance mode, you can do so by...

How do I import my WordPress installation into Softaculous?

The WordPress Manager by Softaculous is a fantastic tool for managing your installations...

How do I install WordPress?

Once you have logged into your cPanel click on "WordPress Manager by Softaculous" in the...