• Resolved gleu

    (@gleu)


    I just downloaded the newest version of User Role Editor today and it will not update. So I choose which options to allow my subscribers and when I click on update it appears to have saved. (It says it has). But then when I switch to edit another user and then come back to the one I already edited it, it has returned to the original (reset) version. So it’s been basically useless. Please help!

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

Viewing 7 replies - 16 through 22 (of 22 total)
  • I see. This plugin will sett the capabilities value to (int) 1 instead of (bool) true as WordPress initially does. This change happen for alle capabilites for each role, once edited through this plugin. WordPress should not care, as it only checks the values “trueness” or “falseness” (any value casted to bool in PHP).

    Try changing the value 1 at the end of line 132 of ure-options.php to true.

    This should make this plugin more compatible with WordPress, but I’m not sure it will fix your problem. Yet.

    Plugin Author Vladimir Garagulya

    (@shinephp)

    Thanks for feedback, Knut. I will take your suggestions into account.

    Plugin Author Vladimir Garagulya

    (@shinephp)

    Updated version is available from this link:
    http://shinephp.com/wp-content/downloads/wordpress/plugins/user-role-editor-3.8b.zip
    I changed updated capabilities values from int 1 to bool in case it could help and to correspond to values WordPress uses. PHP uses 0 and 1 integers to operate with booleans and it should not be the reason of Ceolmhor’s problem though.
    Ceolmhor, please try this version. One other thought, Ceolmhor, please, try to deactivate all other plugins and make test again. Will you have the same result?

    Other updates:
    – Bug with empty URE page after double saving is fixed;
    – If you see Administrator role, WordPress core capability are in read-only mode now;
    – WordPress core capabilities and custom (plugins or user created) capabilities are shown separately.

    OK, I have good news for you, but not necessarily for me. My problem with URE is, indeed, an interaction with another plugin. I apologize for not being savvy enough to have figured this out before. I can successfully edit my Editor role into the exact set of capabilities that I want so long as I don’t have All-in-One Event Calendar by Timely (ai1ec) enabled. If I have the Editor role in the condition I prefer, and then enable ai1ec and go look at the roles using URE, the Editor role is back in its default state, rather than in the state I created using URE. I’m guessing that this means ai1ec is fouling up the role settings, but of course I’m using URE to actually see those settings, so I suppose it’s possible that the problem is an actual interaction. Ah, but I see how to test that. I’ll be right back. 🙂

    Yes, indeed, it appears to be a simple problem with ai1ec alone. Here’s my test. With ai1ec disabled, I used URE to edit my Editor role into the configuration I want. I verified that that setting was persistent by selecting Subscriber and returning to Editor. I then deactivated URE, activated ai1ec, deactivated ai1ec, activated URE, and selected the Editor role. The role properties had then be returned to the original WordPress default values, rather than my values.

    I’ll be happy to go and report this to the ai1ec folks, but I would appreciate any help others here can give me that might help me deal with the issue. For example, is there a flaw in my logic, such that these two plugins might still be interacting even though the two presumably never ran at the same time? How are such interactions usually handled? Is this a situation in which Vladimir should take any role at all (communicating with the designers of ai1ec), or should I be the only one bringing it up to them? Etc.

    Plugin Author Vladimir Garagulya

    (@shinephp)

    You are right. While, URE plugin shows you current state of WP roles and saves your changes to the WP database, some plugins redefine WP roles on the fly. “All-in-One Event Calendar” plugin is among them. It adds its own capabilities set to ‘administrator’, ‘editor’ and ‘author’ roles, every time you activate it (app/helper/class-ai1ec-app-helper.php, line 118), if admin role has not ‘manage_ai1ec_feeds’ capability included. From this point, having such plugin installed, you have not full control on your roles and caps already.
    I will investigate the subject further…

    I’ve posted a message in the ai1ec support forum. I’ll let you know what they say.

    Plugin Author Vladimir Garagulya

    (@shinephp)

    I didn’t find any additional issue in ai1ec code and I could not repeat your situation on my test site. I can modify Editor role back and forward as expected.

    Previous beta version have a critical bug. If you try to change Administrator role you will lose it, as disabled checkboxes doesn’t send its data to the server. So I deleted that file from server.
    I do not disable checkboxes for Administrator role now. I do not allow to turn they off. It’s done with little Javascript function.

    Latest Beta is available for download from this link:

    http://shinephp.com/wp-content/downloads/wordpress/plugins/user-role-editor-3.8b1.zip

Viewing 7 replies - 16 through 22 (of 22 total)

The topic ‘User Role Editor will not update’ is closed to new replies.