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)
 V33(.02) BUG + FIX: Delete all topics option
 Forum Locked  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

thephantomnl
New Member

Netherlands
66 Posts

Posted - 29 July 2001 :  17:10:17  Show Profile  Visit thephantomnl's Homepage  Send thephantomnl an ICQ Message
when trying to delete all topics with the archief function i get this error:

Microsoft JET Database Engine fout '80040e14'
De component WHERE bevat een syntaxisfout.

/forumv33/admin_forums.asp, regel 676

(the component has an syntaxerror
...... line 676)

with selected forums it works fine



Edited by - thephantomnl on 29 July 2001 17:10:58

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 30 July 2001 :  05:43:50  Show Profile  Visit HuwR's Homepage
changing the subdeletestuff function to the one below should fix it


Sub subdeletestuff(fstrid)
Dim fIDSQL
'#### create FORUM_ID clause
rqID = request("id")
on error resume next
testID = cLng(rqID)
if err.number = 0 then
if rqID <> "-1" then
fIDSQL = "WHERE FORUM_ID=" & rqID
else
fIDSQL = ""
end if
err.clear
else
fIDSQL = "WHERE FORUM_ID IN (" & rqID & ")"
err.clear
end if
on error goto 0
strsql = "DELETE FROM " & strTablePrefix & "TOPICS " & fIDSQL
my_conn.execute(strsql)
strsql = "DELETE FROM " & strTablePrefix & "REPLY " & fIDSQL
my_conn.execute(strsql)
Call subdoupdates()
End Sub


Go to Top of Page

thephantomnl
New Member

Netherlands
66 Posts

Posted - 30 July 2001 :  07:44:32  Show Profile  Visit thephantomnl's Homepage  Send thephantomnl an ICQ Message
euhhhhhhhhh sorry but i get now the error:

Microsoft JET Database Engine fout '80040e14'
Syntaxisfout (operator ontbreekt) in query-expressie FORUM_ID=.

/forumv33/admin_forums.asp, regel 673

(operator is missing)



Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 30 July 2001 :  07:56:08  Show Profile  Visit HuwR's Homepage
could you tell me exactly which link you are selecting, it looks like it is not passing a variable

Go to Top of Page

thephantomnl
New Member

Netherlands
66 Posts

Posted - 30 July 2001 :  08:33:34  Show Profile  Visit thephantomnl's Homepage  Send thephantomnl an ICQ Message
yes:

the link in the forum is:
admin_forums.asp?action=delete&id=-1&confirm=true
it is the link all forums, above the link selected forums .

if you want to have access to my sit just sent me an e-mail and you get the username for admin.


(error from webserver win2000 av is different than pws server)

Microsoft JET Database Engine error '80040e14'
Syntax error in WHERE clause.

/forumv33/admin_forums.asp, line 676



Edited by - thephantomnl on 30 July 2001 08:36:07
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 30 July 2001 :  09:41:11  Show Profile  Visit HuwR's Homepage
In the above fix, I have highlighted a line in red, replace it with

fIDSQL = " WHERE FORUM_ID > 0"

Go to Top of Page

thephantomnl
New Member

Netherlands
66 Posts

Posted - 30 July 2001 :  10:36:57  Show Profile  Visit thephantomnl's Homepage  Send thephantomnl an ICQ Message
same error but this seems to work:

Sub subdeletestuff(fstrid)
rqID = request("id")
Dim fIDSQL'#### create FORUM_ID clause rqID = request("id")
on error resume next
testID = cLng(rqID)
if err.number = 0 then
if rqID <> "-1" then
fIDSQL = "WHERE FORUM_ID=" & rqID
else
fIDSQL = ""
end if
err.clear
else
fIDSQL = "WHERE FORUM_ID IN (" & rqID & ")"
err.clear
end if
on error goto 0
strsql = "DELETE FROM " & strTablePrefix & "TOPICS " & fIDSQL
my_conn.execute(strsql)
strsql = "DELETE FROM " & strTablePrefix & "REPLY " & fIDSQL
my_conn.execute(strsql)
Call subdoupdates()
End Sub


Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 30 July 2001 :  13:03:17  Show Profile  Visit HuwR's Homepage
quote:

same error but this seems to work:

Sub subdeletestuff(fstrid)
rqID = request("id")
Dim fIDSQL'#### create FORUM_ID clause rqID = request("id")
on error resume next
testID = cLng(rqID)
if err.number = 0 then
if rqID <> "-1" then
fIDSQL = "WHERE FORUM_ID=" & rqID
else
fIDSQL = ""
end if
err.clear
else
fIDSQL = "WHERE FORUM_ID IN (" & rqID & ")"
err.clear
end if
on error goto 0
strsql = "DELETE FROM " & strTablePrefix & "TOPICS " & fIDSQL
my_conn.execute(strsql)
strsql = "DELETE FROM " & strTablePrefix & "REPLY " & fIDSQL
my_conn.execute(strsql)
Call subdoupdates()
End Sub






