Blog - Expired Posts option generates 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.
11/9/2018 8:42:55 AM
Gravatar
Total Posts 25

Blog - Expired Posts option generates error

Hello

I am having a problem with expired blog posts on a 2.6 MSSQL site that I can also reproduce on the 2.7 demo site.

If a new post is setup and its end date is set to a datetime so the post has expired, then when the Blog Administration > Expired Posts option is used, an error is thrown.  This option works as expected in a pre-2.6 MSSQL installation.

On my internal 2.6 system the exception details are:

2018-11-09 13:22:38,339 ERROR  - en-GB - /Blog/ClosedPosts.aspx?pageid=53&mid=1213 - mojoPortal.Web.Global -  Referrer(http://owcmojo/Blog/Manage.aspx?pageid=53&mid=1213) useragent Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729)
System.IndexOutOfRangeException: IncludeImageInPost
   at System.Data.ProviderBase.FieldNameLookup.GetOrdinal(String fieldName)
   at System.Data.SqlClient.SqlDataReader.GetOrdinal(String name)
   at System.Data.SqlClient.SqlDataReader.get_Item(String name)
   at mojoPortal.Business.Blog.GetClosedDataSet(Int32 moduleId, Int32 pageNumber, Int32 pageSize, Int32& totalPages)
   at mojoPortal.Web.BlogUI.ClosedPostsPage.BindList()
   at mojoPortal.Web.BlogUI.ClosedPostsPage.Page_Load(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at mojoPortal.Web.mojoBasePage.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

The same exception is thrown on the operational version of this site.

Am I missing something to prevent this happening or is there an underlying problem?

Many thanks

Neil

6/12/2020 11:24:20 AM
Gravatar
Total Posts 90

mojoPortal Hosting & Design @ i7MEDIA!

Re: Blog - Expired Posts option generates error

Hello,

This problem is fixed and has been for a while in the repository, sorry for not replying back when it was fixed.

It will be included in the upcoming release of mojoPortal.

Thanks,
Elijah

6/30/2020 4:50:05 AM
Gravatar
Total Posts 25

Re: Blog - Expired Posts option generates error

Thanks for the update Elijah - we appreciate the work you're doing on mojoPortal.

All the best

Neil

3/9/2021 10:32:47 AM
Gravatar
Total Posts 194

Re: Blog - Expired Posts option generates error

Any workaround or ETA on a fix for this? I've had some clients have issues with this bug. The expired posts are helpful for people who pull up an old annual post and make it active again.