Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tom Steer 161 posts 596 karma points
    Apr 07, 2014 @ 17:41
    Tom Steer
    1

    RenderMacroContent Contour

    Hello,

    I'm currently loading content via an ajax call to a base method. However i'm having issues when the RTE contains a contour form. I have tried the following but it currently errors:

    flowResult.Outcome = library.RenderMacroContent(Umbraco.Web.Templates.TemplateUtilities.ParseInternalLinks(node.GetProperty<string>("outcome")), node.Id);
    

    I currently get the following:

    Error loading MacroEngine script (file: MvcRenderContourForm.cshtml)

    With an error in the logs of:

        2014-04-07 10:35:20,671 [10] WARN  umbraco.macro - [Thread 9] Error loading MacroEngine script (file: MvcRenderContourForm.cshtml, Type: ''. Exception: System.NullReferenceException: Object reference not set to an instance of an object.
       at umbraco.NodeFactory.Node.getCurrentNodeId()
       at umbraco.macro.loadMacroScript(MacroModel macro)
       at umbraco.macro.renderMacro(Hashtable pageElements, Int32 pageId)
    

    Many Thanks,

    Tom

  • Tom Steer 161 posts 596 karma points
    Apr 08, 2014 @ 21:58
    Tom Steer
    0

    Any advice would be greatful... really need to find a solution to this.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies