ContentType(s) with Container Part and custom Containable items build in 1.6.x, stuck on loading forever after upgrading to version 1.7.1. with Lists module enabled

Topics: Core, Installing Orchard, Troubleshooting
Nov 14, 2013 at 3:58 PM
We have created a website using Orchard 1.6.x. We added a container contenttype for banner contenttype items, using the Orchard.Lists module enabled.

Al worked fine, until we upgraded to 1.7.1. (upgrade and migrations were succesfull)

But, when we try to access our banner items from the admin panel, the CPU gets to about 100% and loading takes forever...

Disabling the Orchard.Lists module will result in a working backend, however ofcourse we need the functionality. On a clean install everything works just fine, re-installing the module does not work.

Can anyone help us? Thanks!

No errors or time-outs are raised. When log4net is set to "show all", the folowing lines are repeated infinitely:
2013-11-14 12:42:24,185 [47] NHibernate.Engine.Cascade - done processing cascade NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for: Orchard.ContentManagement.Records.ContentItemVersionRecord
2013-11-14 12:42:24,183 [12] NHibernate.Engine.Cascade - done processing cascade NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for: Orchard.ContentManagement.Records.ContentItemRecord
2013-11-14 12:42:24,190 [12] NHibernate.Engine.Cascade - processing cascade NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for: Orchard.ContentManagement.Records.ContentItemVersionRecord
2013-11-14 12:42:24,188 [47] NHibernate.Engine.Cascade - processing cascade NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for: Orchard.ContentManagement.Records.ContentItemRecord
2013-11-14 12:42:24,196 [47] NHibernate.Engine.Cascade - done processing cascade NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for: Orchard.ContentManagement.Records.ContentItemRecord
2013-11-14 12:42:24,193 [12] NHibernate.Engine.Cascade - done processing cascade NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for: Orchard.ContentManagement.Records.ContentItemVersionRecord
2013-11-14 12:42:24,201 [12] NHibernate.Engine.Cascade - processing cascade NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for: Orchard.ContentManagement.Records.ContentItemRecord
2013-11-14 12:42:24,199 [47] NHibernate.Engine.Cascade - processing cascade NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for: Orchard.ContentManagement.Records.ContentItemVersionRecord
2013-11-14 12:42:24,206 [47] NHibernate.Engine.Cascade - done processing cascade NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for: Orchard.ContentManagement.Records.ContentItemVersionRecord
2013-11-14 12:42:24,204 [12] NHibernate.Engine.Cascade - done processing cascade NHibernate.Engine.CascadingAction+SaveUpdateCascadingAction for: Orchard.ContentManag
Coordinator
Nov 16, 2013 at 6:51 AM
Lists has been deprecated for a few versions now. Is there any way you could implement the same thing with non-deprecated features?
Marked as answer by leadsolutions on 11/16/2013 at 2:17 AM
Nov 16, 2013 at 10:16 AM
We digged a little deeper and found out the code which did not perform (line 104, admincontroller.cs)
_contentManager.Query<ContainerPart>(VersionOptions.Latest).List()
Looks simple enough, but with 1900 parts, it dit not procude a result.

What we tried to achieve was to add a menu item to the admin menu, which only lists items of our custom Content Type.
We ended up with adding an menu item like this:
.Add(item => item
                    .Caption(T("Berichten"))
                    .Position("2.1")
                    .Action(new RouteValueDictionary() { } )
                    .Url("~/Admin/Contents/List/Bericht"))
This solved it for us.