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
 New members can't register
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Nijii
Starting Member

Greenland
49 Posts

Posted - 22 February 2006 :  17:54:16  Show Profile  Visit Nijii's Homepage
The following error occurs when new members want to register to my forum. I saw it after installing the avatar Mod 3.4 by Richard Kinser, adapted by Hamlin. I have the active users installed and got some other problem which was solved from this topic and don't really know if they are related http://forum.snitz.com/forum/topic.asp?TOPIC_ID=61084

I need some help on this error.

Microsoft JET Database Engine error '80040e14'
Number of query values and destination fields are not the same.
/snitz/register.asp, line 593


A text file of the register.asp can be seen here

Edited by - Nijii on 22 February 2006 18:28:30

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 22 February 2006 :  18:57:50  Show Profile  Send ruirib a Yahoo! Message
Check the changes made in register.asp, specially around line 593 and previous. You are surely forgetting to add some code around that area od the file.


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

Nijii
Starting Member

Greenland
49 Posts

Posted - 22 February 2006 :  19:34:24  Show Profile  Visit Nijii's Homepage
quote:
Originally posted by ruirib

Check the changes made in register.asp, specially around line 593 and previous. You are surely forgetting to add some code around that area od the file.



I cant see the error but here is some code before the two MODS and after.
----------------------------BEFORE------------------------

if strQuote = "1" then
strSql = strSql & ", '" & ChkString(Request.Form("Quote"),"message") & "'"
else
strSql = strSql & ", ''"
end if
strSql = strSql & ", 1"
strSql = strSql & ")"

my_Conn.Execute (strSql),,adCmdText + adExecuteNoRecords


--------------------------AFTER-------------------

if strQuote = "1" then
strSql = strSql & ", '" & ChkString(Request.Form("Quote"),"message") & "'"
else
if strAUAnon = "1" then
strSql = strSql & ", '" & ChkString(Request.Form("AUHide"),"") & "'"
else
strSql = strSql & ", '1'"
end if
strSql = strSql & ", ''"
end if
strSql = strSql & ", 1"
strSql = strSql & ", '" & ChkString(Request.Form("Avatar_URL"),"SqlString") & "'"
strSql = strSql & ")"

Line 593: my_Conn.Execute (strSql),,adCmdText + adExecuteNoRecords

Edited by - Nijii on 22 February 2006 19:44:28
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 22 February 2006 :  20:08:02  Show Profile
Just before line 593, do this :

Response.Write strSql

You will find that if you count the number of fields and the number of values, they won't match.
Go to Top of Page

Nijii
Starting Member

Greenland
49 Posts

Posted - 22 February 2006 :  20:12:01  Show Profile  Visit Nijii's Homepage
Hi many thanks! I found the error and now the code looks like this:


if strQuote = "1" then
strSql = strSql & ", '" & ChkString(Request.Form("Quote"),"message") & "'"
else
strSql = strSql & ", ''"
end if
if strAUAnon = "1" then
strSql = strSql & ", '" & ChkString(Request.Form("AUHide"),"") & "'"
else
strSql = strSql & ", '1'"
end if
strSql = strSql & ", 1"
strSql = strSql & ", '" & ChkString(Request.Form("Avatar_URL"),"SqlString") & "'"
strSql = strSql & ")"

my_Conn.Execute (strSql),,adCmdText + adExecuteNoRecords



Edited by - Nijii on 22 February 2006 20:22:25
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.23 seconds. Powered By: Snitz Forums 2000 Version 3.4.07