almost, if you look at my original fix, the line in blue should say
rqID = fstrid

Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 31 July 2001 :  23:44:17  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
is this the complete fix?

quote:


Sub subdeletestuff(fstrid)
Dim fIDSQL
'#### create FORUM_ID clause
rqID = request("id")
on error resume next
testID = cLng(rqID)
if err.number = 0 then
if rqID <> "-1" then
fIDSQL = "WHERE FORUM_ID=" & rqID
else
fIDSQL = ""
end if
err.clear
else
fIDSQL = "WHERE FORUM_ID IN (" & rqID & ")"
err.clear
end if
on error goto 0
strsql = "DELETE FROM " & strTablePrefix & "TOPICS " & fIDSQL
my_conn.execute(strsql)
strsql = "DELETE FROM " & strTablePrefix & "REPLY " & fIDSQL
my_conn.execute(strsql)
Call subdoupdates()
End Sub




Brad
Go to Top of Page

hartc
Starting Member

7 Posts

Posted - 01 August 2001 :  06:32:08  Show Profile
quote:

Yes, I realize this, but I archived everything older than one month, and then deleted ARCHIVED topics. This cleared everything, current AND archived topics.



We are getting something similar. Without any modification at all to admin_forums.asp when using the `delete selected topics from an archive` option we receive a SQL error message:

Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near 'WHERE'.

/snitz3302/admin_forums.asp, line 676

Having applied the fixes in this thread and performing the same `delete selected topics from an archive` we lose all live threads and yet the archived threads remain.

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 01 August 2001 :  06:37:41  Show Profile  Visit HuwR's Homepage
quote:

quote:

Yes, I realize this, but I archived everything older than one month, and then deleted ARCHIVED topics. This cleared everything, current AND archived topics.



We are getting something similar. Without any modification at all to admin_forums.asp when using the `delete selected topics from an archive` option we receive a SQL error message:

Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near 'WHERE'.

/snitz3302/admin_forums.asp, line 676

Having applied the fixes in this thread and performing the same `delete selected topics from an archive` we lose all live threads and yet the archived threads remain.





Could you please report this as a seperate bug, it has nothing to do with this bug or fix.

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 01 August 2001 :  06:42:44  Show Profile  Visit HuwR's Homepage
redbrad0

you need to change
rqID = request("id")
to
rqID = fstrid

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 01 August 2001 :  06:47:30  Show Profile  Visit HuwR's Homepage
hartc

line 676 is in the code to delete all topics not in the function to delete archived topics, are you sure you are selecting the correct link

Go to Top of Page

hartc
Starting Member

7 Posts

Posted - 01 August 2001 :  07:18:58  Show Profile
We've found the problem.

On line #375

change:

response.write("<tr><td colspan=2><font face=" & strDefaultFontFace & " size=" & strDefaultFontSize & "><li><a href=""admin_forums.asp?action=delete&id=-1"">All Forums</a></font></td></tr>" & vbNewline)

to

response.write("<tr><td colspan=2><font face=" & strDefaultFontFace & " size=" & strDefaultFontSize & "><li><a href=""admin_forums.asp?action=deletearchive&id=-1"">All Forums</a></font></td></tr>" & vbNewline)

This will now delete all archived posts across all forums.

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 01 August 2001 :  12:03:26  Show Profile  Visit HuwR's Homepage
quote:

We've found the problem.

On line #375

change:

response.write("<tr><td colspan=2><font face=" & strDefaultFontFace & " size=" & strDefaultFontSize & "><li><a href=""admin_forums.asp?action=delete&id=-1"">All Forums</a></font></td></tr>" & vbNewline)

to

response.write("<tr><td colspan=2><font face=" & strDefaultFontFace & " size=" & strDefaultFontSize & "><li><a href=""admin_forums.asp?action=deletearchive&id=-1"">All Forums</a></font></td></tr>" & vbNewline)

This will now delete all archived posts across all forums.




thanks hartc, I had just checked all the links myself and found it too.

Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 02 August 2001 :  22:21:53  Show Profile  Visit dayve's Homepage
can someone post the complete fix in one topic. I did the fix where you have to change deletearchive but not sure if there is anything else because this post looks as if you guys are just debugging. thanks.

Dayve
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 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.15 seconds. Powered By: Snitz Forums 2000 Version 3.4.07