Skip to content

Fixing Sitecore.Mvc.Exceptions.CyclicRenderingException.#48

Open
kmazzoni wants to merge 1 commit intoVelir:devfrom
kmazzoni:dev
Open

Fixing Sitecore.Mvc.Exceptions.CyclicRenderingException.#48
kmazzoni wants to merge 1 commit intoVelir:devfrom
kmazzoni:dev

Conversation

@kmazzoni
Copy link
Copy Markdown
Member

@kmazzoni kmazzoni commented Sep 4, 2018

Sitecore uses the ToString method on the Renderer class to try and detect cyclic renderings. Since MiniProfilerRenderer wraps the implementing renderer, Sitecore is detecting a cyclic rendering scenario. This is currently breaking the Forms builder in Sitecore.

To fix, I've overriden the ToString method on MiniProfilerRenderer and returning the ToString value of the inner renderer.

Sitecore uses the ToString method on the Renderer class to try and detect cyclic renderings.  Since MiniProfilerRenderer wraps the implementing renderer, Sitecore is detecting a cyclic rendering scenario.  This is currently breaking the Forms builder in Sitecore.

To fix, I've overriden the ToString method on MiniProfilerRenderer and returning the ToString value of the inner renderer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant