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: MOD Implementation
 Error with Friendly Registration Mod (Beta)
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Kent
Junior Member

United States
193 Posts

Posted - 20 September 2003 :  14:15:31  Show Profile
Found this mod here, and tried implementing it. Since the original topic was locked, I'm starting a new topic:

When I click on the activation key, I get this error:
Microsoft OLE DB Provider for SQL Server error '80040e07'

Syntax error converting the varchar value '4561q61n0g8hcuwu' to a column of data type smallint.

/club2/register.asp, line 218


Can anyone offer any insight?

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 20 September 2003 :  14:41:37  Show Profile  Visit D3mon's Homepage
Can you post a .txt version of your register.asp so I can take a look at the code?


Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod
"In war, the victorious strategist only seeks battle after the victory has been won"
Go to Top of Page

Kent
Junior Member

United States
193 Posts

Posted - 20 September 2003 :  15:01:34  Show Profile
Wow!

Thanks for the quick reply. The link is:

http://www.simpletractors.com/club34/register.txt
Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 22 September 2003 :  09:41:11  Show Profile  Visit D3mon's Homepage
Looks like the inserted code at line 212 has overwritten one line of the SQL statement. Add the line in green:

strSql = strSql & ", '" & chkString(rsKey("M_QUOTE"),"message") & "'"
strSql = strSql & ", '" & chkString(rsKey("M_SHA256"),"message") & "'"
'### friendly registration MOD
strSql = strSql & ", '" & chkString(rsKey("M_KEY"),"SQLString") & "'"
'### friendly registration MOD


Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod
"In war, the victorious strategist only seeks battle after the victory has been won"
Go to Top of Page

Kent
Junior Member

United States
193 Posts

Posted - 22 September 2003 :  13:34:40  Show Profile
D3mon,

Thanks for looking at it... I made that change, and now get the following error when I try to activate a member's pending record, or when clicking the activation key in the email for a new member:

Microsoft OLE DB Provider for SQL Server error '80040e14'

There are fewer columns in the INSERT statement than values specified in the VALUES clause. The number of values in the VALUES clause must match the number of columns specified in the INSERT statement.

/club34/register.asp, line 219

Is there another place I need to make a similar change....


Edited by - Kent on 22 September 2003 14:01:05
Go to Top of Page

ErEf
New Member

Netherlands
74 Posts

Posted - 22 September 2003 :  15:34:29  Show Profile  Visit ErEf's Homepage
just one line of code is missing just above your second insertion, you must have deleted it while inserting the new code, just like what happened with the other error.
from m_quote line it must look like this
			strSql = strSql & ", '" & chkString(rsKey("M_QUOTE"),"message") & "'"
			strSql = strSql & ", '" & chkString(rsKey("M_AUHIDE"),"SQLString") & "'"
			'### friendly registration MOD
			strSql = strSql & ", '" & chkString(rsKey("M_KEY"),"SQLString") & "'"
			'### friendly registration MOD
			strSql = strSql & ", 1"
			strSql = strSql & ")"

			my_Conn.Execute (strSql),,adCmdText + adExecuteNoRecords

If you think you can or you think you cannot, you are right. - Henry Ford
Go to Top of Page

Kent
Junior Member

United States
193 Posts

Posted - 22 September 2003 :  21:02:42  Show Profile
ErEf,

Thanks for the help, but that doesn't solve the problem. Instead, it generates a different error:

ADODB.Recordset error '800a0cc1'

Item cannot be found in the collection corresponding to the requested name or ordinal.

/club34/register.asp, line 212

I went back and looked at the original copy of the file, and there was no M_AUHIDE line there...

You can see the current state of the file at:
http://www.simpletractors.com/club34/register.txt

Edited by - Kent on 22 September 2003 21:26:07
Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 23 September 2003 :  05:41:36  Show Profile  Visit D3mon's Homepage
probably best to restore the original register.asp file and make the changes again.


Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod
"In war, the victorious strategist only seeks battle after the victory has been won"
Go to Top of Page

Kent
Junior Member

United States
193 Posts

Posted - 23 September 2003 :  12:02:30  Show Profile
Thanks D3mon for your patience in helping sort out my error.

It helped me focus on and find the problem area. I had placed the code one line too high...

Rather than using your suggested line of:

strSql = strSql & ", '" & chkString(rsKey("M_SHA256"),"message") & "'"

I had to set a values for M_SHA256 like this:

strSql = strSql & ", 1"

It seems to be working fine now.

Thanks again!
Go to Top of Page
  Previous Topic Topic Next Topic  
 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.3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07