Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 E-mail changing problem
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

matko
New Member

54 Posts

Posted - 11 August 2005 :  08:03:59  Show Profile
One of my users is trying to change his registered e-mail but the system is refusing to do so, stating that "E-mail Address already in use, Please Choose Another"
Since I am running forum on access I downloaded the database to my computer and manually searched forum_members and forum_members_pending tables for that particular e-mail, but such an e-mail doesn't exist.
What could be the reason for system refusing to accept this e-mail? is there any other place in the database I sould search?

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 11 August 2005 :  08:09:49  Show Profile  Send ruirib a Yahoo! Message
It must be there, otherwise the message wouldn't show. How did you search for it? Building a query would be the surest way to find the email in question.
Anyway, you can turn off the requirement for unique emails, let the user change the email address and then turn the requirement on again.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 11 August 2005 :  08:10:49  Show Profile
Did you search the M_NEW_EMAIL field in the MEMBERS table as well? When a member changes their profile e-mail address the new address is inserted in this field, pending validation. It may be that another member on your forums had tried to change their e-mail address to the same one and has not yet validated it.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

matko
New Member

54 Posts

Posted - 11 August 2005 :  08:13:36  Show Profile
I have searched the databse more troughoutly and I have found that prticular e-mail in field m_newemail in forum_members table.
What is this field used for?
Is there any way how to delete this field using code insted of closing forum, downloading the databse, deleting manually and again uploading? Database is now 26 MBs and I my ADSL has only 128 kbits upload so really prefere not to close forum for half an hour or so.
Thanks for help.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 11 August 2005 :  08:16:52  Show Profile  Send ruirib a Yahoo! Message
The field should not be deleted. If you want to delete the field's contents for a given user, that can be done through a small dbs script.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

matko
New Member

54 Posts

Posted - 11 August 2005 :  08:20:23  Show Profile
I meant to delete just that particular value, not a field as such. Sorry for using incorrect term.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 11 August 2005 :  09:15:00  Show Profile  Send ruirib a Yahoo! Message
Use this script in the Alternate Mod Setup window, after changing the email address to the one that is causing problems:

[UPDATE]
MEMBERS
M_NEW_EMAIL#''#M_NEW_EMAIL='problem@email.com'
[END]



Snitz 3.4 Readme | Like the support? Support Snitz too

Edited by - ruirib on 11 August 2005 10:30:33
Go to Top of Page

matko
New Member

54 Posts

Posted - 11 August 2005 :  09:30:14  Show Profile
I don't understand. What is this script suppose to do?
I can't change the e-mail address of the user, because it is already in the database.

But speaking about the script, could you please help me to transform this SQL command
UPDATE FORUM_MEMBERS
SET FORUM_MEMBERS.M_NEWEMAIL = ""
WHERE MEMBER_ID=41;

into script, co I can use it in alternate mod setup window?
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 11 August 2005 :  10:30:59  Show Profile  Send ruirib a Yahoo! Message
[UPDATE]
MEMBERS
M_NEW_EMAIL#''#MEMBER_ID=41
[END]


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

matko
New Member

54 Posts

Posted - 11 August 2005 :  11:14:06  Show Profile
Thank you very much.
Go to Top of Page

matko
New Member

54 Posts

Posted - 11 August 2005 :  16:36:25  Show Profile
I have tried your script but unfortunately it doesn't work. I am getting this message:
Updating Forum Values..
UPDATE FORUM_MEMBERS SET M_NEW_EMAIL = '' WHERE MEMBER_ID=41
-2147217904 | No value given for one or more required parameters.
Go to Top of Page

matko
New Member

54 Posts

Posted - 11 August 2005 :  16:43:30  Show Profile
Sorry for bothering, it is solved now. Problem was that field name is m_newemail not m_new_email. I haven't notice that you changed that name in your script.
Thanks a lot. BTW where can I find general description of syntax used for Mod Setup?
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 11 August 2005 :  22:44:16  Show Profile  Send ruirib a Yahoo! Message
Sorry about the field name mistake. Info on mod setup syntax is available here: http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=5120


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

matko
New Member

54 Posts

Posted - 29 August 2005 :  10:32:26  Show Profile
Thanks a lot, for the link.
Go to Top of Page

kgrimsby
New Member

USA
72 Posts

Posted - 10 April 2006 :  01:48:27  Show Profile
quote:
Originally posted by matko

One of my users is trying to change his registered e-mail but the system is refusing to do so, stating that "E-mail Address already in use, Please Choose Another" ... What could be the reason for system refusing to accept this e-mail?


There is actually a bug in the Snitz code that leads to this problem. Here's what happens:

When a member changes her e-mail address, the new address is placed in the M_NEWEMAIL field of her record in the members table. The M_EMAIL field retains her original address, pending her response to the verification e-mail, which is sent to the new address.

However, if the member does not respond successfully to the verification e-mail (perhaps she didn't receive it because her ISP's mail server was down), the member would reasonably attempt to change her e-mail address one more time. Indeed, her profile would still show her original address (read from the M_EMAIL field).

However, when the member changes her e-mail address the second time, the change isn't allowed because the address is already in use. Indeed, the new address already appears in the M_NEWEMAIL field of the member's very own record!

So it really is a bug in the Snitz code! The code should exclude the member from the search of the M_NEWEMAIL field for addresses already in use. When this fix is made, the member in the scenario above would simply be sent a second verification e-mail. When she responds to it, the address in the M_NEWEMAIL field is moved to the M_EMAIL field.

Here's the fix (around line 1100 of pop_profile.asp):
strSql = "SELECT M_NEWEMAIL FROM " & strMemberTablePrefix & "MEMBERS "
strSql = strSql & " WHERE M_NEWEMAIL = '" & Trim(ChkString(Request.Form("Email"),"SQLString")) & "'"
strSql = strSQL & " AND M_NAME <> '" & ChkString(Request.Form("Name"), "SQLString") & "'"

The only change is the addition of the last assignment statement.

Ken

Edited by - kgrimsby on 10 April 2006 02:12:52
Go to Top of Page

Doc Orac
Starting Member

Netherlands
28 Posts

Posted - 12 April 2006 :  04:16:47  Show Profile
The same happens, when deleting a member from the table, a.k.a, disabling the account, the field M_NEWEMAIL isn't reset. So the email-adress can't be used again. If that email-adress isn't allowed to be used, than locking that account is the solution, so that field M_NEWEMAIL isn't reset. It looks like the way the field M_NEWEMAIL is used, should be looked at, and change if necessary.

See also: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=60365

Have A Nice Day!
Doc Orac (Remco Beekmans) @ Rotterdam (NL)
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.38 seconds. Powered By: Snitz Forums 2000 Version 3.4.07