CMS Forum error

Oct 27, 2011 at 3:24 PM

Hi All,

i am new to orchard(CMS). i installed forum module using web matrix. i am able to create my first post successfully. while creating successive post i am getting the following error. can anyone guide me on this??

Sequence contains more than one element

 

Line 43:             var threadPath = forumPart.As<IRoutableAspect>().GetChildPath(slug);
Line 44: 
Line 45:             return _contentManager.Query(versionOptions, ContentPartConstants.Thread).Join<RoutePartRecord>().Where(rr => rr.Path == threadPath).
Line 46:                     Join<CommonPartRecord>().Where(cr => cr.Container == forumPart.Record.ContentItemRecord).List().
Line 47:                     SingleOrDefault().As<ThreadPart>();

Thank you

Nov 10, 2011 at 10:52 AM

This seems to relate to my issue here: http://orchardforums.codeplex.com/discussions/275108.

The path is null, so when it's looking for it when there's only 1 it works great but if there's more than 1 it finds 2 with null paths.