Recent Content Feature not working

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

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.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
2/28/2020 3:11:17 AM
Gravatar
Total Posts 53

Recent Content Feature not working

We recently upgraded our version to the latest, 2.7.0.0 MSSQL. I think the Recent Content feature which we already had set up, was working after the upgrade, now we are getting this error below. 

Can someone please help decipher it?

The Recent Content feature is the only feature on the recent-changes.aspx page.

2020-02-28 19:21:22,137 ERROR 192.xxx.xxx.25 - en-US - /recent-changes.aspx - mojoPortal.Web.Global -  Referrer(none) useragent Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; Touch; rv:11.0) like Gecko 
System.ArgumentException: Unable to sort because the IComparer.Compare() method returns inconsistent results. Either a value does not compare equal to itself, or one value repeatedly compared to another value yields different results. IComparer: 'System.Collections.Generic.ObjectComparer`1[mojoPortal.SearchIndex.IndexItem]'.
   at System.Collections.Generic.IntrospectiveSortUtilities.ThrowOrIgnoreBadComparer(Object comparer)
   at System.Collections.Generic.ArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer)
   at System.Array.Sort[T](T[] array, Int32 index, Int32 length, IComparer`1 comparer)
   at System.Collections.Generic.List`1.Sort(Int32 index, Int32 count, IComparer`1 comparer)
   at mojoPortal.SearchIndex.IndexHelper.GetRecentModifiedContent(Int32 siteId, Guid[] featureGuids, DateTime modifiedSinceDate, Int32 maxItems)
   at mojoPortal.Web.ContentUI.RecentContentModule.BindContent()
   at mojoPortal.Web.ContentUI.RecentContentModule.PopulateControls()
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Any help would be appreciated.

2/28/2020 2:51:35 PM
Gravatar
Total Posts 2239

Re: Recent Content Feature not working

Hi Sandy,

We'll take a look at this in a dev environment. I haven't seen this problem before.

Thanks,
Joe

3/1/2020 3:49:35 PM
Gravatar
Total Posts 53

Re: Recent Content Feature not working

Thanks Jo, 

I'm fairly sure that there were many duplicates last time I looked, so perhaps we may just need to rebuild the index?

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