does anyone have any idea about this issue please?
Hi, I’ve got the same problem :
Warning: Creating default object from empty value in /homez.51/nexeo/www/javanex/wp-content/plugins/bbpress/bbp-includes/bbp-core-compatibility.php on line 84
My wordpress has 3.4.1–fr_FR version and I installed bbPress on version 2.0.3 with the extension manager. My theme is actually BlogoLife.
In addition, when I move to “bbPress (Twenty Ten)” theme, and only for this one, the warning change :
Warning: Creating default object from empty value in /homez.51/nexeo/www/javanex/wp-content/plugins/bbpress/bbp-themes/bbp-twentyten/functions.php on line 357
Does anyone has an idea on this ?
It looks like bbPress is checking if the current theme is compatible with bbPress.
On line 357 of your twenty ten them does it have: add_theme_support( 'bbpress' );
by any chance?
Good luck!
I’m not sure but I think you can try by switching to another theme and then see the result. Best of luck!!!
Hi, thanks for your responses.
@Lynq : on line 357 I have :
356: if ( ‘bbPress’ == get_class( $bbp ) ) {
357: $bbp->theme_compat->theme = new BBP_Twenty_Ten();
358: }
I didn’t understand what it does exactly.
@Aadhaar Card : I have tested about twenty theme, for all I have the first error : Warning: Creating default object from empty value in /homez.51/nexeo/www/javanex/wp-content/plugins/bbpress/bbp-includes/bbp-core-compatibility.php on line 84
The second error occur only when I use the “bbPress (Twenty Ten)”.
On line 84 I have : $bbp->theme_compat->theme = $theme;
Maybe the add_theme_support( ‘bbpress’ ); is missing anywhere… But I don’t know where…
Try adding in: add_theme_support( 'bbpress' );
into your theme functions file.
Good luck!
Yeah ! Well done Lynq !
I added add_theme_support( 'bbpress' );
a the end of my theme functions file and I don’t have the warning anymore.
Now I hope bbPress plugin works correctly.
Thank you
PS: I can’t close this topic because I didn’t start it…