Home › Forums › Community Forum › Missing Level 0 after upgrade!
This topic contains 8 replies, has 3 voices. Last updated by Cristián Lávaque 3 years, 7 months ago.
Topic Author | Topic |
---|---|
Posted: Sunday May 12th, 2013 at 11:34 am #49777 | |
|
|
Hi – we recently upgraded our s2Member Pro plugin to Version 130406 + s2Member® Pro v130406. I don’t know if the upgrade didn’t complete successfully or something? But now Member Level 0 is no longer an option for users – and all users who were previously member level 0 are now showing as Subscribers. The option for restricting pages to be Level 0 is still there, but users are no longer level 0, so they cannot see those pages. If I click on a user to modify their user role, the choices start with Level 1 (paid membership), or Subscriber. How can I get level 0 back? |
List Of Topic Replies
Author | Replies |
---|---|
Author | Replies |
Posted: Sunday May 12th, 2013 at 12:04 pm #49778 | |
|
|
This is expected behaviour and all level 0 users should be showing as subscribers. Don’t worry, it’s totally normal. Subscribers ARE level 0 users – anything restricted to level 0 will only be able to be viewed by subscribers or higher. |
|
Posted: Sunday May 12th, 2013 at 2:40 pm #49786 | |
|
|
I wish it did work that way, but it didn’t – the pages that are marked to be viewable by level 0 users are now not viewable by Subscribers. I also had some code hooks in there to show certain things in the sidebar for Level 0 users, and those things don’t show anymore. Is there a way to get that Level 0 member back? |
|
Posted: Sunday May 12th, 2013 at 2:47 pm #49787 | |
|
|
I’m surprised it doesn’t work for you – on my site I haven’t changed anything since I started using S2 member about 3 years back and I have code in there such as: [s2If current_user_is(s2member_level0)] – that relates purely to level 0 users – that still works for subscribers no problem. I just presumed that subscribers were seen as level 0 members by S2. This is probably best explained by Cristian or Jason then – sorry I can’t be of any more help. |
|
Posted: Sunday May 12th, 2013 at 11:34 pm #49803 | |
|
|
Thanks anyway Ross! I am using the “Special Redirection URL” option in the Login Welcome Page section of the General Options to redirect users to a different Welcome page based on their membership level – like this: /other-pages/%%current_user_level%%-welcome-page. This still works for users who are level 1 or higher, but now if a user logs in who is a Subscriber, he is getting thrown back to the Join page as if he’s not a member at all, because the “current_user_level” isn’t 0 anymore, I guess. And all of my conditional checks for user level 0 are failing when a “subscriber” user logs in. All of these users used to show in the User list as Level 0 members, not Subscribers, before I upgraded. Cristian or Jason, HELP! |
|
Posted: Tuesday May 14th, 2013 at 12:16 am #49908 | |
|
|
That’s odd… I just tried [hilite mono]%%current_user_level%%[/hilite] in the Login Welcome Page redirection URL, logged in with a Level 0 (Subscriber) account and I get the [hilite mono]0[/hilite] in the URL. Could you try this and see if any errors come up? Knowledge Base » s2Member® Server Scanner You could also reset the roles and capabilities. [hilite path]Dashboard -› s2Member® -› General Options -› Membership Levels/Labels -> Reset Roles/Capabilities[/hilite] You can also try these: Knowledge Base » Common Troubleshooting Tips |
|
Posted: Tuesday May 14th, 2013 at 8:05 am #49942 | |
|
|
Hi Cristian – that’s because I did figure out how to fix my problem yesterday. Somehow when I did the upgrade, the wp_user_roles option in the wp_options table got messed up. Apparently the Subscriber user is supposed to have a capability of “access_s2Member_level0″, and it didn’t any longer. I had to modify that wp_user_roles record manually to put all of the s2Member capabilities and roles back in, and now everything is working correctly again. I’m not sure why/if the upgrade didn’t go smoothly for me (I also upgraded WP to V3.5.1, so maybe that’s what messed it up), but just in case someone else has a similar thing happen, here is my current wp_user_roles record in the wp_options table of the database: a:8:{s:13:”administrator”;a:2:{s:4:”name”;s:13:”Administrator”;s:12:”capabilities”;a:66:{s:13:”switch_themes”;b:1;s:11:”edit_themes”;b:1;s:16:”activate_plugins”;b:1;s:12:”edit_plugins”;b:1;s:10:”edit_users”;b:1;s:10:”edit_files”;b:1;s:14:”manage_options”;b:1;s:17:”moderate_comments”;b:1;s:17:”manage_categories”;b:1;s:12:”manage_links”;b:1;s:12:”upload_files”;b:1;s:6:”import”;b:1;s:15:”unfiltered_html”;b:1;s:10:”edit_posts”;b:1;s:17:”edit_others_posts”;b:1;s:20:”edit_published_posts”;b:1;s:13:”publish_posts”;b:1;s:10:”edit_pages”;b:1;s:4:”read”;b:1;s:8:”level_10″;b:1;s:7:”level_9″;b:1;s:7:”level_8″;b:1;s:7:”level_7″;b:1;s:7:”level_6″;b:1;s:7:”level_5″;b:1;s:7:”level_4″;b:1;s:7:”level_3″;b:1;s:7:”level_2″;b:1;s:7:”level_1″;b:1;s:7:”level_0″;b:1;s:17:”edit_others_pages”;b:1;s:20:”edit_published_pages”;b:1;s:13:”publish_pages”;b:1;s:12:”delete_pages”;b:1;s:19:”delete_others_pages”;b:1;s:22:”delete_published_pages”;b:1;s:12:”delete_posts”;b:1;s:19:”delete_others_posts”;b:1;s:22:”delete_published_posts”;b:1;s:20:”delete_private_posts”;b:1;s:18:”edit_private_posts”;b:1;s:18:”read_private_posts”;b:1;s:20:”delete_private_pages”;b:1;s:18:”edit_private_pages”;b:1;s:18:”read_private_pages”;b:1;s:12:”delete_users”;b:1;s:12:”create_users”;b:1;s:17:”unfiltered_upload”;b:1;s:14:”edit_dashboard”;b:1;s:14:”update_plugins”;b:1;s:14:”delete_plugins”;b:1;s:15:”install_plugins”;b:1;s:13:”update_themes”;b:1;s:14:”install_themes”;b:1;s:11:”update_core”;b:1;s:10:”list_users”;b:1;s:12:”remove_users”;b:1;s:9:”add_users”;b:1;s:13:”promote_users”;b:1;s:18:”edit_theme_options”;b:1;s:13:”delete_themes”;b:1;s:6:”export”;b:1;s:22:”access_s2member_level0″;b:1;s:22:”access_s2member_level1″;b:1;s:22:”access_s2member_level2″;b:1;s:22:”access_s2member_level3″;b:1;}}s:6:”editor”;a:2:{s:4:”name”;s:6:”Editor”;s:12:”capabilities”;a:34:{s:17:”moderate_comments”;b:1;s:17:”manage_categories”;b:1;s:12:”manage_links”;b:1;s:12:”upload_files”;b:1;s:15:”unfiltered_html”;b:1;s:10:”edit_posts”;b:1;s:17:”edit_others_posts”;b:1;s:20:”edit_published_posts”;b:1;s:13:”publish_posts”;b:1;s:10:”edit_pages”;b:1;s:4:”read”;b:1;s:7:”level_7″;b:1;s:7:”level_6″;b:1;s:7:”level_5″;b:1;s:7:”level_4″;b:1;s:7:”level_3″;b:1;s:7:”level_2″;b:1;s:7:”level_1″;b:1;s:7:”level_0″;b:1;s:17:”edit_others_pages”;b:1;s:20:”edit_published_pages”;b:1;s:13:”publish_pages”;b:1;s:12:”delete_pages”;b:1;s:19:”delete_others_pages”;b:1;s:22:”delete_published_pages”;b:1;s:12:”delete_posts”;b:1;s:19:”delete_others_posts”;b:1;s:22:”delete_published_posts”;b:1;s:20:”delete_private_posts”;b:1;s:18:”edit_private_posts”;b:1;s:18:”read_private_posts”;b:1;s:20:”delete_private_pages”;b:1;s:18:”edit_private_pages”;b:1;s:18:”read_private_pages”;b:1;}}s:6:”author”;a:2:{s:4:”name”;s:6:”Author”;s:12:”capabilities”;a:10:{s:12:”upload_files”;b:1;s:10:”edit_posts”;b:1;s:20:”edit_published_posts”;b:1;s:13:”publish_posts”;b:1;s:4:”read”;b:1;s:7:”level_2″;b:1;s:7:”level_1″;b:1;s:7:”level_0″;b:1;s:12:”delete_posts”;b:1;s:22:”delete_published_posts”;b:1;}}s:11:”contributor”;a:2:{s:4:”name”;s:11:”Contributor”;s:12:”capabilities”;a:5:{s:10:”edit_posts”;b:1;s:4:”read”;b:1;s:7:”level_1″;b:1;s:7:”level_0″;b:1;s:12:”delete_posts”;b:1;}}s:10:”subscriber”;a:2:{s:4:”name”;s:10:”Subscriber”;s:12:”capabilities”;a:3:{s:4:”read”;b:1;s:7:”level_0″;b:1;s:22:”access_s2member_level0″;b:1;}}s:15:”s2member_level1″;a:2:{s:4:”name”;s:16:”s2Member Level 1″;s:12:”capabilities”;a:5:{s:4:”read”;b:1;s:7:”level_0″;b:1;s:22:”access_s2member_level0″;b:1;s:22:”access_s2member_level1″;b:1;s:10:”subscriber”;b:1;}}s:15:”s2member_level2″;a:2:{s:4:”name”;s:16:”s2Member Level 2″;s:12:”capabilities”;a:6:{s:4:”read”;b:1;s:7:”level_0″;b:1;s:22:”access_s2member_level0″;b:1;s:22:”access_s2member_level1″;b:1;s:22:”access_s2member_level2″;b:1;s:10:”subscriber”;b:1;}}s:15:”s2member_level3″;a:2:{s:4:”name”;s:16:”s2Member Level 3″;s:12:”capabilities”;a:7:{s:4:”read”;b:1;s:7:”level_0″;b:1;s:22:”access_s2member_level0″;b:1;s:22:”access_s2member_level1″;b:1;s:22:”access_s2member_level2″;b:1;s:22:”access_s2member_level3″;b:1;s:10:”subscriber”;b:1;}}} |
|
Posted: Tuesday May 14th, 2013 at 8:25 am #49943 | |
|
|
WOW I wish I knew about that Reset Roles/Capabilities button!! That would have been way easier than spending hours trying to figure out how to manually update the wp_user_roles data! |
|
Posted: Tuesday May 14th, 2013 at 8:41 pm #49978 | |
|
|
Thanks for the update! I’m glad you sorted it out. :) |
This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.