WordPress.org

Ready to get started?Download WordPress

Forums

Trouble upgrading WordPress (13 posts)

  1. davidlyness
    Member
    Posted 4 years ago #

    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 http://wordpress.org/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!

  2. dragonsjaw
    Member
    Posted 4 years ago #

    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

  3. davidlyness
    Member
    Posted 4 years ago #

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

  4. davidlyness
    Member
    Posted 4 years ago #

    Bump.

  5. 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: http://codex.wordpress.org/Changing_File_Permissions

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

  6. davidlyness
    Member
    Posted 4 years ago #

    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.

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

  8. tomazl
    Member
    Posted 4 years ago #

    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.

  9. davidlyness
    Member
    Posted 4 years ago #

    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.

  10. 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.

  11. davidlyness
    Member
    Posted 4 years ago #

    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".

  12. 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...

  13. davidlyness
    Member
    Posted 4 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic