Forum Replies Created
-
AuthorPosts
-
Vladimir
KeymasterYes – in the both questions.
When I write about URE’s settings I mean only options available at the “Settings->User Role Editor” page.
Changes made to the user roles, or users permissions are not revertible. Any updates to the roles or users permissions you made with URE are permanent and do not depend from URE plugin activation/deactivation, deletion.
Vladimir
KeymasterIn case you have a free version of User Role Editor installed:
Pro version includes its own copy of a free version (or the core of a User Role Editor). So you should deactivate free version and can remove it before installing of a Pro version.
The only thing that you should remember is that both versions (free and Pro) use the same place to store their settings data.
So if you delete free version via WordPress Plugins Delete link, plugin will delete automatically its settings data.
You will have to configure User Role Editor Pro Settings again after that.
Right decision in this case is to delete free version folder (user-role-editor) via FTP, not via WordPress.Vladimir
KeymasterHi Shweta,
This feature is not supported, but it’s interesting/useful enough to realize in a future.
When someone assign new role to a user via WordPress UI: add new user or edit user profile pages, WP_User::add_role() and WP_User::set_role() methods are used. These methods fire hooks:
– add_user_role;
– set_user_role.User Role Editor does not fire any custom action when assigns to a user new roles. It uses the same WP_User::add_role() though, so it’s possible to use ‘add_user_role’ hook also.
Vladimir
KeymasterOK. Good that you can find a solution for this problem. Yes, ‘not enough memory’ could be a problem.
Vladimir
KeymasterThis bug was fixed with core (free) version 4.35.1 release and Pro version 4.35.2.
Vladimir
KeymasterThank you for a patience and desire to help in resolving this issue.
I added “Duplicate Post” to the list of active plugins, but still did not get a described error.
We can proceed according to one of these variants:
1) you send me admin credentials for your site, I install backup plugin, create and download a copy of your site to install and work with it at my local development environment. It will be difficult to realize, if your data is too large (>100 Mb).2) you create a copy of all files except wp-content/uploads folder and copy of database without wp_users, wp_usermeta, wp_posts, wp_postmeta tables and share them with me via DropBox or similar service. This way you will not open access to any critical or “copyrighted” information if you have any.
Of course I guarantee you a non disclosure of any information and use your files and data for the investigation purpose only.
Vladimir
KeymasterThanks. I confirm a bug. I will fix it.
Vladimir
KeymasterSome details:
Users which had deleted role (e.g. ‘role_1’) on other sites will be shown by WordPress with role ‘None’. If you look at such user custom capabilities you will see ‘role_1’ between them though. If WordPress does not find some permission ID between roles, it counts that it’s a custom capability directly assigned to a user.
So if do not delete such capability from a user, user will get it as a role back in case a role with same ID will be added to a site later.
It’s a current state. I see that some enhancement are desired here.
Vladimir
KeymasterOK. We made a step forward: 3 plugins are involved somehow.
You can saw at demo video – I activated all available add-ons at URE Settings.
I activated Custom Post Type UI plugin and re-tested an issue with my own test settings and data of course. There is no JavaScript or AJAX error when I open ‘Post Grid’ element for editing.Can you repeat an issue at the site copy with a test database, which you can share? I mean I can download than the files and database data and easy reproduce a problem at my development environment in order to analyse it and offer a solution.
Vladimir
KeymasterUser Role Editor does nothing if you see this error message. URE shows this message in 2 cases:
1) invalid user ID in the list of users ID to process;
2) current user can not edit one of the selected users. Look, may be you accidentally select some user with superadmin privileges.Look how WordPress checks if user can edit other user under multisite:
// In multisite the user must have manage_network_users caps. If editing a super admin, the user must be a super admin. if ( is_multisite() && ( ( ! is_super_admin( $user_id ) && 'edit_user' === $cap && is_super_admin( $args[0] ) ) || ! user_can( $user_id, 'manage_network_users' ) ) ) { $caps[] = 'do_not_allow'; } else { $caps[] = 'edit_users'; // edit_user maps to edit_users. }User should be a superadmin to edit other superadmin, or have ‘manage_network_users’ capability.
Vladimir
KeymasterIf you have the same roles set at all sites, this scenario will work for you:
– go to Network admin -> Users -> User Role Editor.
– delete selected role. This action will delete a role from the main site.
– click “Update Network” button. This will replicate roles list from the main site to all subsites of your network.07/07/2017 at 01:13 in reply to: How can I allow the user to edit and update a page, but not add a new one? #3958Vladimir
KeymasterHi André,
Go to ‘Settings->User Role Editor->Additional Modules’ tab and turn ON this option:
“Activate “Create” capability for posts/pages/custom post types”.User without ‘create_posts’, ‘create_pages’, ‘create_
‘ will can not add new items in related CPT after that. Do not forget to add ‘create_%’ capability to the roles, which should be capable to add new items. Vladimir
KeymasterHi Tony,
Tell me more about User Access Control or send to support [at-sign] role-editor.com a download link. What functionality do you wish to replace?
Vladimir
KeymasterI got VC 5.1.1 copy and tested with it. I still can not reproduce an issue. This video shows that I don’t have any JavaScript error at a browser JS console.
Do you see differences? What I should do to reproduce an issue? Any additional setings for Post Grid element?
Vladimir
KeymasterCan you look at server system log for the more detailed error message related to this 500 error code?
I tried to repeat an issue with VC v. 5.0 I have on hands, but did not get any errors opening ‘posts grid’ element for editing.
Can you provide me a copy of VC v. 5.2 (via dropbox or similar)? Use support [at-sign] role-editor.com email address. -
AuthorPosts