Support » Installing WordPress » Automatic Upgrade to 3.1 Not Working

  • Hmmm. Trying to upgrade from 3.0.5 to 3.1 using the auto-upgrade feature in the admin dashboard. Getting error:

    Could not copy file.: /public_html/wp-admin/css/theme-editor.dev.css
    
    Installation Failed

    (FYI, every time I’ve ever tried to use the Dashboard “auto” update, it has failed for me, through several WP versions. I always end up manually FTPing “changed files” by hand after tracking them down. So, what am I doing wrong? I just click “update” and it connects and unzips fine, and acts like it’s working/upgrading, but in the end, it always gives some kind of error and the upgrade “fails.”)

    Thanks.

Viewing 11 replies - 1 through 11 (of 11 total)
  • It isn’t you. There’s a problem with some servers, many of which run Pure-FTP on WHM. Please see the last post at Update 3.0.4 failed
    The good news is that if you upload two files with the selected changes (wp-admin/includes/file.php and wp-admin/includes/class-wp-filesystem-ftpext.php) then the update to 3.1 works well and quickly.

    I’ve never had this problem I’m on dreamhost.com

    Stevem, thanks! I’ll try what you suggest.

    Steven – I tried to auto update from 3.0.5 to 3.1 – I’ve got at least 8 WP sites on this server and have never had an issue with auto updates.

    I ran this update and it killed my site (I have a thead posted but no one is responding).

    I tried it on a test install of WP and it killed that one as well (a stock install with a child 2010 theme, no plug ins installed).

    Admin is fully functional (I can deactivate plug ins, change the theme, edit pages etc) but when I go to the front end in IE it just hangs and in Firefox I get an error telling me the site is in a loop.

    Any tips?

    I also tried to manually unzip/upload the 3.1 install – and still no front end.

    Stevem, just to be sure I’m understanding you: “The good news is that if you upload two files with the selected changes (wp-admin/includes/file.php and wp-admin/includes/class-wp-filesystem-ftpext.php) then the update to 3.1 works well and quickly.”

    … by that you mean grab those two files from the NEW WP 3.1 and upload those FIRST and THEN try doing “auto-update” from inside my WP dashboard?

    Sorry, confused here!
    🙂

    Interesting. I opened a support ticket with my hosting service and pointed them to the thread Stevem mentioned (above), and they responded quickly with, “The server has been updated to allow updates.”

    I will try using the auto-update from inside WP again and hope it works this time. Thanks again, Stevem!

    … by that you mean grab those two files from the NEW WP 3.1 and upload those FIRST and THEN try doing “auto-update” from inside my WP dashboard?

    No, sorry. I should have been clearer.

    Download those two files from your 3.0.5 installation. Then go along to http://core.trac.wordpress.org/attachment/ticket/10913/10913.diff.

    Then open in a text editor and make the small changes to those files as stated there – there are 2 changes for file.php and 5 for class-wp-filesystem-ftpext.php. You can ignore the other files on that site.

    When you’ve made those changes, upload them back again to wp-admin/includes.

    Then try the automatic update, which worked for me.

    This may seem cumbersome, but it won’t take long. The author has promised to sort the problem out for version 3.2 and meanwhile issue a plugin for 3.1.

    doesn’t work for me either – getting the following error:

    Warning: copy(/Users/Marco/Sites/cms/wordpress/index.php) [function.copy]: failed to open stream: Permission denied in /Users/Marco/Sites/cms/wordpress/wp-admin/includes/class-wp-filesystem-direct.php on line 200

    Stevem, thank you! My host apparently “updated” something on the server that makes it so WP auto-updates WORK for me now! YAY! I’m glad I asked, but I wouldn’t have KNOWN to ask them had it not been for your help! Thank you SO much.

    Can I make it clear that the solution I am recommending is meant for those people with Pure-ftp (probably using WHM) which times out with the message:

    Could not copy file.: /public_html/wp-admin/css/theme-editor.dev.css

    Installation Failed

    It solves the problem many people have and which is listed at http://core.trac.wordpress.org/ticket/10913 but is unlikely to help with other problems.

    A plugin to help overcome the problems I have described is now available at http://wordpress.org/extend/plugins/ftp-upgrade-fix/

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Automatic Upgrade to 3.1 Not Working’ is closed to new replies.