WordPress.org

Forums

Members
Not Working For bbPress Roles (4 posts)

  1. billsmithem
    Member
    Posted 2 years ago #

    I can't edit any of the bbPress roles. It appears that when I hit Update Role, the wrong parameters are being passed for role. Looks like the Role Label instead of the Role Name is being passed and is causing role-edit.php to attempt to call the member of a NULL object.

    Fatal error: Call to a member function has_cap() on a non-object in /home/palmetto/public_html/palmeccwp/wp-content/plugins/members/admin/role-edit.php on line 30

    Anyone else having an issue with this?

    http://wordpress.org/extend/plugins/members/

  2. Justin Tadlock

    Plugin Author

    Posted 2 years ago #

  3. billsmithem
    Member
    Posted 2 years ago #

    Thanks for taking the time to respond. I had a feeling that bbPress was doing something bizarre when your code was getting passed the wrong info.

  4. tzeldin88
    Member
    Posted 2 years ago #

    You can "map" your wp / members-plugin roles, to those used by bbPress. I have a custom role (created with Members plugin) called Student. I mapped this role to the "Participant" role in bbPress.

    /**
     * FORUM - Role map
     * bbPress has its own internal ("dynamic") Roles, so we map our real wp roles to bbPress.
     */
    add_filter('bbp_get_user_role_map','my_bbPress_role_map');
    function my_bbPress_role_map($role_map){
    	$role_map['student'] = bbp_get_participant_role();
    	return $role_map;
    }

    Refer to http://bbpress.org/forums/topic/fix-for-users-of-s2member-and-bbpress-2-2/#post-120479

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Members
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.