Skip to:
Content
Pages
Categories
Search
Top
Bottom

User not set


  • bmontgomery
    Participant

    @bmontgomery

    Hello,

    I have a site with Buddypress installed.
    For some reason, when I click on “my profile” page, when I’m logged in with a certain type of users, I can see that current_user exists, and I have the button to edit my profile.
    But when I’m logged with other types of users, the buton “Edit” is not there, because bp_is_my_profile returns false, because the user object is empty…

    I read somewhere that wp_get_current_user return 0 is it’s called at the wrong place. But here, it’s the same page, so it should return the same kind of information.
    I don’t understand why this function returns nothing for some users…

    The only difference between these users is:
    – I use Paid Memberships Pro, and some users pay a membership while others pay nothing. So the first ones have a “membership level” while the other ones don’t have any.

    Anyone have an idea of how I could solve it ?
    I was thinking of creating a “free membership level” but I think it should work without having to do that.

    What do you think ?

    Thanks for your help

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

  • bmontgomery
    Participant

    @bmontgomery

    Isn’t there anyone who could help me ?
    I’m really stuck with this issue and I don’t understand what’s going on…

    Thanks


    shanebp
    Moderator

    @shanebp

    So the first ones have a “membership level” while the other ones don’t have any.

    If the ‘other ones’ do not have an Edit button, then create a free membership level.

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