• am usng the mosr recent download of the s2Meqmbership (free) plugim.

    I think i have insstalled it correctly, but none of the membershi levels I have reated in s2 are showing up in the WordPress user page roles.

    I tried to update the plugin and/or change whether WordPess shows the levels exact name. But when I tried to update those settings in s2, I get the following error message in Javascript:

    Sorry, your request failed. s2Member’s roles/capabilities are blocked by filter: wp_plugin_s2member_lock_roles_cap

    I tried doing a google search, but no joy.

    I think i am missing soomething simple.

    https://www.ads-software.com/plugins/s2member/

Viewing 15 replies - 1 through 15 (of 15 total)
  • Do you have an mu-plugin that is blocking your changes?

    Thread Starter billydennis123

    (@billydennis123)

    This is not an mu site. I disabled Jetpack and super cache (deleting super cache). I would try looking at the code of s2 itselt and manually changing “rock-roles_cap” to “no” but the plugin is HUGE.

    An mu-plugin is nothing to do with multisite. Look in wp-content/ and see if you have an mu-plugins folder.

    And don’t even think about modifying any plugin’s files. Even if you manage to modify them without borking your whole installation, all the changes will be overwritten by a plugin update.

    Thread Starter billydennis123

    (@billydennis123)

    I checked. There is no mu-plugin folder in either the wp-content or the regular plugin folder.

    And I won;t finder directly wuth any plugin.

    Thread Starter billydennis123

    (@billydennis123)

    And I won’t fidle directly with any plugin.

    Thread Starter billydennis123

    (@billydennis123)

    I added “enhanced capability manager” plugin and manually added “one month” nd “three months” roles. i will not log in a a one month mamber and see if I see the restricted posts.

    Thread Starter billydennis123

    (@billydennis123)

    I was able to see the restricted posts once uder a paid membership. I am no happy. and I did it on my own.

    Thread Starter billydennis123

    (@billydennis123)

    Now, its broken again. New sign-ups can get to PayPal and pay me, but they don’t get any membership privledges. I try to manually add them as members, but they still do not get any privledges. I am flumoxed. HELP!!!

    I am having the same issue with the pro account. I set up a one-time purchase lifetime membership at level 2 using pro forms. When I complete the signup and purchase process the new user created has level 0 access and none of the other s2member data is populated in the user account.

    @dacook6150,

    You really should have started a new thread. For one thing, it’s not clear that you do have the same issue. And, for another, most community volunteers won’t pay much notice to a thread with lots of replies, because they’ll assume that the issue initially reported is already being addressed. The only reason I’m here is because I already contributed on the thread and so I received a notification.

    However, I might be able to suggest at least a partial fix. Create a new document called s2-default-role.php and put the following code in it:

    <?php
    /* Forces the default role of a new user to be set to "s2member Level 1" instead of "Subscriber" */
    add_filter("ws_plugin__s2member_force_default_role", "default_role",10,1);
    function default_role($role) {
    	$return = 's2member_level1';
    	return $return;
    }

    Then upload the file to your mu-plugins folder. This will prevent signups at level 0. Whether it will mean that those at level 2 get correctly assigned, you’ll have to test to find out.

    Yeah I should have started a separate thread. Sorry about that.

    Unfortunately the user level issue is only part of the issue. The new user account also does not have any of the s2member fields completed such as the product purchased, the custom capabilities, etc. Since I did not see any of this in any of the threads I opened a support ticket.

    Thanks!

    In the meantime I’d try the code I gave you.

    If someone is registered as a minimum of level 1, that should get all the fields populated correctly (apart possibly from the level itself). It might also help s2Member Support debug the issue for you.

    “Now, its broken again. New sign-ups can get to PayPal and pay me, but they don’t get any membership privledges. I try to manually add them as members, but they still do not get any privledges.”

    After reading the thread I am having the same exact problems. I have already started my own thread, but I was navigating through search and I stumbled upon this one and had questions.

    My problem is the bloody “subscriber” role over writing the registered “seller” role I am currently operating on. With this code, could I use

    “Forces the default role of a new user to be set to “seller” instead of “Subscriber” */
    add_filter”?

    I do not want S2 Member Level 1 to replace the subscriber role. I want S2 Member level 1 & 2 to operate on the “seller” role. Would that accomplish this?

    Also I am on pro, not sure if that helps.

    @jjohnson4801,

    You should be able to replace s2member_level1 in the above code to seller

    Thanks; gave it a shot but still a no go. I’ll continue to try to tinker with the role plugins but I’ve still had no luck. Thanks anyway though.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘s2 is not changing new subscribers' role in WordPress user page’ is closed to new replies.