WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] 2.7.1 upgrade had horrible side effects with K2 theme (20 posts)

  1. automichael
    Member
    Posted 5 years ago #

    After upgrading to 2.7.1, my K2 theme is all messed up. Page body aligns at left, backgrounds repeat and header is completely off and repeats as well. How can I fix this???

    domain is http://www.automorrowmusic.com/blog, but at the moment i have a maintenance message up. This site has just launched so I really need to figure out how to correct this :(

  2. automichael
    Member
    Posted 5 years ago #

    took down maintenance message so everyone could see whats happening. no other changes were made, just the upgrade from 2.7 to 2.7.1. Anybody?

  3. automichael
    Member
    Posted 5 years ago #

    I've downgraded back to 2.7 for now.

  4. Inkdryer
    Member
    Posted 5 years ago #

    Same thing happened to me. How do you downgrade exactly?

  5. Inkdryer
    Member
    Posted 5 years ago #

    How do you downgrade to 2.7 from 2.7.1? I am having the same problems.

  6. automichael
    Member
    Posted 5 years ago #

    Deactivate ALL your plugins, then go to the wordpress version archives (google it, you'll find it) and download the 2.7 zip file. Extract it on your desktop or wherever. Using an ftp client, filezilla, leechftp, etc. open up your blog directory and copy all of the extracted files into it (EXCEPT keep your original wp-config.php). Once all files have been overwritten, reactivate your plugins and you should be set. Might want to backup first just in case but it worked out fine for me.

  7. SoItsComeToThis
    Member
    Posted 5 years ago #

    I think there were changes to the JQuery libraries and its what caused K2 to go haywire. I read somewhere that someone downloaded the latest nightly build of K2 and the pages drew normally.

    I'm going to try that first before downgrading. My host has versions so its easy for me to roll back the changes. See if your hosts allow for that.

  8. scrufus
    Member
    Posted 5 years ago #

    Happened to me. I downloaded the latest nightly. Seemed to solve the problem.

  9. zaneselvans
    Member
    Posted 5 years ago #

    Doh! Happened to me too. K2 borken, svn switched back to tags/2.7. Too bad. Have it working again with the kaytwo trunk revision. Somebody somewhere (wp? k2?) should have avoided this though, given how popular k2 is.

  10. automichael
    Member
    Posted 5 years ago #

    I tried the nightly build before I downgraded back to 2.7, and while it fixed the strange alignment issues it did a few other things that messed up the layout as well. Notably the header turned back into an empty blue rectangle even though the header setup in the admin panel showed I had my image selected. It also changed the live search bar in some odd way. Made it take up more room and overflow my sidebar.. I'll probably wait a little while before I do this upgrade again, just to be sure. I'm seeing some other topics about various plugin compatibility issues as well.

  11. Luciano Passuello
    Member
    Posted 5 years ago #

    Although I don't have a solution, I figured out what's happening (at least for those that are on K2):

    The body class (<body class="wordpress k2 y2009 m02 d11 h10 home blog columns-three lang-en") is not being generated correctly.

    WordPress is generating the page as <body class="">, so the css doesn't get applied right.

  12. automichael
    Member
    Posted 5 years ago #

    Well here's hoping for a quick fix by either wp or k2! In the meantime I don't think I'll feel too left out using 2.7. The changes seemed negligible, so I wouldn't have thought my whole theme would go crazy ;)

  13. Luciano Passuello
    Member
    Posted 5 years ago #

    For those looking for (a really quick) fix, just edit header.php and add the classes manually:

    mine:

    old code
    <body class="<?php k2_body_class(); ?>">

    new code
    <body class="wordpress k2 blog columns-three lang-en <?php k2_body_class(); ?>">

  14. Anja Fokker
    Member
    Posted 5 years ago #

    Luciano: Thanks, it works!

  15. alpmeyda
    Member
    Posted 5 years ago #

    I had exactly the same problem and I spent way too long looking for a solution elsewhere before checking here.

    Just to add to Luciano's solution; if you're using a two column layout, don't forget two swap columns-three with columns-two

    Have a good day.

  16. Jusjacker
    Member
    Posted 5 years ago #

    Thanks a bunch Luciano, it worked for me too!

    http://www.superforest.org

  17. spikeyslam
    Member
    Posted 5 years ago #

    The bug is in the function k2_body_class in k2/app/includes/info.php (line 648):

    // Separates classes with a single space, collates classes for BODY
    $c = join( ' ', attribute_escape( apply_filters('body_class', $c) ) );

    Change it to:

    // Separates classes with a single space, collates classes for BODY
    $c = join( ' ', apply_filters('body_class', $c) );

  18. benwall
    Member
    Posted 5 years ago #

    Luciano - you're a star. lol

  19. Baumi_B
    Member
    Posted 5 years ago #

    Just a short note - the latest nightly of k2 did cure the problem for me.

    All the best
    Baumi

  20. biodrama
    Member
    Posted 5 years ago #

    This is a very strange bug. I have 2 blogs using K2, and it only affected one of them. Why would one blog display this problem, while the other centers nicely? WP 2.8.4 & K2rc8v807.

  21. biodrama
    Member
    Posted 5 years ago #

    Please ignore my previous post. Upgrading to the latest K2 nightly fixed the problem. I thought I was still seeing it, but it was an artifact of the local to remote override process in CSSEdit.

Topic Closed

This topic has been closed to new replies.

About this Topic