Support » Plugin: BuddyPress Messaging Control » Problem: Messages link disappear and 404 page

  • Hi

    Im having problems with the plugin at the moment.
    The messages link is disappearing when the plugin is activated. I have a dropdown menu for my profiles and here I can click “messages” but Im redirected to the 404 page.
    When I visit other users the “Private message” button is gone. But it seems like the “Private message” button appears when Im an admin user visiting another admin user.
    When I deactivate the plugin all message functionalities comes back..

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Venutius

    (@venutius)

    Sounds like the plugin thinks you have disabled private massaging for that user role. What are your settings?

    Hi, I did some testing. For the full picture I allow myself to document my testing here.

    So my ‘New User Default Role’ for the site is = ‘Subscriber’.

    Test 1:
    User: Role = ‘Subscriber’ and Membership Level = None.
    ‘Subscriber’ -> Messaging disabled -> went to 404 error page when clicking on message link in profile dropdown.
    ‘Subscriber’ -> Message site admin only -> went to inbox.
    –> OK

    Test 2:
    User: Role = ‘Subscriber, Participant’ and Membership level = Free.
    ‘Subscriber, Participant’ -> Messaging disabled -> went to 404 error page when clicking on message link in profile dropdown.
    ‘Subscriber, Participant’ -> Message site admin only -> went to 404 error page when clicking on message link in profile dropdown.
    –> Error

    Test 3:
    User: Role = ‘Gold, Participant’ and Membership level = Gold
    ‘Gold, Participant’ -> Freely message all site users
    -> went to 404 error page when clicking on message link in profile dropdown.
    -> No Private message button when visiting profile
    –> Error

    Test 4:
    User: Role = ‘Free’ and Membership level = Free.
    ‘Free’ -> Freely message all site users (3 daily)
    -> went to inbox.
    -> Private message button when visiting some profiles (though only profiles with only one role)
    –> OK

    So it seems like there is a pattern in the problem:
    If the signed up users for some reason has two site role (e.g. ‘Free, Participant’ OR ‘Gold, Participant’ etc.) then the 404 error page is shown when clicking “Messages” and the “Private message” button will disappear.

    I think that some of my test user profiles has inherited two site role names while building the site. When I sign up new users now the user only get one site role and thus the problem shouldn’t appear in the future. So I think the problem is solved. And I guess that it makes sence that the plugin only looks for one Site role.

    So I would suggest to either highlight/inform the users downloading the plugin that they should check the site roles for their users.

    Plugin Author Venutius

    (@venutius)

    Yes the plugin loops through each role the user has and sets the limitation to the last role with a restriction in the loop. for this reason it’s best if the users only have one role that is applying the restrictions.

    I do have an option to change this behaviour, just not sure what rules I should apply:

    1. set the restriction to the lowest setting of all the roles, or
    2. set the restriction to the highest setting of all the restricted roles they possess.

    would either of these suit your use case better?

    well good question.
    I think I will go for applying only one site role.
    But if I was to choose I think the best would be to have a rule to restrict the newest/highest role the user possess .

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Problem: Messages link disappear and 404 page’ is closed to new replies.