• I am using the Types plugin for a bunch of stuff on my website. Then I am using Members to create a new Role and a new Capability.

    When editing an existing user, the Roles checkboxes are all unchecked regardless if the user is a native role such as Administrator or the custom role I created. If I click on the checkbox again and Save the form, the values are saved correctly but their checked states are not preserved.

    If I disable the Types plugin, the checked state of the checkboxes works.

    Here’s a quick screenshot https://d.pr/i/17lii where this user should have the Judge checkbox checked. The Extra User Fields area above is from Types.

    I am not sure if this is a Members or Types issue, but I will start by posting in here.

    Thanks

    https://www.ads-software.com/plugins/members/

Viewing 4 replies - 1 through 4 (of 4 total)
  • I started looking through Types, but since the relevant files in the plugin pretty pretty much have zero inline documentation, I just gave up. There’s no sense in a plugin of that size not having good inline docs.

    In its /includes/classes/class.wpcf.roles.php file, there’s a lot of role and cap manipulation going on. My best guess is that the issue lies in that particular file.

    I’m not sure why a plugin for managing post types and taxonomies is changing roles/caps. That’s something you’ll need to ask the plugin author about. Role/Cap management should generally be handled by role/cap management plugins like Members.

    Perhaps I can add some useful information here. I’m also having trouble when the multiple role capability is enabled in Members and Types is activated.

    I find that if a user is assigned multiple roles and the user’s information is edited, the first role from the capabilities field in usermeta is not checked in the Edit User page. The usermeta database is not changed until the user information is updated. Only the internal data structures are affected until the Update User button is clicked.

    Each time the Update User button is clicked a role is peeled off the list in the capabilities field as the Edit User page is reloaded until no roles are left.

    When multiple roles are not enabled in Members the one user role does not get deleted.

    I have an open issue regarding this over in the community forum on wp-types.com.

    Thread Starter shaiful

    (@shaiful)

    Thank you for checking, Justin. I ended up disabling the multiple roles feature as a quick temporary fix.

    I’m trying to use Members for the access control over Toolset Types, as their Access Control bit is hierarchal (which doesn’t really fit in with custom types at all, but this isn’t the place to bitch about that).

    If I have Toolset Access Control (TAC) disabled I don’t see any of the custom types in the Members Role editing form.

    If I activate TAC I don’t see any types in Members unless I set “Manage by Access” for the type in TAC… then I can see read/edit/delete/publish options, but they don’t seem to do anything. If I then, deactivate TAC, the setting remain in the ALL tab of Members, but I don’t see the types available anymore… and it still doesn’t appear to allow me to set a roles to edit specific types.

    I’ve been messing with various setting between the two to try to get them working together with no luck. What am I missing?

    Also, if I need to clean all this up… where are the Members settings stored in the DB?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Conflict with Types plugin – Roles checkbox not checked’ is closed to new replies.