PDA

View Full Version : Strange issue with usergroups


lafsunlmtd
01-18-2012, 09:32 PM
Hey all! So I am having this issue with usergroups. Basically what happened is I had some promotions running with a certain user group. Well, I recently deleted the promotion and the usergroup. The problem I am having is that now when anyone registers for the site, they automatically get put into that user group that was deleted. I haven't modified the files at all, so I know it's not in the code. I actually looked in register.php and the $newusergroupid still = 2. So any time someone registers it automatically assigns them to usergroup 15 and I am bashing my head against a wall trying to figure out why. Has anyone experienced this before? It just started happening out of the blue. Any help would be appreciated. Thanks!

ForceHSS
01-18-2012, 10:49 PM
check your custom plugins could be one of them that is doing it one comes to mind spam o matic does this

GhettoTech
01-24-2012, 03:06 PM
I've been working with Lafsunlmtd on this issue and we are still having users being placed into a usergroup that no longer exists. We've disabled all plugins and re-enabled them as well. Does anyone know or understand how this is happening?

kh99
01-24-2012, 03:10 PM
Did you look through the mods you have installed (as was mentioned above)? I know there's one that assigns the initial user group based on the email domain (and there are probably others that are similar). You could disable all plugins (by putting define('DISABLE_HOOKS', 1) in your config.php) and try a registration just as a test.

I assume you checked the promotions to make sure there isn't one promoting user there (yeah, it probably should get deleted or at least not be active if the usergroup is deleted, but maybe it didn't).

GhettoTech
01-24-2012, 03:20 PM
Do you know what plugin does that? We will try disabling the hooks in a little bit. We did however disable all plugins manually and that didn't work.

kh99
01-24-2012, 03:53 PM
I don't know the exact plugin. If you disabled all the plugins (not just all the products) then that should have done it - but it wouldn't hurt to try disabling the hook system.

lafsunlmtd
02-06-2012, 01:46 PM
ok, so this problem still hasn't gone away. I have disabled everything that was installed and it's still doing the same thing; assigning every new user to group 15. So here is some more information that my be pertinent: I had a promotion set up for that usergroup. However, I deleted the usergroup before I deleted the promotion. I am not sure if that helps or has anything to do with the issue, but thought it may be helpful. Thanks!

kh99
02-06-2012, 02:52 PM
So I assume that you've checked to make sure the promotion doesn't show up in the promotion manager? You could check the db but I guess if one was there it would show up in the promotion manager.

Could you possibly have edited any of the vb files? I believe the usergroup that new users are placed in is coded into one of the scripts. The promotions don't take place right away so it would make sense to have to set the group another way.

lafsunlmtd
02-23-2012, 07:32 PM
Yeah, I've checked all of that and it is gone. I have checked the database and nothing there. I looked into the file that sets the user group on registration and I can clearly see that it is set to register them as usergroup 2. I am at a loss for words here. None of the files were edited but it continuously registers them as group 15. I have disabled all plugins and everything and still nothing. This is very strange.