OrchardCMS / OrchardCore

Orchard Core is an open-source modular and multi-tenant application framework built with ASP.NET Core, and a content management system (CMS) built on top of that framework.
https://orchardcore.net
BSD 3-Clause "New" or "Revised" License
7.36k stars 2.37k forks source link

Unable to add shape to the zone using the {% zone %} Liquid tag because the zone's type is "OrchardCore.DisplayManagement.PositionWrapper" instead of the expected Shape #14793

Open netwavebe opened 9 months ago

netwavebe commented 9 months ago

I'm getting a lot a errors in my logs:

OrchardCore.DisplayManagement.Liquid.Tags.ZoneTag|WARN|Unable to add shape to the zone using the {% zone %} Liquid tag because the zone's type is "OrchardCore.DisplayManagement.PositionWrapper" instead of the expected Shape

I have no idea what is causing this. The site does use a lot a layers, zones, etc...

Any ideas on how to debug this thing?

sebastienros commented 9 months ago

Based on this code https://github.com/OrchardCMS/OrchardCore/blob/57efd47589c0ddd3f08a8db96bc8ac7153a6f1e1/src/OrchardCore/OrchardCore.DisplayManagement.Liquid/Tags/ZoneTag.cs#L71-L82

and the doc

https://docs.orchardcore.net/en/latest/docs/reference/modules/Liquid/#zone

It is trying to find the zone by the name passed as an argument, but this name is not a correct zone (it's expected to be a shape). Do you know what is special to the zone you are pointing to?

ns8482e commented 7 months ago

Looks like you are trying to add to a zone that has been already rendered.