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)
 BUG+FIX (3.2a1): Non-critical Admin_config_email
 Forum Locked  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Deleted
deleted

4116 Posts

Posted - 25 February 2001 :  16:55:51  Show Profile
Just uploaded 3.2 alpha 1 and started to configure it for a new site on local PWS without any email component. Don't know if the error also applies to previous versions. This is not critical


Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Syntax error in UPDATE statement.
/www1.istanbulmuzesi.org/forum/admin_config_email.asp, line 84


I did response.write to sqlstr:

UPDATE FORUM_CONFIG SET C_STREMAIL = , C_STRMAILMODE = 'None', C_STRMAILSERVER = 'your.mailserver.com', C_STRSENDER = 'your.email@yourserver.com', C_STRUNIQUEEMAIL = 1, C_STRLOGONFORMAIL = 1


It seems that the problem is with strEmail radio button value, which are disabled in this case.

If I change the following code around line #71

'## Forum_SQL
strSql = "UPDATE " & strTablePrefix & "CONFIG "
strSql = strSql & " SET C_STREMAIL = " & Request.Form("strEmail") & ""
strSql = strSql & ", C_STRMAILMODE = '" & Request.Form("strMailMode") & "'"
....


to handle the case where strEmail is empty and take all the commas in sql to the end of the previous line:


'## Forum_SQL
strSql = "UPDATE " & strTablePrefix & "CONFIG "
strSql = strSql & " SET "
if Request.Form("strEmail") <> "" then
strSql = strSql & " C_STREMAIL = " & Request.Form("strEmail") & ", "
end if
strSql = strSql & " C_STRMAILMODE = '" & Request.Form("strMailMode") & "', "
if Request.Form("strMailServer") <> "" then
strSql = strSql & " C_STRMAILSERVER = '" & Request.Form("strMailServer") & "', "
end if
if Request.Form("strSender") <> "" then
strSql = strSql & " C_STRSENDER = '" & Request.Form("strSender") & "', "
end if
strSql = strSql & " C_STRUNIQUEEMAIL = " & Request.Form("strUniqueEmail") & ", "
strSql = strSql & " C_STRLOGONFORMAIL = " & Request.Form("strLogonForMail") & ""


It works.



Bulent Ozden
History Foundation of Turkey
bozden@tarihvakfi.org.tr

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 25 February 2001 :  17:26:52  Show Profile
Instead of doing the above.

I removed the disabled from line #208 of admin_config_email.asp

That way, if there are no components found, the Off button will be checked and still have a value, and the On button will be disabled so it can't be chosen.

Mike, I am sending you the updated admin_config_email.asp.
Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 25 February 2001 :  17:59:06  Show Profile
For sure

Bulent Ozden
History Foundation of Turkey
bozden@tarihvakfi.org.tr
Go to Top of Page

Reinsnitz
Snitz Forums Admin

USA
3545 Posts

Posted - 25 February 2001 :  18:35:26  Show Profile  Visit Reinsnitz's Homepage  Send Reinsnitz an AOL message  Send Reinsnitz an ICQ Message  Send Reinsnitz a Yahoo! Message
fixed in the source of sf2k_31a3.zip

Reinsnitz (Mike)
><)))'> Need a Mod?
"Therefore go and make disciples of all nations,..." Matthew 28:19a
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.16 seconds. Powered By: Snitz Forums 2000 Version 3.4.07