Copied to clipboard

Flag this post as spam?

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


  • Thomas 319 posts 606 karma points c-trib
    Nov 25, 2021 @ 12:14
    Thomas
    0

    Nested content not showing fields. in Umb9

    Hi

    After updating to Umb9 some of my nested Content are not showing the fields on it.

    enter image description here

    This is in Umb8

    enter image description here

    Not getting any errors or anything.

  • Thomas 319 posts 606 karma points c-trib
    Nov 25, 2021 @ 12:38
    Thomas
    0

    When I select a nested content that are not working and try to save and publish then I get this error:

    System.NullReferenceException, System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e: Object reference not set to an instance of an object.
    

    at Umbraco.Cms.Core.PropertyEditors.NestedContentPropertyEditor.NestedContentValidator.GetElementTypeValidation(Object value)+MoveNext()
       at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
       at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
       at Umbraco.Cms.Core.PropertyEditors.ComplexEditorValidator.Validate(Object value, String valueType, Object dataTypeConfiguration)
       at Umbraco.Cms.Core.PropertyEditors.DataValueEditor.<>c__DisplayClass17_0.<Validate>b__0(IValueValidator v)
       at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.ToList()
       at Umbraco.Cms.Core.PropertyEditors.DataValueEditor.Validate(Object value, Boolean required, String format)
       at Umbraco.Cms.Core.Services.Implement.PropertyValidationService.ValidatePropertyValue(IDataEditor editor, IDataType dataType, Object postedValue, Boolean isRequired, String validationRegExp, String isRequiredMessage, String validationRegExpMessage)+MoveNext()
       at Umbraco.Cms.Web.BackOffice.Filters.ContentModelValidator`3.ValidatePropertyValue(TModelSave model, TModelWithProperties modelWithProperties, IDataEditor editor, ContentPropertyDto property, Object postedValue, ModelStateDictionary modelState)
       at Umbraco.Cms.Web.BackOffice.Filters.ContentModelValidator`3.ValidatePropertiesData(TModelSave model, TModelWithProperties modelWithProperties, ContentPropertyCollectionDto dto, ModelStateDictionary modelState)
       at Umbraco.Cms.Web.BackOffice.Filters.ContentSaveValidationAttribute.ContentSaveValidationFilter.OnActionExecutingAsync(ActionExecutingContext context)
       at Umbraco.Cms.Web.BackOffice.Filters.ContentSaveValidationAttribute.ContentSaveValidationFilter.OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
       at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
    --- End of stack trace from previous location ---
       at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
    
  • Thomas 319 posts 606 karma points c-trib
    Nov 25, 2021 @ 13:27
    Thomas
    0

    And also this:

    enter image description here

  • Sören Deger 733 posts 2844 karma points c-trib
    Oct 26, 2022 @ 18:09
    Sören Deger
    0

    Hi Thomas,

    have you solved this? I have the same issue after upgrade vom v8.16.0 to v8.18.5.

    Best, Sören

  • Thomas 319 posts 606 karma points c-trib
    Oct 26, 2022 @ 20:30
    Thomas
    1

    Hi Sören.

    As I remember it, then I went through alle the nested content doctype elements and checked the tap names.

    We use translation on those (#name) it didn’t like that 😅

  • Sören Deger 733 posts 2844 karma points c-trib
    Oct 26, 2022 @ 20:40
    Sören Deger
    0

    Hi Thomas, thank you! Removing dictionaries in my tab names solved my problem. But it's strange, that this works in v8.16.0 and anything was changed in 8.18.x.

    Best, Sören

Please Sign in or register to post replies

Write your reply to:

Draft