WP 2.71 and K2

1 view
Skip to first unread message

5942marine

unread,
Feb 11, 2009, 11:01:50 AM2/11/09
to K2 Support
Hey guys, so last night, I updated WP to 2.71. However, I'm getting an
issue with the width of the theme, it's not being returned. Using
Firebug, I see that the error is in.

<b>Warning</b>: join() [<a href='function.join'>function.join</a>]:
Invalid arguments passed in <b>/home/XXXX/adploits/wp-content/themes/
k2/app/includes/info.php</b> on line 648

Does anyone have a fix to this?

5942marine

unread,
Feb 11, 2009, 11:10:02 AM2/11/09
to K2 Support
Okay, no worries, I updated it to the latest nightly build, and all is
working fine now.

Thanks though

Thiago

unread,
Feb 11, 2009, 11:47:00 AM2/11/09
to K2 Support
Hello, I'm with a issue here too... =\

Take a look please http://thiagof.com/up/

Updated to nightly and WP 2.7.1

Thanks !!!

5942marine

unread,
Feb 11, 2009, 11:55:50 AM2/11/09
to K2 Support
Just download the latest nightly, and upload it. What I did, was
change the default k2 folder name, to k2_modified, then made all the
css tweaks, etc.

On Feb 11, 9:47 am, Thiago <tlcamar...@gmail.com> wrote:
> Hello, I'm with a issue here too... =\
>
> Take a look pleasehttp://thiagof.com/up/

matt saler

unread,
Feb 12, 2009, 11:09:34 AM2/12/09
to K2 Support
Is there a way to fix this issue without installing the latest
nightly? I'd rather not give up the K2 Sidebar Manager yet. I'm using
RC7.

Thiago

unread,
Feb 12, 2009, 11:37:28 AM2/12/09
to K2 Support
I think no.

I installed the Nightly and it worked for me! :D

Steve Lam

unread,
Feb 12, 2009, 1:37:34 PM2/12/09
to k2-su...@googlegroups.com
The nightly builds still has the K2 Sidebar Manager (for now). The bug
appears to be 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) );

-Steve

ashi...@gmail.com

unread,
Feb 13, 2009, 4:12:47 PM2/13/09
to K2 Support
THANK YOU THANK YOU THANK YOU...!
A simple fix and my sites are working again. The layouts are no longer
messed up.
Thank you for taking the time to post this, Steve.
(For all others, see Steve Lam's note above)

easp

unread,
Feb 14, 2009, 4:13:00 PM2/14/09
to K2 Support
Thanks a lot for the fix. I note that 'attribute_escape()' is called
two more times in that file. The errors show up in the HTML, but the
impact isn't as obvious. I don't have the line numbers handy, but if
you just search, you'll find them, and you can make the same edit as
below.

On Feb 12, 10:37 am, Steve Lam <spikeys...@gmail.com> wrote:
> The nightly builds still has the K2 Sidebar Manager (for now). The bug  
> appears to be in thefunctionk2_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) );

Evgelen

unread,
Feb 15, 2009, 8:34:05 AM2/15/09
to K2 Support


On Feb 14, 4:13 pm, easp <especk...@gmail.com> wrote:
> Thanks a lot for the fix.  I note that 'attribute_escape()' is called
> two more times in that file.  The errors show up in the HTML, but the
> impact isn't as obvious.  I don't have the line numbers handy, but if
> you just search, you'll find them, and you can make the same edit as
> below.
>
> On Feb 12, 10:37 am, Steve Lam <spikeys...@gmail.com> wrote:
>
>
>
> > The nightly builds still has the K2 Sidebar Manager (for now). The bug  
> > appears to be in thefunctionk2_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) );
>
> > -Steve
> www.buycarandsellcar.com

> > On Feb 12, 2009, at 8:09 AM, matt saler wrote:
>
> > > Is there a way to fix this issue without installing the latest
> > > nightly? I'd rather not give up the K2 Sidebar Manager yet. I'm using
> > > RC7.- Hide quoted text -
>
> - Show quoted text -
>Thanks
>>

Thava

unread,
Feb 15, 2009, 11:09:22 AM2/15/09
to K2 Support
Thanks a lot...

You save me lot of time...to debug.

/ Thava

On Feb 12, 7:37 pm, Steve Lam <spikeys...@gmail.com> wrote:

chm

unread,
Feb 15, 2009, 11:11:40 AM2/15/09
to K2 Support
thanks for the fix!
you can find a fixed version of the info.php on my blog:
http://bloxxs.ch/?p=2074

muymalestado

unread,
Mar 1, 2009, 6:15:28 AM3/1/09
to K2 Support
THANK YOU Steve Lam - the nightly didn't do it. The new info.php
didn't do it. Your line alteration did it!

George C

unread,
Mar 4, 2009, 8:35:26 PM3/4/09
to K2 Support
I had the same issue, and Steve Lam's fix did the trick. Thank you!
Reply all
Reply to author
Forward
0 new messages