WordPress 2.7.1 and K2 1.0-RC7

This only applies to 1.0-RC7. If you are using subversion or a nightly build, this does not apply.

There is a bug in K2 1.0-RC7 which causes K2′s layout to break with WordPress 2.7.1. If you are using or planning to update to WordPress 2.7.1 (which you should if you’re using WordPress 2.7), you have two options:

Option A: Download the fixed info.php and replace the existing: k2/app/includes/info.php.

OR

Option B: Upgrade to the latest K2 nightly.

One more thing, there will be a 1.0-RC8 release of K2 and this release will not contain the K2 Sidebar Manager. Work is being done on a K2 Sidebar Manager to Widgets importer.

2009-02-18 Update: Added clarification.

12 Responses to “WordPress 2.7.1 and K2 1.0-RC7”


  • Thanks for the quick fix :); i did a 2.7.1 manual upgrade except for the updated wp-includes/formatting.php file because it was breaking my layout.

  • I’ve tried this but when I try to use K2 as a theme I get this message:Fatal error: Cannot redeclare k2_nice_category() (previously declared in /home6/tomlewer/public_html/news/wp-content/themes/k2/app/includes/info.php:373) in /home6/tomlewer/public_html/news/wp-content/themes/k2/app/includes/display.php on line 145

    I’m no expert with PHP so I don’t know why this is happening. Anyone?

  • This only applies to K2 1.0-RC7. Not the nightly builds or 1.0-RC6, etc.

  • Installed the updated info.php but now I’m getting php errors sometimes.

    Warning: Cannot modify header information – headers already sent by (output started at /f1/content/mysite/public/wp-content/themes/k2/app/includes/info.php:752) in /f1/content/mysite/public/wp-includes/pluggable.php on line 850

  • Nevermind, it was some trailing white space. How annoying! Thanks for the quick fix.

  • Thanks for patch Steve!

    One of my sites was looking pretty bad and I’m not quite ready to upgrade to the nightly. I replaced the file and it’s working perfectly.

  • oh, thank you so much.
    I’ve spent hours and hours to find my mistake that caused my layout to crash after the update. Finally I know what caused the the problem with my website.

    Thanks for the new patch!

  • Nice. I upgraded to the latest nightly (r756 at the time) when I noticed that 2.7.1 broke my RC7. But unfortunately the nightly gave me some other minor issues, so I’ll try going back to RC7 with the new info.php.

  • Found the bug with bugzilla but didnt know how to fix it. Installed the file, which works fine, except that the search function doesnt recognize css styling.

    Also tried the nightly, but it made my post meta disappear. Anyway, thanks for the quick response and the fix!

  • I knew I couldn’t be crazy! At first I thoght it was some modifcations that I had made to the CSS file. I even uninstalled K2 completely and started from scratch. I didn’t bother with the nightly. Installing the updated info.php fixed my page up quite nicely. I’ll wait ’til RC8 drops. Phew! Thanks for thw quick fix!

  • Just upgrade to latest K2 nightly. Easy!

  • hello,
    i have a question – is there available (or will be) dark (black) K2 theme?

    thanks!

Comments are currently closed.