The MU forums have moved to WordPress.org

Problems with 2.8.2 automatic update (33 posts)

  1. jshare
    Member
    Posted 14 years ago #

    The automatic update worked fine in my dev environment going from 2.7.1 to 2.8.1. I just tried going from 2.8.1 to 2.8.2 and I got:

    Downloading update from http://mu.wordpress.org/wordpress-mu-2.8.2.zip.

    Unpacking the update.

    Could not copy files.

    Installation Failed

    I'm not particularly worried, but I just thought people would like to know.

  2. jdpennington
    Member
    Posted 14 years ago #

    Same type of Error. Auto-Install Fails for me as well. Disappointing, after the complications with the last upgrade...

  3. andrea_r
    Moderator
    Posted 14 years ago #

    "Could not copy files."

    Usually means it can't copy the files because of folder permissions.

  4. jshare
    Member
    Posted 14 years ago #

    I agree, Andrea, but can you imagine why it would work for 2.7.1 => 2.8.1 but not for 2.8.1 => 2.8.2?

    Is it possible the upgrade to 2.8.1 actually restricted some folder permissions and as result, is preventing the upgrade to 2.8.2?

  5. SimpTech
    Member
    Posted 14 years ago #

    jshare, seeing the same thing here and am as confused as you are.

  6. andrea_r
    Moderator
    Posted 14 years ago #

    Could be last time some permissions were set back.

  7. landykos
    Member
    Posted 14 years ago #

    I have the same problem. Clean upgrade to 2.8.1 but now get:

    Warning: copy(/SERVERPATH/html/wp-content/upgrade/wordpress-mu-2.8.2/wordpress/wp-admin/includes/update-core.php) [function.copy]: failed to open stream: No such file or directory in /SERVERPATH/html/wp-admin/includes/class-wp-filesystem-direct.php on line 131

    Could not copy files.

    Any ideas?

    Thanks

  8. onethousandseas
    Member
    Posted 14 years ago #

    Yep, I've got the same problem.

    Downloading update from http://mu.wordpress.org/wordpress-mu-2.8.2.zip.
    
    Unpacking the update.
    
    Warning: copy(/home/accountname/domain.com/wp-content/upgrade/wordpress-mu-2.8.2/wordpress/wp-admin/includes/update-core.php) [function.copy]: failed to open stream: No such file or directory in /home/accountname/domain.com/wp-admin/includes/class-wp-filesystem-direct.php on line 131
    
    Could not copy files.
    
    Installation Failed
  9. SimpTech
    Member
    Posted 14 years ago #

    Performed a manual upgrade and tried forcing a re-update and received the message everyone is getting.

  10. Driftless1
    Member
    Posted 14 years ago #

    Anyone have the same?

    I updated my local install via the zip file and all is well, but I'm a bit paranoid now about updating my live site... (and my connection is too slow to try a manual upload.)

  11. andrea_r
    Moderator
    Posted 14 years ago #

    "(and my connection is too slow to try a manual upload.) "

    Tip: upload the zip to the server and unpack it there. FTPing one large file is faster (in the long run) than many smaller files.

  12. dinhluong
    Member
    Posted 14 years ago #

    Same problem here as well.

  13. CatalysTim
    Member
    Posted 14 years ago #

    Same bug again. Had the EXACT same one as my upgrade from 2.8 > 2.8.1. Something about not being able to copy, update-core.php. Previous solution which worked for 2.8.1 was to update two files as advised on the bug report thread, 'functions.php' and 'wp-functions.php' and it worked.

    Still stuck now. Wordpress MU Dev Team, please advise ASAP. Thanks :)

  14. andrea_r
    Moderator
    Posted 14 years ago #

    Manually upgrade. :)

  15. tomthewebmaster
    Member
    Posted 14 years ago #

    I had the same problem, manual upgrade was successful.

  16. nyliferocks
    Member
    Posted 14 years ago #

    Does anyone know the minimum amount of files and folders I can upload to perform a complete manual upgrade? I would like to overwrite the smallest amount of files possible to complete this.

  17. andrea_r
    Moderator
    Posted 14 years ago #

    you can go to trac (http://trac.mu.wordpress.org) and do a diff between revisions. That will show you exactly the files that have changed, and it provides a zip file at the bottom.

    Browse the branches to get the revision numbers.

  18. techlover
    Member
    Posted 14 years ago #

    This ticket has been created on trac, we now await some news on how to upgrade automatically without problems.

  19. Albertane
    Member
    Posted 14 years ago #

    In /wp-admin/includes/class-wp-upgrader.php

    Change:
    // Copy update-core.php from the new version into place.
    if ( !$wp_filesystem->copy($working_dir . '/wordpress/wp-admin/includes/update-core.php', $wp_dir . 'wp-admin/includes/update-core.php', true) ) {

    To:
    // Copy update-core.php from the new version into place.
    if ( !$wp_filesystem->copy($working_dir . '/wordpress-mu/wp-admin/includes/update-core.php', $wp_dir . 'wp-admin/includes/update-core.php', true) ) {

    Automatic upgrade should then work correctly.

  20. onethousandseas
    Member
    Posted 14 years ago #

    Worked! Thanks!

  21. ashiado
    Member
    Posted 14 years ago #

    @Albertane, did this, but no go... Any further suggestions? Manually updated one of my installations to 2.8.3 and the problem persists. Thanks very much!

  22. elemsee
    Member
    Posted 14 years ago #

    If it is a permissions issue, which folders should I check and what should their settings be?

  23. anup
    Member
    Posted 14 years ago #

    @Albertane Thanks - your solution works fine.

    Anup

  24. elemsee
    Member
    Posted 14 years ago #

    @albertane never mind my question, your fix worked! thanks!

  25. petercossey
    Member
    Posted 14 years ago #

    Nice one Albertane!

  26. cullaloe
    Member
    Posted 14 years ago #

    @Albertane many, many thanks. Automatic upgrade worked perfectly after your fix.

    :-)

  27. michaelwillits
    Member
    Posted 14 years ago #

    @Albertane - Worked for me as well on wpmu 2.8.2 -> 2.8.3 automatic upgrade. However, the first time around, I still received the error even after editing the class-wp-upgrader.php file. So, I logged out, cleared the browser cache, and logged back in. After which, the change seemed to take, and the upgrade was about 10 secs.

  28. jshare
    Member
    Posted 14 years ago #

    FYI- if you don't use Alberane's fix, the automatic upgrade still doesn't work:

    Downloading update from http://mu.wordpress.org/wordpress-mu-2.8.3.zip.

    Unpacking the update.

    Could not copy files.

    Installation Failed

    This was an automatic upgrade attempt from 2.8.1.

  29. littlecuriosity
    Member
    Posted 14 years ago #

    Hi Albertine,
    Worked beautifully thankyou so much!

  30. intographics
    Member
    Posted 14 years ago #

    Hi Albertane,

    Your fix is still working for wordpress-mu-2.8.4a.zip.

    Thanks

About this Topic

  • Started 14 years ago by jshare
  • Latest reply from betterfasterstranger