Upgrading from K2 0.9.1

Updated the instructions a bit. Please do not post bug reports here. Please post them to the bug tracker.

Here are some steps to take when upgrading from K2 0.9.1:

  1. Optional: Upgrade to WordPress 2.1. The next version of K2 will require it.
  2. Important: Deactivate the WordPress Widgets plugin.
  3. Optional: In the K2 Options panel, click on the Uninstall K2 button. Warning: This will deactivate and clear your K2 options. Ignore the headers error that you get.
  4. Rename the old k2 folder to something else.
  5. Download K2 0.9.5, decompress and upload the k2 folder to your WordPress themes folder.
  6. Copy any third-party schemes from the old styles folder to k2/styles.
  7. Copy any custom header images from the old images/headers folder to k2/images/headers.
  8. You can now delete your old K2 folder.
  9. Set the proper permissions to the headers folder: world writeable (777).
  1. Activate the new K2 from the Themes panel.

38 Responses to “Upgrading from K2 0.9.1”


  1. 1 SLIxx

    Thanks for it :-)
    Have a nice day

  2. 2 Yazeed

    when i try to uninstall k2 (first step)
    i get this other error :S

    Warning: Cannot modify header information – headers already sent by (output started at /home/.ottah/yazeez/yazeez.com/wp-admin/admin-header.php:16) in /home/.ottah/yazeez/yazeez.com/wp-content/themes/k2/options/app/tools.php on line 31

  3. 3 Mike

    Any idea why this error comes up when I install 0.95RC1: Fatal error: Call to undefined function: is_active_module() in … /theloop.php on line 76
    ?

  4. 4 steveo

    Yazeed: That’s fine. We fixed it in 0.9.5. Just goto step 2.
    Mike: Sorry. You need to click on Reset and Uninstall K2 and reactivate K2. I think I fixed it in svn.

  5. 5 John

    I still get the error Fatal error: Call to undefined function: is_active_module() in /homepages/31/d193069122/htdocs/wp-content/themes/k2/theloop.php on line 76 even after reseting K2

  6. 6 steveo

    John: Is the K2 Sidebar Modules tab visible in Presentation? If so, try adding a module. Does the error go away?

  7. 7 John

    No, but Sidebar Widgets is, and adding or subtracting widgets hasn’t worked.

  8. 8 John

    It seems to be a problem with the widgets plugin… whenever I disable the plugin entirely, it works, but when I enable it, it doesn’t.

  9. 9 John

    Fixed. I guess the new K2 isn’t compatible with Widgets.

  10. 10 Allen

    For some reason all the little images that were next to all the things in my posts (the fam fam ones next to the time and comments data) have disappeared. They worked earlier today, but I can’t get them to stay there.

  11. 11 steveo

    John: yup. The Widgets plugin turns off the K2 Sidebar Modules. You can use widgets with K2 Sidebar Modules, just don’t enable the Widgets plugin.

  12. 12 Yazeed

    i am getting this error now,
    is this going to end ? :P
    Fatal error: Call to undefined function: is_active_module() in /home/.ottah/yazeez/yazeez.com/wp-content/themes/k2/app/includes/info.php on line 186

  13. 13 harzack

    It worked like a charm for me, thanks!

  14. 14 Mike

    disabling the sibebar plugin did the trick. I did not realize that k2 has it built in.

  15. 15 shul

    Hi;
    Where should the upgrade from 2.0.4(in my case) to 2.1 take place? before or after the above instructions?

    Thanks, and great, great work !!

  16. 16 Lumpy

    I just did the upgrade to WP 2.1 and k2 0.9.1 seems to be working fine. A couple of questions:

    I was thinking of upgrading to K2 SVN. Should I follow the same upadte process as outlined above to do that?

    Also, how can I be sure I don’t lose any sidebar modules that I’ve already set up when I do an upgrade?

    Thanks.

  17. 17 Stian Domben BÃ¥rdsen

    Works like a charm!

  18. 18 Dave

    I get this error now:
    Fatal error: Call to undefined function is_active_module() in /home/dsousou8/public_html/wp-content/themes/k2/theloop.php on line 76

    Hmm….

  19. 19 Brian Jacob

    Thanks for the tutorial!

    I’m not sure what happened, but my clickable header graphics (750×135) used to appear under the previous version of k2 with a nice black border, with the menu appearing on the bottom border. After the upgrade, the border is gone and the menu links are appearing on top of the graphic itself. Sorry to bug you with CSS 101, but would you (or someone else checking this comments thread) be able to help me out?

    Thanks again!

  20. 20 steveo

    shul: It’s best to install WordPress 2.1 first and see if it works properly with your host.

    Lumpy: It’s a whole different beast when upgrading to svn since you’ll be using the svn command to checkout and such. cd to your themes folder and type:

    svn checkout http://kaytwo.googlecode.com/svn/trunk/ kaytwo

    this will check out the current svn build of k2. You don’t have to click on Uninstall K2 if you don’t want to lose your current sidebar modules settings. But it’s good to clear out the old settings.

    Dave: Please deactivate the WordPress Widgets plugin.

  21. 21 Lumpy

    Thanks for the info. A couple of follow-up questions, if I may.

    Upgrade to SVN: If I’m just saving the SVN updates to a folder on my local machine, can then just upload them to the K2 themes folder and that will “upgrade” me and preserve my sidebar modules?

    I think the loss of the sidebar modules with a theme upgrade is an issue that should be addressed in a future upgrade.

    Great work overall!

  22. 22 steveo

    Lumpy: Yup, you can just upload the folder. Your sidebar modules are preserved as long as you don’t click on Reset and Uninstall K2. We’re planning on adding a feature where you can save to xml and load from xml your sidebar module settings.

  23. 23 Andre

    Thanks a a lot. You really helped me out on the upgrade!

  24. 24 Andrew Howell

    Thanks for this great guide, helped me while updating lots and lots :)

  25. 25 padoko

    Great work! Thanx!

  26. 26 Sergio Pinna

    I don’t know the reasons but Livesearch don’t work.

    Please, help me. Thak you.

  27. 27 LoLyfe

    upgraded fine, although did have some issues with putting a custome image header up. Had to settle for renaming my own image. Looks plush and nice though… cheers

  28. 28 Dave

    Will these steps work if I’m upgrading to v. 0.9.5 from beta two r167b?

  29. 29 Lim Jian

    Mike, you can solve your problem by deactivating the Widget-Plugin by Automattic. :)

  30. 30 Amrit Tuladhar

    I have 0.95 RC. I don’t have the Widgets plugin (can’t see it under Plugins, in any case), and I can’t see the Sidebar Modules option under K2. But it still gives me the “Fatal error: Call to undefined function: is_active_module() in /home/amrittul/public_html/wordpress/wp-content/themes/k2/theloop.php on line 76” error. Any ideas?

    Thanks,
    AT.

  31. 31 Amrit Tuladhar

    Hmm, I restarted K2, and it appears to be working now. Took a few refreshes. Sorry for the impatient previous post.

  32. 32 chenu

    Hey,
    I’ve been trying to modify trueblue to have randomized header images like you do on this site. I use trueblue and k2 for the website for my schools, track team (huskiestrack.com), I would appreciate if you could help me out.

    Thank You,
    Chenu J.

  33. 33 German

    Hi,

    after upgrading WP to 2.1 I can’t see any options under K2 Options menu (beta two version). I just tryied to make upgrade to K2 0.95 accordingly instructions mentioned above (without deactivating previous installation as I don’t have access to this option) and got completely blank screen. After I rolled back via ssh site is working (also without K2 Options). Any idea?

    Thanks,
    German

  34. 34 Michele Costabile

    I solved the problem with Call to undefined function: is_active_module() and can continue using the sidebar widgets that I love.
    It is not clean but, commenting the code that manages asides works.
    I have commented the lines 76 to 78 in theloop.php

    //if (is_home() and is_active_module(‘asides_sidebar_module’)) {
    // $hide_asides = true;
    //}

    I noticed that I had no problem with sidebar widgets in all the other pages but home.
    Now everything works smoothly. Hopefully I will have some time in this century to see how I could save asides, but I do not use them :-)

  35. 35 Babak

    Does this work for nightlies as well? Thanks.

  36. 36 Hugo

    Hey Steve.

    Any news on the sidebar export/import thingy?

  37. 37 Ruairidh

    I have FAlbum installed but whenever I activate it with K2 I get the ‘theloop.php on line 76’ error. Any way around this because I need a gallery ASAP. Cheers.

  38. 38 march.

    thanks for this description. i found it more or less by accident.
    could you please put it as a read.me-file into the zip-file?

  1. 1 K2 v0.95 Release Candidate at K2
  2. 2 K2 0.95 RC1 at molgar.net
  3. 3 K2 0.95 Problems in WordpressMU at Webos Doulos - The Christian Web Servant
  4. 4 Metaverse Territories » Blog Archive » Broke down & busted
  5. 5 K2 : Mettre à jour votre version 0.9.1 at 2000 Lux sur le Net
  6. 6 K2 : Passer de la version 0.9.1 à la 0.9.5 at 2000 Lux sur le Net
  7. 7 K2 : Mettre à jour sa version vers la 0.9.5 at 2000 Lux sur le Net
  8. 8 I made a boo-boo | My Sexy Life
  9. 9 K2′nin v0.95′i ��kt�.. Yeni options panelli.. at gKAANs.oRg - Kaan’s Personal Blog
  10. 10 K2 perseverance… at Neville’s Sandbox
  11. 11 K2 WordPress theme users - clues? at Vortex(t)
  12. 12 WordPress Türkiye » Blog ArÅŸivi » K2 0.95 RC1 Türkçe
  13. 13 The Design Of SOP Theme at spirit’s life and thought
  14. 14 Web Programları Destek Platformu » Blog Archive » Türkçe WordPress Temaları
  15. 15 hAkAn » Blog Arşivi » Test 2

Leave a Reply