Support Forum

New installation, admin rights don't stick?

AK Ari Kontiainen
Ari Kontiainen
Member

Hi.

I installed this plugin, activated it and tried to grant admin rights to another WordPress admin. Saving the rights seem to go ok, but they don’t stick = when I reload the page, all the check marks are missing from another admin. 

Is this a feature (before membership) or a possible bug?

12 Answers

New Answer

MP Mr Papa
Mr Papa
Member

confused when you say reload the page… did you save the admin panel after checking all the admin capabilities you wanted to apply to a user?  the Add New Admins button?  because that itself will force a panel reload…  and in couple quick tests seems working fine…

AK Ari Kontiainen
Ari Kontiainen
Member

Here’s what has happened so far.

I installed (fresh) SPF as user “Ari” (wp admin). Did not get SPF admin rights, did not see any submenus under Forum menu item.

So, I logged in as “ylläpitäjä” (wp admin) user, navigated to Forum -> Admins -> Manage Admins and checked all boxes for Admin user Ari -> Update Admin Capabilities. Yellow status tells “Admin capabilities updated”, but they’re not. All boxes remain unchecked.

However, now that I look at the page, it looks like not even “ylläpitäjä” user has the rights to Manage admins. I wonder who then has… 

See screen capture for more details: https://www.dropbox.com/s/03oetu4xk3fozvd/spf-admin-view.jpg?dl=0

MP Mr Papa
Mr Papa
Member

at simple press install, the only user with sp admin caps is the wp user who did the install… That user must add any additional sp admins on forum – admins – manage admins..

actually, your image says that user does have manage admins cap… it displays a lock since you cant remove that cap from yourself…

this wouldnt be a problem that anyone else is experiencing…  do you have other plugins that might be adding/removing caps from users?

with the browser console open, when you save, what is the ajax response?

AK Ari Kontiainen
Ari Kontiainen
Member

I actually had two plugins related to capabilities. “Members” and “User Role Editor”, which have helped us to tweak proper rights for persons in our association. Once I deactivated them the problem vanished. Is one of them in your black list, a know trouble maker?

Thank you for the hint! Incompatibilities surely seem to be a problem in WordPress community…

MP Mr Papa
Mr Papa
Member

actually, no they are not..  they must be hooking into the wp capabilites setting process and preventing other changes… odd too…  do our settings now stick if you re-enable them?  perhaps they only get in the way for making changes?

AK Ari Kontiainen
Ari Kontiainen
Member

Actually it looked like the SFP admin settings were Ok after I deactivated the two plugins. I did not have to try to change them. However, one of the two must have prevented “seeing” them, or something?

Weird.

MP Mr Papa
Mr Papa
Member

agree strange, but glad things are fine now…

AK Ari Kontiainen
Ari Kontiainen
Member

Hi.

It looks like Members plugin

https://wordpress.org/plugins/members/

is somehow not compatible with SPF. When I activated it again, my SPF admin rights disappeared. Deactivating Members brings them back.

Since Members has been a very useful plugin for us, it would be hard to live without it. Could you take a look what might cause the incompatibility?

YS Yellow Swordfish
Yellow Swordfish
Member

Morning Ari

Have you discussed this with the authors of this ‘Members’ plugin? Judging by what you describe, it almost sounds like they are bypassing (or perhaps ignoring) the standard WordPress Capabilities. In simple terms, these contain a list of what a user can and can not do in the system. If you look at the forum admin > Admins > Manage Admins – SP creates a capability entry for each of those items using a checkbox to turn then on or off.

it sounds very much like your other plugin is ignoring these capabilities and doing it’s own thing. I think the first thing to do is to talk to them to see if this might be the case and ask why your capabilities are being closed down when ‘Members’ is active.

Please note – after you reply to this next time, we will move this topic ‘Simple:Press 5 General Topics‘ forum.

AK Ari Kontiainen
Ari Kontiainen
Member

I have notified him now. Thank you for your support.

https://wordpress.org/support/topic/members-not-compatible-with-simplepress-forum/#post-10568216

AK Ari Kontiainen
Ari Kontiainen
Member

…and he responded (see the link to plugin support forum in previous post), which is really great! I’m not familiar with implementation details mentioned, but I trust you are.

And, I hope you could help him to get a link to SPF core and work this out.

Thank you for you good work, really appreciate it!

YS Yellow Swordfish
Yellow Swordfish
Member

Justin is an old and respected hand at all of this so he should know what he is doing. So here is the reply you need to give to him…

Simple:Press does NOT get involved in WP Roles in any way. We do not create them, remove them etc. What we DO is define a set of capabilities for the Forum Admins. Note that Forum Admins do NOT need to be WP Administrators.

When a user is defined as a new Forum Admin the forum specific capabilities defined for that user are added to the standard capabilities defined in their usermeta record. We have never before heard – in over 12 years – of these user caps being lost, ignored or bypassed before.

As far as we are concerned, these caps are added in line with the WP API and within the scope and intention of user caps.