Title: Plugin Upgrade Failing, Cannot Remove Old Plugin
Last modified: August 19, 2016

---

# Plugin Upgrade Failing, Cannot Remove Old Plugin

 *  [chazbeaner](https://wordpress.org/support/users/chazbeaner/)
 * (@chazbeaner)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/plugin-upgrade-failing-cannot-remove-old-plugin/)
 * I have searched around on the forums and Google and have been unable to find 
   a solution to my particular issue.
 * When trying to automatically upgrade plugins I get the following:
 * > Downloading update from [http://downloads.wordpress.org/plugin/stats.1.3.8.zip](http://downloads.wordpress.org/plugin/stats.1.3.8.zip)
   > Unpacking the update
   > Deactivating the plugin
   > Removing the old version of the plugin
   > Could not remove the old plugin
   > Plugin upgrade Failed
 * I have used both my FTP URL and “localhost” as the Hostname for the connection,
   neither works. Username and password are correct as I can manually upgrade the
   plugins, which is time-consuming and what I’m hoping to avoid.
 * I have chmod the permissions on the wp-content, upgrade and plugins folders to
   777 and 775 and every combination therein.
 * As you can see, the plugin that is failing is the WP Stats plugin, so I don’t
   think it’s a plugin issue as it also happens for the other 5 plugins I need to
   update.
 * Anyone?

Viewing 15 replies - 1 through 15 (of 24 total)

1 [2](https://wordpress.org/support/topic/plugin-upgrade-failing-cannot-remove-old-plugin/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-upgrade-failing-cannot-remove-old-plugin/page/2/?output_format=md)

 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [17 years, 1 month ago](https://wordpress.org/support/topic/plugin-upgrade-failing-cannot-remove-old-plugin/#post-1063166)
 * Check the file permissions on the files in WP Stats. Sometimes images get weird
   permissions and don’t update right.
 *  Thread Starter [chazbeaner](https://wordpress.org/support/users/chazbeaner/)
 * (@chazbeaner)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/plugin-upgrade-failing-cannot-remove-old-plugin/#post-1063187)
 * i can give that a shot, but the issue happens when trying to upgrade any of 5
   different plugins. Could there be a permissions issue in all of my plugin folders?
   Can I just chmod the stats folder to 777 and make recursive and see if that will
   work?
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [17 years, 1 month ago](https://wordpress.org/support/topic/plugin-upgrade-failing-cannot-remove-old-plugin/#post-1063195)
 * It’s likely a permissions issue or a server config issue. Did it ever work?
 *  Thread Starter [chazbeaner](https://wordpress.org/support/users/chazbeaner/)
 * (@chazbeaner)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/plugin-upgrade-failing-cannot-remove-old-plugin/#post-1063382)
 * I went in and made 777 recursive through the entire plugin folder and the upgrade
   still failed with the same message.
 *  [glitterkill](https://wordpress.org/support/users/glitterkill/)
 * (@glitterkill)
 * [17 years ago](https://wordpress.org/support/topic/plugin-upgrade-failing-cannot-remove-old-plugin/#post-1063437)
 * Did you ever figure out a fix for the problem?
 *  [swiss420](https://wordpress.org/support/users/swiss420/)
 * (@swiss420)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/plugin-upgrade-failing-cannot-remove-old-plugin/#post-1063454)
 * Got the same problem it downloads the plugin to /wp-content/upgrade/pluginname/
   pluginname/ but fails to move it to the plugins directory to activate it again.
   This behaviour happens for me since upgrading to 2.8.0 and persisted through 
   2.8.2. Anyone got any hints toward the solution. Permissions on the plugin directory
   are fine. It must be other permissions.
 *  [3ukman](https://wordpress.org/support/users/3ukman/)
 * (@3ukman)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/plugin-upgrade-failing-cannot-remove-old-plugin/#post-1063461)
 * I see the same issue on 2.8 running on IIS 7 , all file permissions granted. 
   Any other permission needing setup ?
 *  [Change](https://wordpress.org/support/users/rylar22/)
 * (@rylar22)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/plugin-upgrade-failing-cannot-remove-old-plugin/#post-1063486)
 * I too have this problem on several servers. I am the system administrator and
   I have root access.
 * Why are there no guides for system administrators on how to setup web servers
   to make WordPress run smoothly?
 * I had trouble with automatic upgrades for a year, until I did a chown -R www-
   data:www-data /var/www/mysite/html
 * That gave wordpress permission to do the upgrade, but it broke FTP access for
   the mysite account because it is no longer the owner of the files.
 * This chown fix did not resolve the “cannot delete” plugins. Installing plugins
   automatically works, but upgrading fails.
 * It would be nice to have a how to guide for setting up apache for wordpress to
   work, and it would be nicer if WordPress would just Work, or fail gracefully 
   with useful error messages.
 *  [elizabethrichardson](https://wordpress.org/support/users/elizabethrichardson/)
 * (@elizabethrichardson)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/plugin-upgrade-failing-cannot-remove-old-plugin/#post-1063487)
 * My automatic upgrades didn’t work for a variety of plugins and I fixed it by 
   deleting the plugin files completely and uploading manually. wp-admin and wp-
   includes also needed to be deleted and reinstalled manually…just overwriting 
   the files wasn’t good enough.
 * All auto upgrades work perfectly now.
 *  [FloridaGal](https://wordpress.org/support/users/lindafar/)
 * (@lindafar)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/plugin-upgrade-failing-cannot-remove-old-plugin/#post-1063488)
 * I too am having problems getting anything to update.
 * I’ve changed all permission settings to 777, but it hasn’t helped.
 * For instance I get this type of error message, it always seems to be a file that
   can’t be copied:
 *     ```
       Downloading update from http://downloads.wordpress.org/plugin/tweet-this.1.6.1.zip.
   
       Unpacking the update.
   
       Could not copy file /public_html/wp-content/upgrade/tweet-this.1.6.1/tweet-this/languages/tweet-this.mo
       ```
   
 * Very frustrating!
 *  [FloridaGal](https://wordpress.org/support/users/lindafar/)
 * (@lindafar)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/plugin-upgrade-failing-cannot-remove-old-plugin/#post-1063489)
 * Just tried another one and got this:
 *     ```
       Downloading update from http://downloads.wordpress.org/plugin/sociable.3.5.1.zip.
   
       Unpacking the update.
   
       Installing the latest version.
   
       Removing the old version of the plugin.
   
       Could not remove the old plugin.
   
       Plugin upgrade Failed.
       ```
   
 * So I’m getting a variety of error messages.
 * Needless to say, I don’t want to upgrade WordPress with this type of situation
   going on.
 *  [horncreek](https://wordpress.org/support/users/horncreek/)
 * (@horncreek)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/plugin-upgrade-failing-cannot-remove-old-plugin/#post-1063490)
 * I just did a new install on a new host and Akismet installed properly but when
   I tried to install other plugins from the plugins page, it failed. When I checked
   the site files, it appears that the plugins downloaded and unpacked in the wp-
   content/plugins directory OK but they do not show up on the blog admin plugins
   list. Any clues? I’m lost on this one.
 *  [horncreek](https://wordpress.org/support/users/horncreek/)
 * (@horncreek)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/plugin-upgrade-failing-cannot-remove-old-plugin/#post-1063491)
 * OK, I did some more checking and it appears that the plugins did not fully unpack.
   I found there were missing files in the folders for both plugins I had tried 
   to install. This was the case even though I had allowed over 5 minutes for each
   plugin to download and install.
    So I downloaded the .zip to my computer, unzipped
   and FTP’d to the server and then I was able to activate the plugins. But I have
   no explanation for the fact that they didn’t do the autoinstall properly. What
   would cause them to only partially unzip? Or unzip and lose files. Weird.
 *  [detroiter](https://wordpress.org/support/users/detroiter/)
 * (@detroiter)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/plugin-upgrade-failing-cannot-remove-old-plugin/#post-1063499)
 * I’m having the exact same problem as lindafar above.
 * It doesn’t give me the same error every time. Sometimes it will be “cannot remove
   old plugin” and sometimes it will be “cannot copy file”.
 * The weird thing is that it used to work fine and then all of a sudden it didn’t
   work at all.
 * It seems the problem is also affecting the uploading of new plugins as I tried
   to manually update the plugins. Similar error messages and inordinate amount 
   of time waiting for it to complete.
 *  [physalis](https://wordpress.org/support/users/physalis/)
 * (@physalis)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/plugin-upgrade-failing-cannot-remove-old-plugin/#post-1063501)
 * Is there a simple solution to this “could not remove old plugin” problem? Seems
   the other ones may be of a different kind, since I am only having the error message
   above & all other upgrades (i.e. WordPress itself) work fine all the way…

Viewing 15 replies - 1 through 15 (of 24 total)

1 [2](https://wordpress.org/support/topic/plugin-upgrade-failing-cannot-remove-old-plugin/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-upgrade-failing-cannot-remove-old-plugin/page/2/?output_format=md)

The topic ‘Plugin Upgrade Failing, Cannot Remove Old Plugin’ is closed to new replies.

## Tags

 * [automatic upgrade](https://wordpress.org/support/topic-tag/automatic-upgrade/)
 * [chmod](https://wordpress.org/support/topic-tag/chmod/)
 * [ftp](https://wordpress.org/support/topic-tag/ftp/)

 * 24 replies
 * 16 participants
 * Last reply from: [goddess_dix](https://wordpress.org/support/users/goddess_dix/)
 * Last activity: [16 years, 2 months ago](https://wordpress.org/support/topic/plugin-upgrade-failing-cannot-remove-old-plugin/page/2/#post-1063530)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
