Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: catfished - helmikuu 24, 2005, 08:21:13 IP

Otsikko: Problems with registering
Kirjoitti: catfished - helmikuu 24, 2005, 08:21:13 IP
I'm having a problem everytime someone new registers. They do get registered and receive their welcome email but every instance of this shows up in the error logs as below:

I really would like to know how to fix this, it doesn't look good to the person just registering to see this just after he submits his registration. According to the user box he is actually logged in ???:
Otsikko: Re: Problems with registering
Kirjoitti: [Unknown] - helmikuu 24, 2005, 08:26:16 IP
Find in Register.php:

redirectexit('action=login2;sa=check;id=' . $memberID, true, $context['server']['needs_login_fix']);

Replace:

redirectexit('action=login2;sa=check;member=' . $memberID, true, $context['server']['needs_login_fix']);

How do I modify files? (http://www.simplemachines.org/community/index.php?topic=24110.0)

-[Unknown]
Otsikko: Re: Problems with registering
Kirjoitti: catfished - helmikuu 24, 2005, 10:40:51 IP
Thanks Unknown, that fixed it. ;D  It took a while to find that line and like an idiot, I didn't write down the line number. :-[ I have a few more SMF forums and they all have that problem. I guess it's a bug in version 1.0.2?
Otsikko: Re: Problems with registering
Kirjoitti: [Unknown] - helmikuu 25, 2005, 02:06:11 AP
Yes, but only if you have "immediate registration" enabled (which is uncommon.)

-[Unknown]
Otsikko: Re: Problems with registering
Kirjoitti: destalk - helmikuu 28, 2005, 02:27:45 IP
Once I have edited the file as described above, will this then cause problems in future upgrades via package manager?

Also, are there any 'side-effects' as a result of the technique described above?

Thanks

<---edit--->

Yep, that worked like a dream.
Otsikko: Re: Problems with registering
Kirjoitti: [Unknown] - helmikuu 28, 2005, 11:26:04 IP
Lainaus käyttäjältä: destalk - helmikuu 28, 2005, 02:27:45 IP
Once I have edited the file as described above, will this then cause problems in future upgrades via package manager?

Also, are there any 'side-effects' as a result of the technique described above?

Well, the next package manager update could theoretically be a problem.  You might just backup the file and, before you update, put back the old copy or reverse the change...

-[Unknown]