brian42
Forum Replies Created
-
Resolved.
Thanks for your help @champsupertramp, I worked with wordpress.com and they added a clear cache menu for me to clear my wordpress.com site cache when we change a users role. they cautioned me that this can affect site performance while the cache rebuilds but it does solve the issue immediately. I thought I would post this here if anyone else runs into this issue. This issue is resolved now.
@meembat thanks for your original post. I had an issue with changing roles as well where the site menu for UM didn’t update to the new role for a day or so. I worked with wordpress.com and they added a clear cache menu for me to clear my wordpress.com site cache when we change a users role. they cautioned me that this can affect site performance while the cache rebuilds but it does solve the issue immediately. I thought I would post this here if anyone else runs into this issue.
Thanks @champsupertramp sent you an email to team@ultimatemember.com.
Brian.
@champsupertramp, appologies, that was me obfuscating the real roles. “myrole” 6 chars was typed in to obfuscate a 7 character real name on this forum. That is not the issue.
Hi @champsupertramp,
I’ve use advanced user management to update the role from one to another via the advanced user management screen, selecting the user and using the change-role-to pulldown and change button. I can verify here in the database joining together wp_users and wp_usermeta that the role seems to be changed in terms of capabilites below and what shows on the advanced user screen in wordpress.com I don’t see more than one role for the below user, but I’m not sure how it’s determining the role for the user from the database either.
Also, my wp_um_metadata is emptry and I’ve created two roles via UM. Should this table be populated?
Thanks for your help, happy to test further to resolve this issue.
BrianChanges from (I’ve removed password and other cols in the output, but you can see key value pairs.)
role
um_myrole-client( 970, 204921649, 'first_name', 'Brian'), ( 971, 204921649, 'last_name', '42'), ( 972, 204921649, 'description', ''), ( 973, 204921649, 'rich_editing', 'true'), ( 974, 204921649, 'syntax_highlighting', 'true'), ( 975, 204921649, 'comment_shortcuts', 'false'), ( 976, 204921649, 'admin_color', 'fresh'), ( 977, 204921649, 'use_ssl', '0'), ( 978, 204921649, 'show_admin_bar_front', 'true'), ( 979, 204921649, 'locale', ''), HERE is the old Role: ( 980, 204921649, 'wp_capabilities', 'a:1:{s:17:\"um_myrole-client\";b:1;}'), ( 981, 204921649, 'wp_user_level', '0'), ( 983, 204921649, 'um_member_directory_data', 'a:5:{s:14:\"account_status\";s:8:\"approved\";s:15:\"hide_in_members\";b:1;s:13:\"profile_photo\";b:0;s:11:\"cover_photo\";b:0;s:8:\"verified\";b:0;}'), ( 984, 204921649, 'um_user_profile_url_slug_user_login', 'BrianHome'), ( 985, 204921649, 'full_name', 'brian 42'), ( 987, 204921649, 'dismissed_wp_pointers', ''), ( 988, 204921649, 'synced_gravatar_hashed_id', '0bxxxxxxxxx'), ( 990, 204921649, 'account_status', 'approved');To:
um_myrole-client-restricted( 969, 204921649, 'nickname', 'BrianHome'), ( 970, 204921649, 'first_name', 'Brian'), ( 971, 204921649, 'last_name', '42'), ( 972, 204921649, 'description', ''), ( 973, 204921649, 'rich_editing', 'true'), ( 974, 204921649, 'syntax_highlighting', 'true'), ( 975, 204921649, 'comment_shortcuts', 'false'), ( 976, 204921649, 'admin_color', 'fresh'), ( 977, 204921649, 'use_ssl', '0'), ( 978, 204921649, 'show_admin_bar_front', 'true'), ( 979, 204921649, 'locale', ''), Here is the new Role: ( 980, 204921649, 'wp_capabilities', 'a:1:{s:28:\"um_myrole-client-restricted\";b:1;}'), ( 981, 204921649, 'wp_user_level', '0'), ( 983, 204921649, 'um_member_directory_data', 'a:5:{s:14:\"account_status\";s:8:\"approved\";s:15:\"hide_in_members\";b:1;s:13:\"profile_photo\";b:0;s:11:\"cover_photo\";b:0;s:8:\"verified\";b:0;}'), ( 984, 204921649, 'um_user_profile_url_slug_user_login', 'BrianHome'), ( 985, 204921649, 'full_name', 'brian saltzman'), ( 987, 204921649, 'dismissed_wp_pointers', ''), ( 988, 204921649, 'synced_gravatar_hashed_id', '0b62xxxxxxxxxxxxxxxxxxxx'), ( 990, 204921649, 'account_status', 'approved');Hello @champsupertramp,
Yes,
this problem still occurs with a default WP theme of 2020 or 2021. Is there a query I can run against the database to see what menu should be displayed for the user’s role? I don’t understand why the page security for the changed role is correct but the menu is showing as if it’s the old role that was before I changed the users role.
Also before testing I updated my plugin version to: Version 2.1.20
Again, deleting and recreating the user fixes the issue.
Thanks,
Brian.
- This reply was modified 4 years, 10 months ago by brian42.
Hi @champsupertramp I’ve got a similar issue when I change a user’s role.
1) change users role
2) user logs out and logs in.
3) old menu for the role still showing, pages for old role blocked.
4) pages for new role accessible via their url.I’m clearing my browsers cache – all files and cookies, I’m clearing the cache in UM.
If I
1) delete the user
2) re-create the user
3) delete UM cacheeverything works as expected according to their role and the site menu displays the correct menu. Any help would be greatly appreciated. I’m using Version 2.1.19 of UM with Elementor and Hello Theme.