WordPress.org

Forums

User Role Editor
[resolved] Cannot Edit Settings in Multisite (28 posts)

  1. Shaun Williams
    Member
    Posted 1 year ago #

    Running the plugin 3.14.1 under a Multisite setup.

    I can edit the Roles within the master site. Apply to all sites doesn't seem to work.

    Also when trying to select a role from within a subsite, it refreshes back to the subscriber role, so I cannot edit any other role.

    And if I go to subsite, select a User and click on the user role link within that profile, I get the Users roles, but if I then select the Human Readable it refreshes back to the full plugin settings again.

    http://wordpress.org/extend/plugins/user-role-editor/

  2. Vladimir Garagulya
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Shaun,
    Thanks for the information.
    In order 'Apply to all sites' work you need to turn it on, change something in the currently selected role, then press update. Updated role will be replicated to all sites of your network.

    It seems that we have a problem with some specific configuration of your site, may be conflict with some plugin occur. Could you make exact test copy of your WP installation in order I investigate the problem on site?

  3. Shaun Williams
    Member
    Posted 1 year ago #

    Firstly I know how to change settings for sitewide.

    Issue is it doesn't work.

    I make a change and apply it to all sites, then check a subsite and it hasn't changed to reflect my main change.

    And by default on a subsite, I go into User Role Editor, defaults to Subscriber Role. I change it to another role to edit and the page just refreshes back to the Subscriber Role.

    How am I suppose to do a test copy of the site? That would take hours of work and I would also need new hosting account.

    I could give you access to the existing site?

  4. Shaun Williams
    Member
    Posted 1 year ago #

    I've also just tried and set the same plugins for the parent domain as to one of the sub domains.

    Same issues.

  5. Vladimir Garagulya
    Member
    Plugin Author

    Posted 1 year ago #

    If that's possible for you to give me access to your site I'm ready to look on the described problem. Please send my email (vladimir [email-sign] shinephp.com) blog administrator user and FTP credentials.

  6. Shaun Williams
    Member
    Posted 1 year ago #

    Just sent a couple of eamils with details.

    Also explain what domains were in use etc so you know what sites you can tinker with if need be without breaking a live site.

    Thank you for the help so far.

  7. Vladimir Garagulya
    Member
    Plugin Author

    Posted 1 year ago #

    I got the information, thanks.

  8. Vladimir Garagulya
    Member
    Plugin Author

    Posted 1 year ago #

    Described problem is caused by 'Domain Mapping' plugin activated on your site. When I switched the primary domain for yourgigguid.com back to the
    http://eangulus.com/yourgigguide URE plugin works as expected.

    Thus, I confirm the fact of incompatibility Multisite WP with active 'Domain Mapping' and URE plugin.

    I suppose that, when you tries to act on other domain from the main site - domain redirection occurs - all data send to the server via POST request are lost somewhere. URE plugin receives data from the URL parameters (GET request) only.
    That's why you get the initial URE page with 'Subscriber' role always.

    As workaround you may switch primary domain for subsite to the main site subdomain, work with URE. Then switch primary domain for subsite back to its different domain.

    For this moment 'yourgigguide' subsite is switched to subdomain
    http://eangulus.com/yourgigguide
    When testing multi-site role update I added 'read_shop_order' capability to the 'Subscriber' role and updated role with 'Apply to All Sites' option turned on. So currently 'Subscriber' role at 'yourgigguide' have the 'read_shop_order' capability.
    I didn't revert my changes back in order you may take a look on that.

  9. Shaun Williams
    Member
    Posted 1 year ago #

    OK, that makes allot of sense.

    Thank you for getting to the bottom of the issue. Much appreciated.

    Do you have plans to fix this in future as it will be very annoying having to change it everytime I need to edit User Roles and if I give access to a customer to edit their own sites roles, then they wouldn't be able to change the domain setting.

  10. Vladimir Garagulya
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks to you for the information about this problem and permission you gave me to research the issue on site.
    I will investigate the problem definitely and try to find the solution for one of the future versions.

  11. Shaun Williams
    Member
    Posted 1 year ago #

    Feel free to ask if you would like me to test.

    I could leave your account there for a little while if you want to use the yougigguide account for testing.

  12. Vladimir Garagulya
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks. It is better to block the test account now as fix searching and update development make take about month due to my current plans and workload. I will ask you for tests definitely, just let me found a decision.

  13. Shaun Williams
    Member
    Posted 1 year ago #

    No problem. You have my contact details when ready.

    Thanks again for the help.

  14. Shaun Williams
    Member
    Posted 1 year ago #

    Sorry but there are still problems.

    Did the above solutions in terms of the domain mapping.

    I have a Shop Manager Role, and I set all capabilities to checked, then save for all sites. Get Update Successful.

    Then I go into a sub site, and the Role as listed there is not the same. I try to change it in the subsite and it states it was successful but refreshes and doesn't have the changes.

    I also get the same when trying to edit the capabilities of the individual user.

    Also another issue that is more of an annoyance, is that if you hit save without changing anything it returns an error message. I don't think there was an error it simply didn't need to save anything as nothing was changed.

    PS: your accounts are still active.

  15. Vladimir Garagulya
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for the information. I will try to check today.

  16. Shaun Williams
    Member
    Posted 1 year ago #

    Also just noticed another issue.

    Under the subsite, I hit reset, reading everything and assuming it will reset to the Multisite defaults.

    What happened thou is it deleted all custom Roles & Capabilities for the subsite, yet they are still there everywhere else.

    So on the Master domain I saved to all sites a custom roles, and it will not add it to the subsite its missing from.

  17. Vladimir Garagulya
    Member
    Plugin Author

    Posted 1 year ago #

    With what subsite you have a problem?

  18. Shaun Williams
    Member
    Posted 1 year ago #

    I was playing with the oranamodels one.

    But after having the issues I went to the yourgiguide one to test again.

    What I have noticed right now, is that I have to actually change a setting in the master then save to all sites for it to reappear in the subsite. So I may have to go thru each subsite manually and reset all the roles and such and will be very time consuming.

    Still testing if resetting as above has fixed editing user capabilities.

  19. Shaun Williams
    Member
    Posted 1 year ago #

    I have a sample user there to test with too.

  20. Shaun Williams
    Member
    Posted 1 year ago #

    Users individual capability settings are still not getting what is being set in the roles.

    If you look at the Shop Manager, you can see all caps are selected. Then go to the sample user and edit its capabilities you will see that not all caps are selected there, even thou all are on for the role.

  21. Vladimir Garagulya
    Member
    Plugin Author

    Posted 1 year ago #

    If return for 2 days ago, I wrote "In order 'Apply to all sites' work you need to turn it on, change something in the currently selected role, then press update". Yes, multi-site update works for the currently selected role only.
    Do you need something like full synchronize subsites roles with master's one?

  22. Shaun Williams
    Member
    Posted 1 year ago #

    Don't really need it now I know how to fix it. Might be a handy feature in future thou to sync subs with master settings.

    But one would expect naturally that if you don't change anything and hit save, it would take current settings and save them, meaning if the db wasn't right before it would be now. Having to change a setting hit save then change setting back doesn't seem very user friendly.

    The individual user caps issue is still there thou. No matter what I do to the roles, the user with that roles isn't updated.

  23. Vladimir Garagulya
    Member
    Plugin Author

    Posted 1 year ago #

    I agree with you on 50-70%. There are a plenty of editors where 'Save' button is disabled while you do not change something. I will think on this. Thanks.
    Replication of roles for subsites requires other enhanced interface really, may be separate tab.

    Please, look carefully on the capabilities list, which are not selected for the user. Any of them should belong to only super-admin under multi-site. It is no sense to assign this capability to the user without super-admin privilege, as this functionality (edit themes, install plugins, etc.) is available at the "Network Admin" page only. I almost sure that WP unchecks this capabilities on the fly. Try to add any custom capability and you will select it without problem.

  24. Shaun Williams
    Member
    Posted 1 year ago #

    OK I understand that.

    So why can't I turn on for example Unfiltered html for that particular user?

    I need this setting I think for WPEC Store Sales screen. At this stage my ONLY option is to add Administrator Role to the user.

  25. Vladimir Garagulya
    Member
    Plugin Author

    Posted 1 year ago #

    The part of answer is available here:
    http://shinephp.com/is-unfiltered_html-capability-deprecated/
    There is a plugin form Automattic, which allows to use unfiltered HTML. Try it.

  26. Shaun Williams
    Member
    Posted 1 year ago #

    If it is deprecated, then why is it I have Show deprecated capabilities disabled, and yet it is still shows?

  27. Shaun Williams
    Member
    Posted 1 year ago #

    Also I think you should somehow differentiate the caps that can only be applied to Super Admins.

    If you look at it from a users perspective, they go to edit a users individual caps, see an option like Activate Plugins. Turn it on and save. When it doesn't work, they assume that it is a problem with your plugin. Not every wordpress user has deep and meaningful understanding of the inner workings of wordpress, and most will not know that it is a wordpress issue not a User Role Editor issue.

    Seperating them to identify that to users would be of great benefit.

    Thanks for help again BTW. Best support i have seen yet for a plugin. Even when some issues come down to my own understanding.

    As a feature request too, I would love to see a Network Admin Settings page, where one could edit everything globally as default. Some plugins already do this.

  28. Vladimir Garagulya
    Member
    Plugin Author

    Posted 1 year ago #

    'Deprecated' by the fact - as you can not use it. But officially it exists, and WP codex do not call this cap 'deprecated'.

    I agree with you. If you know little more you should use this knowledge in the code to help your user and confuse it as less as it possible.

    Thanks for the suggestions. Roles management for multi-site WP from the Network Admin is in my development plan. I hope we will see it this year :).

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • User Role Editor
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.