Wrong role assignment after Membership Signup

Hello,

We are getting a wrong role assigned after Paypal Membership Signup.
Tested using Paypal Button Level#1 and Level#2 access but we always get a Level#0 access.
We disabled all plugins except S2m and tested, but issue still remains.
We just disabled buddypress maybe this is the cause of problem.

Can someone give us any suggestion?

Thanks in advance.

  1. BuddyPress has nothing to do with it.
  2. Try adding this snippet as an mu-plugin:
<?php
/* FORCES THE DEFAULT ROLE OF A NEW USER TO BE SET TO s2MEMBER LEVEL 1 INSTEAD OF SUBSCRIBER */
function s2_default_role( $role ) {
	$return = 's2member_level1';
	return $return;
}
add_filter( 'ws_plugin__s2member_force_default_role', 's2_default_role', 10, 1 );

Tim Kaye,

First of all thank you for the answer.
I have tried the solution you are pointing. I created file under mu-plugins with your snippet.
However it is not working. I even try to specify Role in place of ‘s2member_level1’.
But all my efforts were unsuccessful.
My WordPress installation is multisite and I am using plugin “Join my Multisite”. As I already mentioned disabling it is not helping as well.

Can someone give me a hint what may be cause of this problem or from there I can troubleshoot?

Ah, my code won’t work on multisite.

Can anyone give any suggestions?

I have the same problem - using a stripe form with “Level 1” and after payment, new members are “Subscribers” and can’t access the members area. very annoying. Ant solutions?

Are you using multisite too like the OP?

IDK if s2 works with multisite, but I know a lot of plugins don’t.