WordPress.org

Support

Support » Plugins and Hacks » User Role Editor » [Resolved] CRITICAL: saving settings breaks all s2Member access checks

[Resolved] CRITICAL: saving settings breaks all s2Member access checks

  • Hello,

    Saving URE settings for any role completely breaks s2Member custom roles and capabilities.

    This is the most critical issue for all websites using User Role Editor and s2Member.

    Steps to reproduce the issue:

    1. clean WordPress 3.5.1 install with s2Member (v130406) and User Role Editor (3.12)
    2. create 2 pages for s2Member and configure the plugin:
      • “Membership options page” – leave empty content
      • “Login welcome page” – add the following content for testing purposes:

        [s2If current_user_can(access_s2member_level1)]
        You can access level 1
        [/s2If]
        [s2If current_user_can(access_s2member_level2)]
        You can access level 2
        [/s2If]
        [s2If current_user_can(access_s2member_level3)]
        You can access level 3
        [/s2If]
        [s2If current_user_can(access_s2member_level4)]
        You can access level 4
        [/s2If]
      • setup s2Member:
        • Admin -> s2Member -> General Options -> Login Welcome Page -> select the new page
        • Admin -> s2Member -> General Options -> Membership Options Page -> select the new page
    3. create a test user and assign any of the s2member levels
    4. login to the site and verify the appropriate “You can access level X” text is displayed on the “Login welcome page”
    5. as administrator go to: Admin -> Users -> User Role Editor, select any of the s2Member levels and just click “Update”
    6. s2Member levels will not be recognized anymore in the system – “Login welcome page” will not show any text for regular user
    7. you must reset s2Member roles and capabilities to rebuild custom capabilities: Admin -> s2Member -> General Options -> Membership Levels/Labels -> Reset Roles/Capabilities.
      This will again break when you re-save URE settings.

    Please provide a fix soonest possible.

    Also, post any ideas that will help us and other developers temporarily fix the issue until the update is released.

    Thank you.

    http://www.topsitemakers.com

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

Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Resolved] CRITICAL: saving settings breaks all s2Member access checks’ is closed to new replies.
Skip to toolbar