Skip to:
Content
Pages
Categories
Search
Top
Bottom

Creating default object from empty value

  • hi~ bbPress is really great and I do love it. however, when i transferred my wordpress to a new server. something bad happen.

    when I enable the bbPress, an error message shows up:”Warning: Creating default object from empty value in D:webwp-contentpluginsbbpressbbp-includesbbp-core-compatibility.php on line 84″

    I guess it has something to do with this code ‘$bbp->theme_compat->theme = $theme;’

    could anyone give me some instruction?

    the theme i use is the default Twentyeleven Century.

    thanks a lot in advance!

Viewing 7 replies - 1 through 7 (of 7 total)
  • does anyone have any idea about this issue please?


    loicknuchel
    Member

    @loicknuchel

    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 ?


    Lynq
    Participant

    @lynq

    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!!!


    loicknuchel
    Member

    @loicknuchel

    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… :(


    Lynq
    Participant

    @lynq

    Try adding in: add_theme_support( 'bbpress' ); into your theme functions file.

    Good luck!


    loicknuchel
    Member

    @loicknuchel

    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…

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Skip to toolbar