Copied to clipboard

Flag this post as spam?

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


  • Wesley Herpoelaert 52 posts 123 karma points
    Jan 02, 2019 @ 15:38
    Wesley Herpoelaert
    0

    Content picker not working in DocTypeGridEditorSurfaceController

    Hi,

    When I try to get the value of a Content picker (MultiNodeTreePicker2) in DocTypeGridEditorSurfaceController, I receive the following error:

    Value cannot be null. Parameter name: g
    

    I'm using the latest version of Umbraco (7.12.4) and DTGE (0.6.0). With version 0.5.0 everything was working fine.

    Cheers Wesley

  • Lee Kelleher 3863 posts 14495 karma points MVP 8x admin c-trib
    Jan 02, 2019 @ 16:20
    Lee Kelleher
    0

    Hi Wesley,

    Is there any more to the error message, e.g. the stack-trace? As I'm not sure where this error is coming from.

    Thanks,
    - Lee

  • Wesley Herpoelaert 52 posts 123 karma points
    Jan 02, 2019 @ 16:31
    Wesley Herpoelaert
    0

    Hi Lee,

    This is the result of the stacktrace

        at System.Guid..ctor(String g)
        at umbraco.presentation.preview.PreviewContent.EnsureInitialized(User user, String previewSet, Boolean validate, Action initialize)
        at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.<>c.<get_GetXmlDelegate>b__42_0(UmbracoContext context, Boolean preview)
        at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.GetXml(UmbracoContext umbracoContext, Boolean preview)
        at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.GetById(UmbracoContext umbracoContext, Boolean preview, Int32 nodeId)
        at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.GetById(UmbracoContext umbracoContext, Boolean preview, Guid nodeKey)
        at Umbraco.Web.PublishedCache.ContextualPublishedContentCache.GetById(Boolean preview, Guid contentKey)
        at Umbraco.Web.PublishedContentQuery.TypedContent(Guid id)
        at Umbraco.Web.PublishedContentQueryExtensions.TypedContent(ITypedPublishedContentQuery contentQuery, Udi id)
        at Umbraco.Web.PropertyEditors.ValueConverters.MultiNodeTreePickerPropertyConverter.GetPublishedContent[T](T nodeId, UmbracoObjectTypes& actualType, UmbracoObjectTypes expectedType, Func`2 contentFetcher)
        at Umbraco.Web.PropertyEditors.ValueConverters.MultiNodeTreePickerPropertyConverter.ConvertSourceToObject(PublishedPropertyType propertyType, Object source, Boolean preview)
        at Our.Umbraco.DocTypeGridEditor.Models.DetachedPublishedProperty.<.ctor>b__7_1()
        at System.Lazy`1.CreateValue()
        at System.Lazy`1.LazyInitValue()
        at Umbraco.Web.PublishedPropertyExtension.GetValue[T](IPublishedProperty property, Boolean withDefaultValue, T defaultValue)
        at Umbraco.Web.PublishedContentExtensions.GetPropertyValue[T](IPublishedContent content, String alias)
        at WebApplication4.App_Code.TestSurfaceController.Test() in c:\Users\WP-27\documents\visual studio 2017\projects\webapplication4\webapplication4\App_Code\TestSurfaceController.cs:line 16
        at lambda_method(Closure , ControllerBase , Object[] )
        at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
        at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
        at System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState)
        at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult)
        at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult)
        at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d()
        at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
    

    Wesley

  • Lee Kelleher 3863 posts 14495 karma points MVP 8x admin c-trib
    Jan 02, 2019 @ 16:53
    Lee Kelleher
    0

    Thanks Wesley!

    I've opened an issue on our GitHub repo. I'll investigate further when I next look at DTGE bugs, (or if someone else wants to collaborate on fixing it?)
    https://github.com/umco/umbraco-doc-type-grid-editor/issues/124

  • Lee Kelleher 3863 posts 14495 karma points MVP 8x admin c-trib
    Jan 14, 2019 @ 11:29
    Lee Kelleher
    102

    The fix for this is now available in Doc Type Grid Editor v0.6.1.

Please Sign in or register to post replies

Write your reply to:

Draft