Delete Forum Post

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
2/5/2007 6:40:29 AM
Gravatar
Total Posts 41

Delete Forum Post

I can't delete forum threads. The thread still shows in the list with -1 replies.

A question about the counter for Total views. It seems that it counts everytime when the thread is displayed. Refreshing the page will add the counter. Wouldn't it be better to only add max 1 per user session?

2/5/2007 7:24:40 AM
Gravatar
Total Posts 18439

Re: Delete Forum Post

I am able to replicate that bug. It was working before so that bug must have crept in there recently. I will fix it soon. It should delete the thread automatically when deleting the last post in the thread.

As for view count, I don't like to use session state at all, its a performance killer. I think it is better to keep it simple and define a view as a request for the page.

Thanks,

Joe
2/5/2007 7:36:01 AM
Gravatar
Total Posts 18439

Re: Delete Forum Post

Even though it should delete the thread when the last post is deleted, you can still delete it manually.
When you are on the ForumView.aspx page and you see the title of the thread, click the pencil next to the thread and you will see the delete button for the thread which is not on the same page as the delete button for a post.

Joe
2/6/2007 12:30:11 AM
Gravatar
Total Posts 41

Re: Delete Forum Post

I get the following exception when trying to view/edit the thread:

2007-02-06 07:26:46,358 [4712] ERROR mojoPortal.Web.Global [(null)] - /ForumThreadEdit.aspx?thread=490
System.InvalidCastException: Det går inte att omvandla objektet från DBNull till andra typer.
vid System.DBNull.System.IConvertible.ToDateTime(IFormatProvider provider)
vid System.Convert.ToDateTime(Object value)
vid mojoPortal.Business.ForumThread.GetThread(Int32 threadID)
vid mojoPortal.Business.ForumThread..ctor(Int32 threadID)
vid mojoPortal.Web.ForumUI.ForumThreadEdit.Page_Load(Object sender, EventArgs e)
vid System.Web.UI.Control.OnLoad(EventArgs e)
vid System.Web.UI.Control.LoadRecursive()
vid System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2007-02-06 07:26:46,358 [4712] ERROR mojoPortal.Web.Global [(null)] - /ForumThreadEdit.aspx?thread=490
System.Web.HttpUnhandledException: Ett undantagsfel av typen System.Web.HttpUnhandledException inträffade. ---> System.InvalidCastException: Det går inte att omvandla objektet från DBNull till andra typer.
vid System.DBNull.System.IConvertible.ToDateTime(IFormatProvider provider)
vid System.Convert.ToDateTime(Object value)
vid mojoPortal.Business.ForumThread.GetThread(Int32 threadID)
vid mojoPortal.Business.ForumThread..ctor(Int32 threadID)
vid mojoPortal.Web.ForumUI.ForumThreadEdit.Page_Load(Object sender, EventArgs e)
vid System.Web.UI.Control.OnLoad(EventArgs e)
vid System.Web.UI.Control.LoadRecursive()
vid System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
--- Slut på stackspårning för interna undantag ---
vid System.Web.UI.Page.HandleError(Exception e)
vid System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
vid System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
vid System.Web.UI.Page.ProcessRequest()
vid System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
vid System.Web.UI.Page.ProcessRequest(HttpContext context)
vid ASP.forumthreadedit_aspx.ProcessRequest(HttpContext context)
vid System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
vid System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

I will delete it manually in DB for now.

2/6/2007 2:38:46 PM
Gravatar
Total Posts 18439

Re: Delete Forum Post

This is fxed in svn and will be in the next release.

Thanks,

Joe
You must sign in to post in the forums. This thread is closed to new posts.