Forums

Plugin Upgrade Failing, Cannot Remove Old Plugin (14 posts)

  1. chazbeaner
    Member
    Posted 6 months ago #

    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

    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?

  2. Ipstenu
    Member
    Posted 6 months ago #

    Check the file permissions on the files in WP Stats. Sometimes images get weird permissions and don't update right.

  3. chazbeaner
    Member
    Posted 6 months ago #

    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?

  4. Ipstenu
    Member
    Posted 6 months ago #

    It's likely a permissions issue or a server config issue. Did it ever work?

  5. chazbeaner
    Member
    Posted 6 months ago #

    I went in and made 777 recursive through the entire plugin folder and the upgrade still failed with the same message.

  6. GlitterKill
    Member
    Posted 5 months ago #

    Did you ever figure out a fix for the problem?

  7. swiss420
    Member
    Posted 3 months ago #

    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.

  8. 3ukman
    Member
    Posted 2 months ago #

    I see the same issue on 2.8 running on IIS 7 , all file permissions granted. Any other permission needing setup ?

  9. rylar22
    Member
    Posted 2 weeks ago #

    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.

  10. elizabethrichardson
    Member
    Posted 2 weeks ago #

    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.

  11. lindafar
    Member
    Posted 2 weeks ago #

    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!

  12. lindafar
    Member
    Posted 2 weeks ago #

    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.

  13. horncreek
    Member
    Posted 2 weeks ago #

    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.

  14. horncreek
    Member
    Posted 2 weeks ago #

    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.

Reply

You must log in to post.

About this Topic