Support Forum

New Members are not put into the right User Group

FR FredK
FredK
Member

Since a good while I have the problem, that new users are not automatically put into the right user group. Once a new user has registered to the forums the database table sfmemberships stucks at usergroup_id 0 instead pushing him to 2 which is the default group for registered members. I have to do this manually.

But even so, the user is not getting the permissions (standard) of the user group. I have always to update the permission settings to give to the new user as well the permissions.

I’m not using any role map app, just WP 3.8 and SimplePress 5.4.0

How to get rid of this?

13 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Have you set the mapping of WP registrants to SP user groups – or perhaps just the default members one at the top – in forum admin > User Groups > Map Users to User Groups?

FR FredK
FredK
Member

I have just used in forum admin > User Groups > Map Users to User Groups

YS Yellow Swordfish
Yellow Swordfish
Member

…has that resolved the problem? Or is it too early to tell?
And don’t forget to set the defaults.

FR FredK
FredK
Member

How should it? I just wrote here that I was using this setting already. So nothing was changed now. Unfortunately I can’t show here a picture of my settings, so I will describe it:

 

Standard User Group Membership for new Users: Members

YS Yellow Swordfish
Yellow Swordfish
Member

I do NOT really think that my answer merited a forum post AND 2 questionable post reports. What you actually said above was ‘I have just used…’ which very much suggests that you had just set it up so I believe my question was a good one.

So – I see you say there is no role plugin involved. Is it also the case there is no membership plugin at all?

Could you try an experiment? Could you create a dummy user in the WP Admin (users > add new user) and then immediately take a look to see which user group the new user was assigned into?

FR FredK
FredK
Member

the database table says : User Group ID -1

The new users is shown on the forums as a new member, not having the rights to the standard user groups.

SP shows him as a member with the ranking of a new member

YS Yellow Swordfish
Yellow Swordfish
Member

And the other question? Any WP membership plugin involved? Actually any ‘user’ related WP plugins at all?

So – I assume you mean -1 in the sfmemberships table. And that is somewhat bizarre as we never set this to a negative value. So the key is to find what is changing it.

On the ‘map users to user group’ admin panel do you also have the default SP user group assigned to the default WordPress role – which WP sets to subscriber by default?

FR FredK
FredK
Member

Yellow Swordfish said
1. And the other question? Any WP membership plugin involved? Actually any ‘user’ related WP plugins at all?

2. So – I assume you mean -1 in the sfmemberships table. And that is somewhat bizarre as we never set this to a negative value. So the key is to find what is changing it.

3. On the ‘map users to user group’ admin panel do you also have the default SP user group assigned to the default WordPress role – which WP sets to subscriber by default?

1. There is no any user related WP plugin installed besides “Peter’s Login Redirect” http://www.theblog.ca/wplogin-redirect

2. Yes I ment the table sfmembership 

 

3. Could you specify what is the default? Can you provide me with any screenshot of this? The default WP user group is “Abonnent”

YS Yellow Swordfish
Yellow Swordfish
Member

Go to the WordPress admin > Settings > General. Half way doen that admin panel is the setting for ‘New User Default Role’ which will tell you what it is currently set to. Then you can check this against the SP User Group mappings.

FR FredK
FredK
Member

The default role in WP is “Abonnent”

The default role in SP is “Members – Default Usergroup for registered users of the forum”

I assume that these two default user groups do a handshake and know each other. These two groups where coming by default, so that they are not screwed.

YS Yellow Swordfish
Yellow Swordfish
Member

Well I am not sure what ‘Abonnent’ means in English but – what I am asking is which SP user group is that particular role set to in the list of mappings in the ‘Usergroup memberships based on WP role’ section.

I am 100% struggling to understand why a negative value of -1 can be set in that database record. I have scoured the code and absolutely nowhere do we use this value. It can not possibly exist as a user group ID either so all this is very strange. And – a unique report as well.

I will ask colleagues here for any ideas as well of course. But first just trying to collect data from you to try and help diagnosis.

FR FredK
FredK
Member

As I’m driving a German WP and SP site I forgot to translate correct:

Abonnent = Subscriber

Pls be aware that I possibly not translate all forum settings/options correct as I don’t have the possibility to switch from German to English

I’m not 100% sure if I do undrstand the question “..which SP user group is that particular role set to in the list of mappings in the ‘Usergroup memberships based on WP role’ section.” correct.

In the Admin there is a section “User mapping to usergroups “. This gives on the right side a splittet view. In the upper section I selected that the Standard User Group for registered Users = Members

In the below section is activated the “Replace all user memberships by individual membership byWP-role”

YS Yellow Swordfish
Yellow Swordfish
Member

In the top form section (User memberships) – after the option to lujmit to single user group – there should be 2 default settings – ine for members and one for guests.

After this should be a list entitled (in English) ‘Usergroup memberships based on WP role’ and one of the lines in that list should equate to the ;subscriber’ role (or the default set in WP > Settings > General) and I am simply asking which SP user group that is set to?