• I currently have WordPress 2.8.4 and am attempting to upgrade it to 2.8.5. However, every time I attempt the “upgrade automatically” option and enter my username and password, I get something along the lines of the following error message:

    “Downloading update from https://www.ads-software.com/wordpress-2.8.5.zip.

    Unpacking the update.

    Could not copy file: /public_html/wordpress/wp-content/upgrade/wordpress-2.8.5/wordpress/wp-comments-post.php

    Installation Failed”

    This happens whether I use the FTP or the FTPS method of upgrading. It seems that there is some issue with permissions, but I’m not sure which permissions to change, I’ve tried to leave them all at their defaults. I sometimes have the same problem with plugins, but multiple attempts at installing the plugin (often only one more attempt after the first failed attempt) seem to result in a successful installation.

    Any thoughts on how I can fix this? Thanks very much in advance!

Viewing 12 replies - 1 through 12 (of 12 total)
  • I had that problem with a past upgrade.
    THIS WORKED FOR ME:

    All you need to do is rename the folder upgrade to ‘upgrade1’ (or remove) and then rerun the upgrade automatically link.
    WP will recreate the upgrade folder and proceed. (wp-content/upgrade)

    And make sure you have disabled plugins first

    hth
    ~bobbi

    Thread Starter davidlyness

    (@davidlyness)

    I tried the steps you suggested, but the problem still seems to persist.

    Thread Starter davidlyness

    (@davidlyness)

    Bump.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Could not copy file: /public_html/wordpress/wp-content/upgrade/wordpress-2.8.5/wordpress/wp-comments-post.php

    Is that file there in the upgrade folder?

    My guess is either the source (i.e. the upgrade folder) isn’t downloading correctly, or the destination has incorrect permissions.

    WordPress should have these permissions: https://codex.www.ads-software.com/Changing_File_Permissions

    Also, who owns the WordPress files? Is it your ID or someone else?

    Thread Starter davidlyness

    (@davidlyness)

    The file is there in the upgrade folder.

    The WordPress files are owned by my user ID, but they’re in the ‘nobody’ group (apart form the upgrade folder, which is both owned by me and in the group ‘myuserid’). As far as I can tell from the URL you provided, my permissions are correct – I could not find the cgi-bin folder on my server though, I suspect the hosting provider keeps those files somewhere else.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    I bet it’s the nobody group that’s killing it :/ I would, at a guess, see if I can change the group to ‘myuserid’. Your ISP might be able to help.

    If that fails, try making the files 777 and then running the upgrade. If that works, change it back to 755 and we’ll have to see if we can sort out the group thing.

    Don’t worry about cgi-bin, by the way.

    Hi!

    I read all the posts and tried every suggested hint. Nothing worked. Then I just backuped the whole WordPress installation to a local drive, deleted WordPress installation on server and copied backup back to server. Automatic upgrade then worked like a charm on first try :). Take care about any directories/files that may need special rights re-established.

    I hope I will not have similar upgrade problems later on when new upgrade becomes available. I know this is not a real solution, more like time saver workaround.

    Thread Starter davidlyness

    (@davidlyness)

    Hi,

    I tried what tomazl suggested – I backed up my original installation, and then copied all the files to my local machine, and then back to the web server. This changed the group to my user ID. I attempted to perform the upgrade, but I ran into the same error.

    I then tried changing every file in the directory to have permissions 777, but the upgrade failed again, with the same error.

    As an extra note, a plugin upgrade is failing too – Google Reader Shared is attempting to upgrade to v4.0.1, but I’m fairly sure it’s not a problem with this particular plugin, as the built-in WordPress upgrade feature doesn’t seem to be working either.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    I backed up my original installation, and then copied all the files to my local machine, and then back to the web server. This changed the group to my user ID.

    YAY!

    I attempted to perform the upgrade, but I ran into the same error.

    Delete this folder: /public_html/wordpress/wp-content/upgrade/

    Recreate the folder (make SURE it’s owned by you:you)

    Then try the upgrade.

    Thread Starter davidlyness

    (@davidlyness)

    I tried the steps you suggested, but the same problem keeps happening. It’s not always the same file in that ‘fails’ the upgrade – for example, just now I got “Could not copy file: /public_html/wordpress/wp-content/upgrade/wordpress-2.8.5/wordpress/wp-admin/includes/taxonomy.php”.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    What are the perms and ownership on that file?

    Something’s weird on your server permissions, is all I can think. When WP downloads into that folder it does it as nobody and gets stupid…

    Thread Starter davidlyness

    (@davidlyness)

    The permissions on the file are 644, group and owner both myuserid.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Trouble upgrading WordPress’ is closed to new replies.