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)
 (3.4.03) BUG+FIX: Deleting all moderated posts
 Forum Locked  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 06 November 2003 :  02:34:43  Show Profile
When deleting all unmoderated posts in a topic, you will get this error:
Microsoft JET Database Engine (0x80040E10)
No value given for one or more required parameters.
/forum/pop_moderate.asp, line 377
To reproduce this, create a new topic in a moderated forum. As admin/moderator, view the moderated topic, click the "Approve/Hold/Reject all posts for this Topic" icon , in the right top hand corner (or right bottom hand corner) of the topic. Select "Delete" from the pop moderate window and you should get the error.

The SQL query look something like this:
SELECT R.CAT_ID, R.FORUM_ID, R.TOPIC_ID, R.REPLY_ID, R.R_STATUS, R.R_DATE as Post_Date, M.M_NAME, M.MEMBER_ID
FROM FORUM_REPLY R, FORUM_MEMBERS M
WHERE (R.R_Status = 2 OR R.R_Status = 3) AND R.R_AUTHOR = M.MEMBER_ID AND R.REPLY_ID = X
The code in red is what is giving the error. Since I am deleting all posts, the REPLY_ID shouldn't be used in the query.

Line 371 in pop_moderate.asp, I included the code in red:
if ModLevel <> "BOARD" then
	if ModLevel = "CAT" then
		strSql = strSql & " AND R.CAT_ID = " & CatID
	elseif ModLevel = "FORUM" then
		strSql = strSql & " AND R.FORUM_ID = " & ForumID
	elseif ModLevel = "TOPIC" or ModLevel = "ALLPOSTS" then
		strSql = strSql & " AND R.TOPIC_ID = " & TopicID
	else
		strSql = strSql & "AND R.REPLY_ID = " & ReplyID
	end if
end if
This is the same code we use on line 233 when approving all topics.

Support Snitz Forums

Rasco
Advanced Member

Germany
3192 Posts

Posted - 06 November 2003 :  12:37:15  Show Profile  Send Rasco an ICQ Message
I`ve been stumbling across this error some months ago, but couldn`t reproduce it then (only some weeks later it happened again, but only once).
Now, I have tried it again on a new installation and it works fine.

German Snitz Forum
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 06 November 2003 :  12:51:17  Show Profile
So you're saying you didn't get the error on a new installation?

Support Snitz Forums
Go to Top of Page

Rasco
Advanced Member

Germany
3192 Posts

Posted - 06 November 2003 :  14:59:22  Show Profile  Send Rasco an ICQ Message
Yes, that`s right.
Looks like you`re right. I have used the wrong button.

Btw. You have got a mail from me.

German Snitz Forum

Edited by - Rasco on 06 November 2003 17:26:42
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 31 December 2003 :  00:00:15  Show Profile
fixed in v3.4.04
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.6 seconds. Powered By: Snitz Forums 2000 Version 3.4.07