Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] bbp_current_user_avatar suddenly stopped working, tried everything!


  • DarkPsy
    Participant

    @darkpsy

    I’m making a custom buddypress theme for my client and up until a week back the bbp_curent_user_avatar() function was working as expected but out of nowhere it’s stopped working. I’ve tried reinstalling wordpress/buddypress about 5 times for various reasons but still no luck. has anyone else encountered this? Is there a better way to do it?

Viewing 6 replies - 1 through 6 (of 6 total)

  • danbp
    Moderator

    @danbp

    @darkpsy,

    is there a better way to do it?

    If you expect some help, you have to tell what you already did on the way you mention.

    As you built your own theme, you perhaps use this function outside of the bbPress scope ?
    What does it give by using get_avatar() ?

    Do you read this bbPress codex page ?

    Maybe better you ask on bbPress forum – remember although bbPress is a standalone plugin, integrated with buddyPress.


    DarkPsy
    Participant

    @darkpsy

    Hello Dan,

    I’m using it in the exact same way I was a week back when everything was working just as expected, suddenly it stopped working.

    I also have this message being displayed

    Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in ~wordressdir~/wp-includes/functions.php on line 3245 Warning: Cannot modify header information - headers already sent by (output started at ~wordressdir~/wp-includes/functions.php:3245) in ~wordressdir~/wp-includes/pluggable.php on line 1121

    The bbPress plugin isn’t something I feel this is related to. Basically I’m baffled cos it was working a week back and now it’s not. everything is the same way. Even on a clean install it backfires.

    Buddypress 2.0.2.
    WP 3.9.2


    danbp
    Moderator

    @danbp

    Five minutes before he died, he was alive ! That’s life, my dear: nothing is never changing.

    I would suggest to deactivate bp-custom if you use this file, and any custom functions.php and activate 2014. Then deactivate all plugins except BP and test the avatars output everywhere.
    Than you reactivate bbPress and check again.

    Regarding the notice, you have a plugin called twice or a template file who sends a second header.


    DarkPsy
    Participant

    @darkpsy

    No I don’t use bp-custom, I’ve tried it with 2012,14 and still it doesn’t work. I can’t be the only one.

    Thanks for your time danbp


    danbp
    Moderator

    @danbp

    It’s only a php notice. Such message are not really errors, but more some information telling you you have/made something wrong around coding standarts.

    No idea what is happening with your theme, sorry.

    You have to debug the whole install.


    DarkPsy
    Participant

    @darkpsy

    It’s one of those I just have to grind it out I guess. I’m not worried at all about the PHP Notices, that’s fine. The absolutely amazing behavior where the current_avatar function stops working even on a clean install is spooky. I’ll post something if I do make a break through , which seems unlikely right now.

    Workaround: bbp_current_user_avatar fetches the gravtar link associated with an email.
    At signup I have another custom field which forces the user to upload an avatar and then I replace all avatar references to the user defined profile image.

    You could do this with custom fields or a plugin like ‘Buddypress upload avatar ajax’ and then just retrieve the value from the $user.

    Anyway you won’t have a website which relies solely on gravatars to begin with.

    Until then I’ll stick to this, thanks again Dan for your patience. Cheers!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] bbp_current_user_avatar suddenly stopped working, tried everything!’ is closed to new replies.
Skip to toolbar