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
========

  • shared hosting, dns, Dedicated Server, Domain, hosting, Hosting India, domains, 99rupees hosting, affordable hosting, windows shared hosting
  • 0 brukere syntes dette svaret var til hjelp
Var dette svaret til hjelp?

Relaterte artikler

403 Error in the WordPress Administration [wp-admin]

What is a 403 Error? A 403 Forbidden error is returned by the server when the user has been...

BackupBuddy not working, how can I fix this?

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

Disabling Caching Using htaccess

How to disable caching using .htaccess While caching is great for overall site performance, it...

Drupal CPU usage spikes during backups

If you are using Drupal on your hosting accounts, you may notice sudden CPU usage spikes that...

How to run a Traceroute

What is a Traceroute and why would you need to do one? When investigating speed issues with your...