Upgrading issues with WordPress MU

I was upgrading a WordPress MU site we work on and came across an annoying issue: core update wouldn't work the way it's supposed to. I got the following error:

Unpacking the update.
Could not copy files.
Installation Failed.

After a bit of Googling I found a thread in the WordPress forums that contained a gem of a fix:

In the file /wp-admin/includes/class-wp-upgrader.php change this:

// 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) ) {

And low and behold: my automatic upgrade worked at once.

13 Responses to “Upgrading issues with WordPress MU”

  1. Yep, it was a known issue with 2.8.1. :)

  2. I keep having an auto upgrade issue with my standard wordpress installs where there is fatal memory error.
    The fix is to increase 32m to 64m in the php.ini but for some reason it is rewritten as 32m after a while.
    I still have the old auto uprade plugin installed for when this happens though as the memory fix hasnt worked a couple of times. So rather than uninstalling that old plugin I will be keeping it as a backup!

  3. I'm having a few upload images / upgrade wpmu version problems.
    The images upload and crunch just fine, no error messages at all, the image size etc looks ok, I can see the images in my ftp program - the images show as a broken link.
    When I try to Auto Upgrade my version of wpmu I get an error message: Downloading update from http://mu.wordpress.org/wordpress-mu-2.8.4a.zip.

    Unpacking the update.

    Warning: copy(/home/allthing/public_html/wp-content/upgrade/wordpress-mu-2.8.4a/wordpress/wp-admin/includes/update-core.php) [function.copy]: failed to open stream: No such file or directory in /home/allthing/public_html/wp-admin/includes/class-wp-filesystem-direct.php on line 131
    Could not copy files.
    Installation Failed

    I know this a little off topic, but I spent the day searching for answers in forums, google etc etc and cant find any solutions.

    Any ideas??

    Stef

  4. I need to transfer all my blogs under WordPress MU. All blogs are under same top-level domain URL.

    Can someone point me to person who has time and can to do it for me? Will pay of course.

  5. I am also looking for help with transferring my blogs to WPMU. Please point me to someone.

    Thanks

  6. Thanks dude Im gonna try this out now. I have been having this issue on several older installs and have been overwriting the core manually which is only slightly more time consuming, but anything that saves time saves money. :)

  7. omg - OMG!!! I got that fix to work! Thanks so much.

    I tried it several times by copying and pasting the whole code, but it kept breaking down somewhere, in the end I just added the " -mu " to the url and viola! It worked!

  8. Hello Matej,
    We can transfer all your blogs under WordPress MU.

    Pandu

  9. Thanks for the useful information !!

Comments closed, if you feel you have something to say:
drop me a line.

1 Trackbacks to “Upgrading issues with WordPress MU”