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

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Bug Reports (Closed)
 v3.3(.03) NOT A BUG bad worlds filter submit
 Forum Locked  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

VodkaFish
Average Member

USA
654 Posts

Posted - 17 November 2001 :  01:17:39  Show Profile  Send VodkaFish an AOL message  Send VodkaFish an ICQ Message  Send VodkaFish a Yahoo! Message
I just tried to change my "bad words" for the first time in a long time. I removed one word (and the "|" after it) and received this error:
Microsoft VBScript runtime error '800a000d'

Type mismatch: 'SetConfigValue'

/forums/admin_config_badwords.asp, line 64

line in red:

if Err_Msg = "" then
for each key in Request.Form
if left(key,3) = "str" or left(key,3) = "int" then
strDummy = SetConfigValue(1, key, ChkString(Request.Form(key),"SQLstring"))
end if
next
Application(strCookieURL & "ConfigLoaded") = ""


from inc_functions.asp:

Function SetConfigValue(bUpdate, fVariable, fValue)

' bUpdate = 1 : if it exists then overwrite with new values
' bUpdate = 0 : if it exists then leave unchanged

Dim strSql

strSql = "SELECT C_VARIABLE FROM " & strTablePrefix & "CONFIG_NEW " &_
" WHERE C_VARIABLE = '" & fVariable & "' "

Set rs = Server.CreateObject("ADODB.Recordset")
rs.open strSql, my_Conn

if (rs.EOF or rs.BOF) then '## New config-value
SetConfigValue = "added"
my_conn.execute ("INSERT INTO " & strTablePrefix & "CONFIG_NEW (C_VALUE,C_VARIABLE) VALUES ('" & fValue & "' , '" & fVariable & "')")
else
if bUpdate <> 0 then
SetConfigValue = "updated"
my_conn.execute ("UPDATE " & strTablePrefix & "CONFIG_NEW SET C_VALUE = '" & fValue & "' WHERE C_VARIABLE = '" & fVariable &"'")
else ' not changed
SetConfigValue = "unchanged"
end if
end if

rs.close
set rs = nothing

end function



v ø d k â f ï § h

Edited by - vodkafish on 17 November 2001 01:18:22

Edited by - da_stimulator on 17 November 2001 04:21:17

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 17 November 2001 :  02:18:53  Show Profile
I can't duplicate this.
I have changed the bad word list and submitted it over and over and still don't get any error.

That error usually occurs when your "SetConfigValue()" function is missing from your inc_functions.asp file.

How many words did you have in the list? Did you have a | pipe at the end? How many characters in total was in the text field when you submitted it?

- David
Go to Top of Page

VodkaFish
Average Member

USA
654 Posts

Posted - 17 November 2001 :  03:21:26  Show Profile  Send VodkaFish an AOL message  Send VodkaFish an ICQ Message  Send VodkaFish a Yahoo! Message
No pipe at the end.

15 words - 83 Characters (including pipes).

I actually want to eliminate one, so it's a really weird error...

WAIT A MINUTE...this function IS missing from my inc_functions.asp file...I must have been looking at the wrong site when I posted the code...how in the heck did that happen? I took one from one site and copied it to the other (it's more updated and both have same mods, so hopefully no problems).

SORRY! Lock this one please, thanx for pointing me in the right direction Davio!

v ø d k â f ï § h

Edited by - vodkafish on 17 November 2001 03:22:22
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.13 seconds. Powered By: Snitz Forums 2000 Version 3.4.07