Info
- 4 posts
- 2 voices
- Started 2 years ago by r-a-y
- Latest reply from _ck_
- This topic is not resolved
post_form() h2 woes
-
- Posted 2 years ago #
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"?
-
- Posted 2 years ago #
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.
-
- Posted 2 years ago #
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.
-
- Posted 2 years ago #
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. -
You must log in to post.