Upgraded to WordPress 2.1

January 23rd, 2007 – 9 Comments

I decided to upgrade to WordPress 2.1, and I have to say: it all went very, very smoothly. The only trouble I had was with Subscribe to Comments. Although version 2.1 of this very cool plugin had been released, and it was said to work with WP 2.1, it didn’t. You got an error like “Warning: in_array() [function.in-array]: Wrong datatype for second argument in /var/www/joostdevalk.nl/blog/ wp-content/plugins/ subscribe-to-comments.php on line 438“. This problem was fixed, as the author kindly pointed out in the comments, so if you download Subscribe to Comments now, all will be fine.

For history’s sake: Fixing this was actually quite easy: on line 438, right before get_post_meta(, add “(array)“, and it all worked again smoothly. Kudos to Everton Blair for this fix.

I’ll update this post with any other trouble I run into after this upgrade.

9 Responses to Upgraded to WordPress 2.1

  1. Mark Jaquith
    By Mark Jaquith on 23 January, 2007

    Due to a delay in the WP.com script that builds zip files from SVN, you probably got the older 2.0.8 version. I’ve since repointed the download link to a locally assembled zip with the real 2.1 version, which doesn’t suffer from this error message.

  2. Joost de Valk
    By Joost de Valk on 23 January, 2007

    Hey Mark, thx for the update!

  3. Joost de Valk
    By Joost de Valk on 23 January, 2007

    Updated the blogpost :)

  4. André Scholten
    By André Scholten on 23 January, 2007

    I’ll update my blog this evening, I hope everything goes as smooth as your update.

  5. Roy
    By Roy on 23 January, 2007

    None of my hosts supports MySQL 4.0 or higher. whichs sucks, since this is a requirement…

    What sucks even more is to find this out after copying the files over the old ones…

  6. André Scholten
    By André Scholten on 23 January, 2007

    Okay, the update went smooth. But once again I had to fix the page urls in the categories. If I’m in my SEO category, the “previous entries” link goes to page 2 of the homepage in stead of page 2 from the SEO category.

  7. Joost de Valk
    By Joost de Valk on 23 January, 2007

    Hmm that sucks André, let me check if I’ve got that problem too… And fix it while I’m at it ;)

  8. André Scholten
    By André Scholten on 24 January, 2007

    No, you don’t have that problem, it’s probably a IIS problem, because the rewriting is done otherwise.

  9. Joost de Valk
    By Joost de Valk on 24 January, 2007

    Ah ok, IIS sucks anway ;)

Check out our must read articles about Analytics