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:
- Optional: Upgrade to WordPress 2.1. The next version of K2 will require it.
- Important: Deactivate the WordPress Widgets plugin.
- 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.
- Rename the old k2 folder to something else.
- Download K2 0.9.5, decompress and upload the k2 folder to your WordPress themes folder.
- Copy any third-party schemes from the old styles folder to k2/styles.
- Copy any custom header images from the old images/headers folder to k2/images/headers.
- You can now delete your old K2 folder.
- Set the proper permissions to the headers folder: world writeable (777).
- Activate the new K2 from the Themes panel.
Thanks for it
Have a nice day
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
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
?
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.
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
John: Is the K2 Sidebar Modules tab visible in Presentation? If so, try adding a module. Does the error go away?
No, but Sidebar Widgets is, and adding or subtracting widgets hasn’t worked.
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.
Fixed. I guess the new K2 isn’t compatible with Widgets.
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.
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.
i am getting this error now,
is this going to end ?
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
It worked like a charm for me, thanks!
disabling the sibebar plugin did the trick. I did not realize that k2 has it built in.
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 !!
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.
Works like a charm!
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….
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!
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.
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!
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.
Thanks a a lot. You really helped me out on the upgrade!
Thanks for this great guide, helped me while updating lots and lots
Great work! Thanx!
I don’t know the reasons but Livesearch don’t work.
Please, help me. Thak you.
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
Will these steps work if I’m upgrading to v. 0.9.5 from beta two r167b?
Mike, you can solve your problem by deactivating the Widget-Plugin by Automattic.
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.
Hmm, I restarted K2, and it appears to be working now. Took a few refreshes. Sorry for the impatient previous post.
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.
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
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
Does this work for nightlies as well? Thanks.
Hey Steve.
Any news on the sidebar export/import thingy?
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.
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?