Copied to clipboard

Flag this post as spam?

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

  • Lindsay Alford 2 posts 83 karma points
    Apr 13, 2020 @ 16:12
    Lindsay Alford

    Enable preview on Umbraco V7.15.4To replicate:Received an error from the serverStacktrace

    Hi Lee,

    I've noticed an issue on V7.15.4 with Stacked Content recently.

    I'm currently using Stacked Content with modules to build up a page. I did see a post where you have said preview doesn't work unless its the full page. Maybe the solution to the issue below is to turn off enable preview :).

    To replicate:

    If you have enabled content checked on the data type then on the page where you have the data type on it you get the following error. If you don't check enabled content on the data type then you don't get the error. Umbraco preview looks ok and front end is fine as far as I can tell.

    enter image description here

    Received an error from the server

    An error occured Value cannot be null. Parameter name: view

    Exception Details System.ArgumentNullException: Value cannot be null. Parameter name: view


    at System.Web.Mvc.ViewContext..ctor(ControllerContext controllerContext, IView view, ViewDataDictionary viewData, TempDataDictionary tempData, TextWriter writer) at Our.Umbraco.StackedContent.Web.Helpers.ViewHelper.RenderPartial(String partialName, Object model) at Our.Umbraco.StackedContent.Web.Controllers.StackedContentApiController.GetPreviewMarkup(JObject item, Int32 pageId) at lambda_method(Closure , Object , Object[] ) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>cDisplayClass6_2.2(Object instance, Object[] methodParameters)

  • Lee Kelleher 4020 posts 15796 karma points MVP 13x admin c-trib
    Apr 14, 2020 @ 07:56
    Lee Kelleher

    Hi Lindsay,

    The previewer is looking for a partial-view for the doc type's alias in the "~/Views/Partials/Stack/" folder. It might be missing?

    Nik wrote up some notes on this, as our docs are non-existent, sorry!

    Hope this helps?

    - Lee

  • Lindsay Alford 2 posts 83 karma points
    Apr 14, 2020 @ 10:25
    Lindsay Alford

    Hi Lee,

    With a bit of tweaking at my end it worked a treat. Thanks for pointing me in the right direction!


Please Sign in or register to post replies

Write your reply to: