latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

access_s2member_levelX not recognized

Home Forums Community Forum access_s2member_levelX not recognized

This topic contains 5 replies, has 2 voices. Last updated by  Bruce 3 years, 8 months ago.

Topic Author Topic
Posted: Friday May 3rd, 2013 at 9:39 am #49120
Kevin Vaughn
Username: kvaughn

Hello,

s2Member does not recognize access to any of the lower user levels.

For example: if a user is s2member_level4, the conditional check

current_user_can('access_s2member_level2');

does not work.

Check works only for administrators. Regular users are not recognized.

This happened after updating WP, bbPress and User Role Editor to the latest versions.
Setup: WordPress 3.5.1, s2Member v130406, User Role Editor 3.12, bbPress 2.3.1.

Any ideas on where the issue can be?

Thank you.

Aram
http://www.topsitemakers.com

List Of Topic Replies

Viewing 5 replies - 1 through 5 (of 5 total)
Author Replies
Author Replies
Posted: Friday May 3rd, 2013 at 6:45 pm #49160
Bruce
Username: Bruce
Staff Member

Thank you for reporting this important issue.

Can you try using the reset roles and capabilities button here, please?

See: Dashboard -› s2Member® -› General Options -› Membership Levels/Labels

Posted: Saturday May 4th, 2013 at 5:03 pm #49220
Kevin Vaughn
Username: kvaughn

Hi Bruce,

Thank you for your message.

We narrowed down the issue to the “User Role Editor” plugin.

Whenever the settings form of that plugin is submitted, all s2Member settings are wiped out causing access checks to fail. Resetting the s2Member roles/capabilities does not solve the issue.

We created an issue here with detailed steps on how to reproduce it:
http://wordpress.org/support/topic/critical-saving-settings-breaks-all-s2member-access-checks?replies=1

This is a critical issue and the site is down until the issue is resolved.
Let me know please if you have any ideas on how to temporarily patch this.

Thank you.

http://www.topsitemakers.com

Posted: Saturday May 4th, 2013 at 6:58 pm #49225
Bruce
Username: Bruce
Staff Member

Let me know please if you have any ideas on how to temporarily patch this.

You could try adding the capability to the levels with the User Role Editor plugin. That might work correctly.

Posted: Sunday May 5th, 2013 at 4:30 am #49234
Kevin Vaughn
Username: kvaughn

Unfortunately, re-saving the URE plugin form breaks all “access_s2member_levelX” checks, even when no changes are made to the form.

Note: the “Custom capabilities” part is missing from the URE settings form. Screenshots are posted here:
http://wordpress.org/support/topic/critical-saving-settings-breaks-all-s2member-access-checks?replies=2#post-4163048

http://www.topsitemakers.com

Posted: Monday May 6th, 2013 at 6:32 pm #49292
Bruce
Username: Bruce
Staff Member

Note: the “Custom capabilities” part is missing from the URE settings form. Screenshots are posted here:
http://wordpress.org/support/topic/critical-saving-settings-breaks-all-s2member-access-checks?replies=2#post-4163048

It looks like the problem was addressed by the plugin developer. Let us know if problems persist.

Viewing 5 replies - 1 through 5 (of 5 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.