Orchardcms 布局不会显示所有元素

Orchardcms 布局不会显示所有元素,orchardcms,Orchardcms,有时会发生一些事情,orchard layouts模块开始不正确的工作: 编辑内容项时,布局部件不显示任何布局元素和画布区域 查看内容项时,布局部件不显示某些布局元素,例如投影元素 在这种情况下,我启用和禁用输出缓存模块,该模块将重新开始正常工作 我也向codeplex发布了这条消息,这是一个严重错误,妨碍了生产现场的正常工作。也许你知道我该怎么做 日志中的一个错误 2015-03-31 09:08:38,594 [93] Orchard.ContentManagement.Drivers.Co

有时会发生一些事情,orchard layouts模块开始不正确的工作:

  • 编辑内容项时,布局部件不显示任何布局元素和画布区域
  • 查看内容项时,布局部件不显示某些布局元素,例如投影元素
  • 在这种情况下,我启用和禁用输出缓存模块,该模块将重新开始正常工作

    我也向codeplex发布了这条消息,这是一个严重错误,妨碍了生产现场的正常工作。也许你知道我该怎么做

    日志中的一个错误

    2015-03-31 09:08:38,594 [93] Orchard.ContentManagement.Drivers.Coordinators.ContentPartDriverCoordinator - Default - NullReferenceException thrown from IContentPartDriver by Orchard.Layouts.Drivers.LayoutPartDriver
    System.NullReferenceException: Object reference not set to an instance of an object.
       в Orchard.Layouts.Services.ElementFactory.Activate(ElementDescriptor descriptor, Action`1 initialize)
       в Orchard.Layouts.Services.ElementManager.ActivateElement(ElementDescriptor descriptor, Action`1 initialize)
       в Orchard.Layouts.Services.ContentModelMap.ToElement(IElementManager elementManager, DescribeElementsContext describeContext, JToken node)
       в Orchard.Layouts.Services.LayoutModelMapper.LoadElement(JToken node, Container parent, Int32 index, DescribeElementsContext describeContext)
       в Orchard.Layouts.Services.LayoutModelMapper.ParseEditorNode(JToken node, Container parent, Int32 index, DescribeElementsContext describeContext)
       в Orchard.Layouts.Services.LayoutModelMapper.<>c__DisplayClass10.<ParseEditorNode>b__d(JToken x, Int32 i)
       в System.Linq.Enumerable.<SelectIterator>d__7`2.MoveNext()
       в System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
       в System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
       в System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
       в Orchard.Layouts.Services.LayoutModelMapper.ParseEditorNode(JToken node, Container parent, Int32 index, DescribeElementsContext describeContext)
       в Orchard.Layouts.Services.LayoutModelMapper.<>c__DisplayClass10.<ParseEditorNode>b__d(JToken x, Int32 i)
       в System.Linq.Enumerable.<SelectIterator>d__7`2.MoveNext()
       в System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
       в System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
       в System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
       в Orchard.Layouts.Services.LayoutModelMapper.ParseEditorNode(JToken node, Container parent, Int32 index, DescribeElementsContext describeContext)
       в Orchard.Layouts.Services.LayoutModelMapper.<>c__DisplayClass10.<ParseEditorNode>b__d(JToken x, Int32 i)
       в System.Linq.Enumerable.<SelectIterator>d__7`2.MoveNext()
       в System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
       в System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
       в System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
       в Orchard.Layouts.Services.LayoutModelMapper.ParseEditorNode(JToken node, Container parent, Int32 index, DescribeElementsContext describeContext)
       в Orchard.Layouts.Services.LayoutModelMapper.<>c__DisplayClass10.<ParseEditorNode>b__d(JToken x, Int32 i)
       в System.Linq.Enumerable.<SelectIterator>d__7`2.MoveNext()
       в System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
       в System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
       в System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
       в Orchard.Layouts.Services.LayoutModelMapper.ParseEditorNode(JToken node, Container parent, Int32 index, DescribeElementsContext describeContext)
       в Orchard.Layouts.Services.LayoutModelMapper.<ToLayoutModel>d__6.MoveNext()
       в System.Linq.Buffer`1..ctor(IEnumerable`1 source)
       в System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
       в Orchard.Layouts.Drivers.LayoutPartDriver.<>c__DisplayClass12.<Editor>b__11()
       в Orchard.ContentManagement.Drivers.ContentPartDriver`1.<>c__DisplayClass15.<ContentShape>b__14(BuildShapeContext ctx) в d:\sites\orchard sites\rpa-mu.ru-2-new\src\Orchard\ContentManagement\Drivers\ContentPartDriver.cs:line 196
       в Orchard.ContentManagement.Drivers.ContentPartDriver`1.<>c__DisplayClass1b.<ContentShapeImplementation>b__1a(BuildShapeContext ctx) в d:\sites\orchard sites\rpa-mu.ru-2-new\src\Orchard\ContentManagement\Drivers\ContentPartDriver.cs:line 205
       в Orchard.ContentManagement.Drivers.ContentShapeResult.ApplyImplementation(BuildShapeContext context, String displayType) в d:\sites\orchard sites\rpa-mu.ru-2-new\src\Orchard\ContentManagement\Drivers\ContentShapeResult.cs:line  45
       в Orchard.ContentManagement.Drivers.ContentShapeResult.Apply(BuildEditorContext context) в d:\sites\orchard sites\rpa-mu.ru-2-new\src\Orchard\ContentManagement\Drivers\ContentShapeResult.cs: line 25
       в Orchard.ContentManagement.Drivers.Coordinators.ContentPartDriverCoordinator.<>c__DisplayClass10.<UpdateEditor>b__f(IContentPartDriver driver) в d:\sites\orchard sites\rpa-mu.ru-2-new\src\Orchard\ContentManagement\Drivers\Coordinators\ContentPartDriverCoordinator.cs:line 65
       в Orchard.InvokeExtensions.Invoke[TEvents](IEnumerable`1 events, Action`1 dispatch, ILogger logger) в d:\sites\orchard sites\rpa-mu.ru-2-new\src\Orchard\InvokeExtensions.cs:line 17
    
    2015-03-31 09:08:38594[93]Orchard.ContentManagement.Drivers.Coordinators.ContentPartDriverCoordinator-默认-Orchard.Layouts.Drivers.LayoutPartDriver从IContentPartDriver引发的NullReferenceException
    System.NullReferenceException:对象引用未设置为对象的实例。
    of Orchard.Layouts.Services.ElementFactory.Activate(ElementDescriptor描述符,操作'1初始化)
    of Orchard.Layouts.Services.ElementManager.ActivateElement(ElementDescriptor描述符,操作'1初始化)
    of Orchard.Layouts.Services.ContentModelMap.ToElement(IElementManager elementManager,DescribeElementsContext DescribeeContext,JToken节点)
    of Orchard.Layouts.Services.LayoutModelMapper.LoadElement(JToken节点、容器父级、Int32索引、DescribeElementsContext describeContext)
    of Orchard.Layouts.Services.LayoutModelMapper.ParseEditorNode(JToken节点、容器父节点、Int32索引、DescribeElementsContext describeContext)
    Ochard.Layouts.Services.LayoutModelMapper.c_uudisplayClass10.b_ud(JToken x,Int32 i)
    of System.Linq.Enumerable.d_u7`2.MoveNext()
    of System.Linq.Enumerable.WhereEnumerableInterator`1.MoveNext()
    of System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
    of System.Linq.Enumerable.ToList[TSource](IEnumerable`1源)
    of Orchard.Layouts.Services.LayoutModelMapper.ParseEditorNode(JToken节点、容器父节点、Int32索引、DescribeElementsContext describeContext)
    Ochard.Layouts.Services.LayoutModelMapper.c_uudisplayClass10.b_ud(JToken x,Int32 i)
    of System.Linq.Enumerable.d_u7`2.MoveNext()
    of System.Linq.Enumerable.WhereEnumerableInterator`1.MoveNext()
    of System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
    of System.Linq.Enumerable.ToList[TSource](IEnumerable`1源)
    of Orchard.Layouts.Services.LayoutModelMapper.ParseEditorNode(JToken节点、容器父节点、Int32索引、DescribeElementsContext describeContext)
    Ochard.Layouts.Services.LayoutModelMapper.c_uudisplayClass10.b_ud(JToken x,Int32 i)
    of System.Linq.Enumerable.d_u7`2.MoveNext()
    of System.Linq.Enumerable.WhereEnumerableInterator`1.MoveNext()
    of System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
    of System.Linq.Enumerable.ToList[TSource](IEnumerable`1源)
    of Orchard.Layouts.Services.LayoutModelMapper.ParseEditorNode(JToken节点、容器父节点、Int32索引、DescribeElementsContext describeContext)
    Ochard.Layouts.Services.LayoutModelMapper.c_uudisplayClass10.b_ud(JToken x,Int32 i)
    of System.Linq.Enumerable.d_u7`2.MoveNext()
    of System.Linq.Enumerable.WhereEnumerableInterator`1.MoveNext()
    of System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
    of System.Linq.Enumerable.ToList[TSource](IEnumerable`1源)
    of Orchard.Layouts.Services.LayoutModelMapper.ParseEditorNode(JToken节点、容器父节点、Int32索引、DescribeElementsContext describeContext)
    of Orchard.Layouts.Services.LayoutModelMapper.d_u6.MoveNext()
    系统Linq缓冲区'1..ctor(IEnumerable'1源)
    of System.Linq.Enumerable.ToArray[TSource](IEnumerable`1源)
    vf Orchard.Layouts.Drivers.LayoutPartDriver.c__显示类12.b__11()
    of Orchard.ContentManagement.Drivers.ContentPartDriver`1.c_uuudisplayClass15.b_uuu14(BuildShapeContext ctx)of d:\sites\Orchard sites\rpa mu.ru-2-new\src\Orchard\ContentManagement\Drivers\ContentPartDriver.cs:第196行
    of Orchard.ContentManagement.Drivers.ContentPartDriver`1.c_uuudisplayClass1B.b_uuu1A(BuildShapeContext ctx)of d:\sites\Orchard sites\rpa mu.ru-2-new\src\Orchard\ContentManagement\Drivers\ContentPartDriver.cs:第205行
    of Orchard.ContentManagement.Drivers.ContentShapeResult.ApplyImplementation(BuildShapeContext上下文,字符串显示类型)of d:\sites\Orchard sites\rpa mu.ru-2-new\src\Orchard\ContentManagement\Drivers\ContentShapeResult.cs:第45行
    of Orchard.ContentManagement.Drivers.ContentShapeResult.Apply(BuildEditorContext上下文)of d:\sites\Orchard sites\rpa mu.ru-2-new\src\Orchard\ContentManagement\Drivers\ContentShapeResult.cs:第25行
    of Orchard.ContentManagement.Drivers.Coordinator.ContentPartDriverCoordinator.c_uuDisplayClass10.b_uuf(IContentPartDriver驱动程序)of of of of d:\sites\Orchard sites\rpa mu.ru-2-new\src\Orchard\ContentManagement\Drivers\Coordinators\ContentPartDriverCoordinator.cs:第65行
    of Orchard.InvokeExtensions.Invoke[TEvents](IEnumerable`1事件,动作`1调度,ILogger记录器)of d:\sites\Orchard sites\rpa mu.ru-2-new\src\Orchard\InvokeExtensions.cs:第17行
    
    您能提交一个bug吗?问题是我造成的。我在今天的问题上添加了一条新的评论