Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - BUG: Delete Thread
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

BUG: Delete Thread

 Post Reply Post Reply
Author
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Topic: BUG: Delete Thread
    Posted: 21 March 2006 at 3:49pm
If you delete the first message of a topic that has replies, then the topic is still assessible from the last post for the forum, but the topic is not listed on the forum topics page.

It's like the topic doesn't exist unless you have a direct link to it.
    
    

Edited by ljamal - 21 March 2006 at 4:02pm
Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 21 March 2006 at 4:01pm
Looking at that database it appears to be caused by the fact that the Start_Thread_ID does not not have a record in the Thread Table. Maybe the entire thread should be deleted if the first post in the thread is deleted or the Start_Thread_ID should be updated.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 21 March 2006 at 4:15pm
I'm not sure if I just don't understand exactly waht you are saying or if I can not replicate the error you mention.

When the first post is deleted in a topic the Start_Thread_ID should be updated with the ID of the next post in the topic. In tests I have done and just run again this is how it is working.

Try reuploading the files again incase you have a corruption, if you still have the problem could you please post what database version you are using and a step by step guide on how you are getting this error.


Edited by -boRg- - 21 March 2006 at 4:17pm
Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 21 March 2006 at 4:36pm
I'm using SQL Server 2000
I post new topic
I post a reply to the topic
Using the delete button underneath the first (start_thread_ID) post, I delete the post
I click the link to forum_topics.aps and the topic is gone even though there is one post in the topic.
I click the link to the default page and it shows the post in the topic as the most recent post.

Looking at the code for delete_post.asp, it does update the last_thread_ID for the thread. However, it doesn't update the Start_Thread_ID for the thread.

If I manually change the Start_Thread_ID then the thread reappears.
    

Edited by ljamal - 21 March 2006 at 4:39pm
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 21 March 2006 at 4:42pm
Thanks, I've found the problem now.

Looks like the Start_Thread_ID is not updated correctly. Shame this type of thing didn't come up in beta testing, but I guess not enough people beta tested the software.
Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 21 March 2006 at 4:44pm
My suggestion would be to update the function (UpdateTopicReplyDetails) to update the Start_Thread_ID as well as the Last_Thread_ID.

I wish I could have been part of the Beta Testing, but I was swamped with work all year. I just cleared everything off my plate but 2 projects.    

Edited by ljamal - 21 March 2006 at 4:46pm
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 21 March 2006 at 4:50pm
You must have read my mind as that is exactly what I am looking at, at the moment.

Just got a few bits to workout through as the function is called in a number of places.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.