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.

Stumble It!
WordPress 2.8.1 Coming Soon

No related posts.

This entry was posted in WordPress and tagged , , , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

29 Comments

  1. Tim
    Posted June 18, 2009 at 1:14 pm | Permalink

    For an average site on average hosting, how long does the automatic upgrade process typically take? I’m running about 10 WP installs on my servers, and when I use the automatic upgrade function it takes about 20 minutes to run. It *seems* like it should go much faster than that based on your description of the steps above. When performing the upgrade the first message “downloading update from ….” doesn’t appear for nearly 15 minutes.

    Looking through the server logs it almost seems as if it is FTP’ing each individual file rather than the zip package and then unzipping. Everything upgrades fine– just takes much longer than I would have expected. Makes me want to go back to just making diffs and patching since those run in seconds.

    • Posted June 21, 2009 at 4:14 pm | Permalink

      An Upgrade does not even take a minute…

  2. Posted June 18, 2009 at 1:18 pm | Permalink

    The Update per Site should take about one minute.

    • Tim
      Posted June 18, 2009 at 1:26 pm | Permalink

      Okay, thanks… I wonder what about my environment causes it to take so long.

  3. seenu cnu.co.in
    Posted June 18, 2009 at 1:36 pm | Permalink

    thanks for the update,
    any ETA for 2.8.1?

    iam running 2.6.5 and waiting for 2.8.1 seriously because 2.*.1 are better than 2.* because 2.*.1 comes with bugfixes ;)

    [btw, i really love this ajax quick edit comments feature in your site]

  4. Tom Sawyer 7daybuzz.com
    Posted June 18, 2009 at 2:10 pm | Permalink

    I’m having this problem as well. I have the plugin to automatically update wordpress, but once I did it the visual screen is missing a lot when writing posts. People have said to re-install 2.8 to fix this, but when I try it I’m getting a failure – something about the core file.

  5. Fernanda Gomez papercraftcentral.net
    Posted June 18, 2009 at 2:44 pm | Permalink

    Can’t wait. Having a small issue in upgrading the plugins automatically

  6. George Serradinho serradinho.com
    Posted June 18, 2009 at 3:56 pm | Permalink

    It still surprises me that there is always a minor release just a few days after the main one. Like 2.7.1 after 2.7 and now 2.8.1 will be available soon after 2.8. I do understand that there will always be a few bugs that went through, just something that many have noticed. I have seen a few people say that they don’t bother to upgrade until the minor release is out.

    • Dougal dougal.gunters.org
      Posted June 18, 2009 at 4:11 pm | Permalink

      Yes, but if you look back at those minor releases, you’ll often see that the bugs they fix are very obscure things that only affect a small percentage of users. This problem with the core upgrade feature is “big” in its potential impact, but only if you are in the smaller group of users that it actually affects. On the mailing lists, there are people who have upgraded 10 sites, and 9 upgrades went without a hitch, and only one had a problem.

      However, I also understand that a lot of users don’t have the technical skills to figure out for themselves whether this issue will affect them. My advice is to download the 2.8 zip file as a precaution, but then try the built-in upgrade feature. If it works, great! If it fails, use the zip file to perform the upgrade manually as you would have done in the past.

    • Joseph Scott josephscott.org
      Posted June 18, 2009 at 5:46 pm | Permalink

      2.7 was a really solid release, with 2.7.1 coming 2 months later. It would be great if every release is like that, but that’s not likely to be the case for every single one. As Dougal mentioned, it isn’t until the release becomes official that the more obscure bugs get reported.

  7. E-TARD e-tard.tv
    Posted June 18, 2009 at 4:34 pm | Permalink

    I did the auto-upgrade from 2.7.1 to 2.8
    from the auto-upgrade worked fine everything was fine as far as the install
    also I use alot of plugins & all of them worked fine
    but one
    admin SSL plugin did not work
    alot of ppl were saying how twitter tools did not
    well it was working fine for me

    the one thing i did not like about 2.8 was how slow everything got
    pages were loading way more slow
    & WP plugins like
    WordPress.com Stats
    Akismet Configuration
    did made my WP slow down big time
    so I went back to 2.7.1

    I hope 2.8.1 will speed things up a bit

    • Dougal dougal.gunters.org
      Posted June 18, 2009 at 5:39 pm | Permalink

      From what I had heard elsewhere, the new version was faster in the admin screens for most people. Are you using Google Gears? If so, you might try disabling then re-enabling it to force a reload of the gears files. I understand that there was some re-work of the Gears support in WordPress 2.8.

  8. Posted June 18, 2009 at 6:23 pm | Permalink

    i run the blog with every post in secure mode under a password, when upgraded to 2.8, none of the posts could be found through the search bar. had to revert to 2.7
    thanks

  9. Rob
    Posted June 18, 2009 at 6:30 pm | Permalink

    Love the ‘Ooops’.
    I automatically upgraded about a dozen installs, no errors reported but the process was not consistent. One would result in the ‘database needs upgrading etc’ screen followed by logging in again, another would produce a blank screen but had been successfully upgraded (just missing out a step I assume) and other variations.

    Upgrading was quick, but I would agree that (in all installs) load times are considerably slower than with 2.7 and produce more ‘failed attempt’ messages when publishing posts/pages. It appears to be the same on all installs, regardless of whether the upgrade process appeared ‘by the book’ or had a ‘missed a step’. No consistency in the errors/problems.

  10. jcwinnie jcwinnie.biz
    Posted June 18, 2009 at 7:12 pm | Permalink

    Edited version.php in wp-includes. Footer now says I am running 2.8.1-dev. No noticeable difference.

    There remain problems, e.g., after posting ../wp-admin/post.php remains blank. A Quick Edit always produces an error message (although the edit seems to go thru) and, of course, the text in the Press This window is transparent, so uneditable until after saving and returning to the draft.

  11. Ryan A. Smith discoveryfinance.com
    Posted June 18, 2009 at 11:45 pm | Permalink

    Do you people upgrade everytime when a new version comes out regardless major or minor versions? Or, do you wait for the major versions; eg, 2.7 –> 2.8 –> 2.9 –> 3.0?

    • Ian Glendinning psybertron.org
      Posted June 19, 2009 at 2:30 am | Permalink

      Not automatically on minor versions – unless the fix is a bug that affects me.
      In this case clearly if you already upgraded successfully to 2.8 (as I did), there s probably no point in upgrading to 2.8.1
      Major versions I generally do upgrade – almost immediately, within a week or two – just easier for any future support issues to be on the latest.

    • Vaibhav blog.gadodia.net
      Posted June 19, 2009 at 4:46 am | Permalink

      When I used to do it manually, I used to upgrade only major versions – but since auto-upgrade is built-in, I upgrade as soon as a new version is available

  12. anas learnsimply.wordpress.com
    Posted June 19, 2009 at 5:22 am | Permalink

    Will be a good try I think for some persons
    But not for me, better wait for the stable version :D

    • Dennis Crane drexplain.com
      Posted June 19, 2009 at 6:19 am | Permalink

      Yes, Anas. That is exactly what I’ve said recently about 2.8 release. We’ll see soon the queue of maintenance updates. I’ll also wait till the end of the summer.

  13. Posted June 19, 2009 at 8:12 am | Permalink

    Glad to see a fix is coming. I used tha auto install and lost quite a bit of functionality in the dashboard: inability to change time zones, blank screens after saving/updating posts, and the disappearance of the Text Widgets from the widgets page. I reinstalled manually and everything got fixed except that I still don’t have text widgets. Will 2.8.1 address this and if not do you know how I can get them back?

    Thanks!

  14. Posted June 19, 2009 at 8:56 am | Permalink

    I was hoping they would have fixed this problem: http://wordpress.org/support/topic/221086 in 2.8 but no luck.

  15. Soverato News soveratonews.com
    Posted June 19, 2009 at 10:47 am | Permalink

    Bug or not when new version, from RC, is available something tell me UPGRADE UPGRADE UPGRADE and simply i have to upgrade.

    Thats all … and bugs comes out if there are.

    ciao
    Giuseppe

  16. Vygantas favbrowser.com
    Posted June 20, 2009 at 3:51 am | Permalink

    If you upgrade to first .0 release, you probably deserve it.

  17. bolo digau.cn
    Posted June 22, 2009 at 12:24 am | Permalink

    What data will the new version release?

  18. cheeze cheezmozo.com
    Posted June 22, 2009 at 3:43 am | Permalink

    I’m still confuse how to upgrade mine. i’d mess this up once and so i’m very careful from now on. can you give me the right link to where the proper instructions are? please.

  19. Zemalf zemalf.com
    Posted June 25, 2009 at 1:26 pm | Permalink

    Thanks for this info. I was lucky enough to go through the upgrade smoothly (updated almost immediately 2.8 was out) and I’ll be definately waiting a bit when the new versions come in.

  20. Araceli Orban kaitlyn3f4.livejournal.com
    Posted October 2, 2009 at 3:55 pm | Permalink

    Wow! Was f?r eine Idee! Was f?r ein Konzept! Beautiful .. Erstaunlich

4 Trackbacks

  1. By WordPres 2.8.1 ??????? ????? on June 19, 2009 at 2:21 am

    [...] [...]

  2. By WordPress 2.8.1 en camino, Carrero on June 19, 2009 at 1:12 pm

    [...] geek ramblings Etiquetas: actualizar, administración, bug, errores, menú, plugin, plugins, [...]

  3. [...] it. And it has to do with the automatic (core) upgrade feature. Here’s an excerpt from Dougal Campbell’s recent post about this: But the big problem driving a quick update is a bug in the core upgrade feature. It [...]

  4. [...] Clicking on the link will upgrade your wordpress installation automatically via the wordpress automatic upgrade feature. Do not click that. I got my info from this post, “Wordpress 2.8.1 coming out soon“. [...]

Post a Comment

Your email is never published nor shared.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting

  • Subscribe

  • Follow Me

    Twitter  Facebook  Flickr  Last.fm  LinkedIn  StumbleUpon  Technorati  Delicious  
    • icon
  • Referrals

    Sign up for Text Link Ads and earn money from your blog.
  • Lifestream