Dougal Campbell's geek ramblings

WordPress, web development, and world domination.

WordPress 2.8.1 Coming Soon

Right on the heels of version 2.8, we will be seeing a WordPress 2.8.1 release soon. There are several minor bugfixes in so far, mostly dealing with tweaks to plugin and menu management. But the big problem driving a quick update is a bug in the core upgrade feature. It seems that in the case where the upgrade can’t be completed for some reason, the upgrade feature was deleting the wrong files when it attempted to clean up. Oops!

On the bright side, when this did happen, it would only delete files that are part of the core package, not any of your plugin or theme files. So the failure could be fixed pretty easily, by just manually re-installing the 2.7.1 or 2.8 files from a zip archive. Nothing would be lost except perhaps a few heartbeats of panic.

Looking at the auto-upgrade process, here are the steps outlined in the code:

  1. Test unzipped location for select files to ensure that unzipped worked.
  2. Create the .maintenance file in current WordPress base.
  3. Copy new WordPress directory over old WordPress files.
  4. Upgrade WordPress to new version.
  5. Delete new WordPress directory path.
  6. Delete .maintenance file.
  7. Remove old files.
  8. Delete ‘update_core’ option.

What can happen is that if an error was detected in step 3, where it tried to copy the new files into place (probably due to file ownership or permissions), it was supposed to delete the directory of new files that it had downloaded and unzipped. Instead, it deleted from the main site directory. It was simply a case of the wrong variable being used. For those of you following the SVN repository, this has been corrected in trunk and in the 2.8 branch, where the 2.8.1 update will come from.

If you haven’t upgraded to WordPress 2.8 yet, but you want to, and you’re nervous about possibly running into this bug, you can either wait for 2.8.1 to be released or upgrade the “old fashioned” way, by unzipping and uploading the new files.

About Dougal Campbell

Dougal is a web developer, and a "Developer Emeritus" for the WordPress platform. When he's not coding PHP, Perl, CSS, JavaScript, or whatnot, he spends time with his wife, three children, a dog, and a cat in their Atlanta area home.
This entry was posted in WordPress and tagged , , , , , . Bookmark the permalink.

33 Responses to WordPress 2.8.1 Coming Soon

  1. Pingback: WordPres 2.8.1 ??????? ?????

  2. Pingback: WordPress 2.8.1 en camino, Carrero

  3. Pingback: WordPress 2.8.1 fixes 2.8 auto upgrade bug | Just Thinkin'

  4. Pingback: Do NOT Upgrade to Wordpress 2.8 Automatically | Silkenhut's World

Leave a Reply to abdul Cancel reply

%d bloggers like this: