Forums

Join
bbPress Support ForumsTroubleshootingpost_form() h2 woes

Info

post_form() h2 woes

  1. I just installed bbPress 1.0 to my dev server today and something strange is happening.

    Instead of "Reply" or "New Topic in this Forum" for the h2 class "post-form", I am now getting the string "Array".

    Any idea why?

    Funny thing is this isn't happening on my localbox where I installed bbPress 1.0 from 1.0 alpha 6 exactly the same way.

    ---

    I just went into functions.bb-template.php to do a var_dump of the $h2 variable in the post_form() function and this is what I get:

    array(1) { ["h2"]=> array(1) { ["h2"]=> array(1) { ["h2"]=> *RECURSION* } } }

    Any idea why the $h2 variable is an array when it should be outputting one of the strings "Reply", "New Topic in this forum" or "Add New Topic"?

  2. Okay, I've narrowed it down to a problem with _cK_'s Read Only Forums plugin, which is weird, because like I said, the h2 displays properly on my localbox with _cK_'s plugin.

  3. Ugly hack for now...

    I commented out two lines in functions.bb-template.php:

    Line 272:
    if ( empty( $h2 ) && false !== $h2 ) {

    Line 280:
    }

    Would be nice to get a better workaround that doesn't require hacking a core file.

  4. My plugins are not supported on 1.0 and many will not work properly.
    I've said this several times over the past few months.

  5. You must log in to post.