Blog Module - Deleting Posts Error

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.
3/24/2007 7:41:52 PM
Gravatar
Total Posts 23
Brian

Blog Module - Deleting Posts Error

Joe...

While on the Feedback page of a Blog Post, click the "Edit" button next to the Post Subject. Next, on the Blog Entry page, Click "Delete is item". You are taken to an error screen.

Here's the log info from the currentlog.config:

2007-03-24 17:36:50,538 [4724] ERROR mojoPortal.Web.Global [(null)] - /BlogView.aspx?pageid=0&ItemID=64&mid=14
System.ArgumentOutOfRangeException: The added or subtracted value results in an un-representable DateTime.
Parameter name: value
at System.DateTime.AddTicks(Int64 value)
at System.DateTime.Add(Double value, Int32 scale)
at System.DateTime.AddHours(Double value)
at mojoPortal.Web.BlogUI.BlogView.PopulateControls()
at mojoPortal.Web.BlogUI.BlogView.Page_Load(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Also, the Blog post does get deleted.

If you have any additional questions... please let know...

Brian

3/25/2007 7:41:21 AM
Gravatar
Total Posts 18439

Re: Blog Module - Deleting Posts Error

Hi Brian,

I'm trying to replicate that error this morning but not having much luck. Is it repeatable for you? Which db are you using?

Thanks,

Joe
3/25/2007 9:22:22 PM
Gravatar
Total Posts 23
Brian

Re: Blog Module - Deleting Posts Error

Hi Joe...
3/25/2007 9:22:29 PM
Gravatar
Total Posts 23
Brian

Re: Blog Module - Deleting Posts Error

Hi Joe...
3/25/2007 9:52:11 PM
Gravatar
Total Posts 23
Brian

Re: Blog Module - Deleting Posts Error

Hi Joe...

Sorry about the triple post... I had somthing stuck on the keyboard... anyway...

I using Mojoportal 2.2.1.7, running on Microsoft SQL Server 2005 SP1.

[ItemID] 73
[ModuleID] 14
[CreatedByUser] someuser@somedomain.com
[CreatedDate] 2007-03-25 19:28:21.693
[Title] Test
[Excerpt] Test
[StartDate] 2007-03-26 02:28:04.000
[IsInNewsletter] 1
[Description] Test
[CommentCount] 0
[TrackBackCount] 0
[Categories] NULL
[IncludeInFeed] 1

Above is a copy of a record that I created and then deleted in the procedure that I listed before... hope this helps... let me know if you need additional information.

Thanks...

Brian

3/26/2007 7:52:56 AM
Gravatar
Total Posts 18439

Re: Blog Module - Deleting Posts Error

Hi Brian,

Sorry I wasn't paying close enough attention to your instructions, I was clicking the main edit link instead of the one in blogview.aspx, once I did as you instructed I got the error.

I have it fixed and will make another file set as soon as I can and post here when its ready.

The bug was in the redirect logic which was redirecting to the url referrer, the problem was that when the url referrer was the blogview.aspx page it doesn't make sense to return to that page after the post is deleted because there is no longer a post to view with the previous url. So I've made it smart enough to redirect back to the page that contains the blog.

Thanks,

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