WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In OC 2.1.7 the display of the content item shape give me this exception:
Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware|ERROR|An unhandled exception has occurred while executing the request. System.NotImplementedException: The method or operation is not implemented.
at OrchardCore.DisplayManagement.PositionWrapper.get_Items()
at ItemsGetter(Object)
at System.Text.Json.Serialization.Metadata.JsonPropertyInfo`1.GetMemberAndWriteJson(Object obj, WriteStack& state, Utf8JsonWriter writer)
at System.Text.Json.Serialization.Converters.ObjectDefaultConverter`1.OnTryWrite(Utf8JsonWriter writer, T value, JsonSerializerOptions options, WriteStack& state)
at System.Text.Json.Serialization.JsonConverter`1.TryWrite(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state)
...
The content item loaded by Content[Model.Properties.Alias] contains a BagPart (named Columns) that contains other content items that have a FlowPart.
If I call directly in Info-Footer.liquid the code in content item Detail shape the exception is never throw.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Probably is a bad use of code. I call a shape in this way:
in
Info-Footer.liquidI retrieve the content item and call this code:In OC 2.1.7 the display of the content item shape give me this exception:
The content item loaded by
Content[Model.Properties.Alias]contains aBagPart(named Columns) that contains other content items that have aFlowPart.If I call directly in
Info-Footer.liquidthe code in content itemDetailshape the exception is never throw.The
Detailshape code is this:Why this code never work anymore? What I miss?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions