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.
jdpennington
Member
Posted 2 years ago #
Same type of Error. Auto-Install Fails for me as well. Disappointing, after the complications with the last upgrade...
"Could not copy files."
Usually means it can't copy the files because of folder permissions.
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?
SimpTech
Member
Posted 2 years ago #
jshare, seeing the same thing here and am as confused as you are.
Could be last time some permissions were set back.
landykos
Member
Posted 2 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
onethousandseas
Member
Posted 2 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
SimpTech
Member
Posted 2 years ago #
Performed a manual upgrade and tried forcing a re-update and received the message everyone is getting.
Driftless1
Member
Posted 2 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.)
"(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.
dinhluong
Member
Posted 2 years ago #
Same problem here as well.
CatalysTim
Member
Posted 2 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 :)
tomthewebmaster
Member
Posted 2 years ago #
I had the same problem, manual upgrade was successful.
nyliferocks
Member
Posted 2 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.
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.
techlover
Member
Posted 2 years ago #
This ticket has been created on trac, we now await some news on how to upgrade automatically without problems.
Albertane
Member
Posted 2 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.
onethousandseas
Member
Posted 2 years ago #
ashiado
Member
Posted 2 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!
elemsee
Member
Posted 2 years ago #
If it is a permissions issue, which folders should I check and what should their settings be?
@Albertane Thanks - your solution works fine.
Anup
elemsee
Member
Posted 2 years ago #
@albertane never mind my question, your fix worked! thanks!
petercossey
Member
Posted 2 years ago #
cullaloe
Member
Posted 2 years ago #
@Albertane many, many thanks. Automatic upgrade worked perfectly after your fix.
:-)
michaelwillits
Member
Posted 2 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.
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.
littlecuriosity
Member
Posted 2 years ago #
Hi Albertine,
Worked beautifully thankyou so much!
intographics
Member
Posted 2 years ago #
Hi Albertane,
Your fix is still working for wordpress-mu-2.8.4a.zip.
Thanks