Copied to clipboard

Flag this post as spam?

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


  • Mark 2 posts 82 karma points
    Aug 22, 2022 @ 15:56
    Mark
    0

    Exception when creating a page with a Content Template

    Have replicated this issue on 2 websites using Umbraco 10.1.0 and SEO Checker 10.0.1.

    When I create a content template (both manually and copying an existing page) and attempt to use it we are thrown get error in the admin.

    As it is we cannot use Content Templates.

    Any ideas?

    Thanks

    Stacktrace

    An error occurred Value cannot be null. (Parameter 'Cannot find a content type with alias ')

    at SEOChecker.Common.Repository.Definition.DefinitionFactory.Single(String alias) atSEOChecker.Common.Helpers.ConfigurationHelper.GetDocumentTypeByAlias(SEOCheckerConfiguration configuration, String alias, String doctypeAlias) at SEOChecker.Common.Helpers.ConfigurationHelper.GetDocumentTypeByAlias(SEOCheckerConfiguration configuration, String alias) at SEOChecker.Common.PropertyEditors.DataValueEditors.RobotsTxtDataValueEditor.ToEditor(IProperty property, String culture, String segment) at Umbraco.Cms.Core.Models.Mapping.ContentPropertyBasicMapper1.Map(IProperty property, TDestination dest, MapperContext context) at Umbraco.Cms.Core.Models.Mapping.ContentPropertyDisplayMapper.Map(IProperty originalProp, ContentPropertyDisplay dest, MapperContext context) at Umbraco.Cms.Core.Mapping.UmbracoMapper.Map[TTarget](Object source, Type sourceType, MapperContext context) at Umbraco.Cms.Core.Mapping.UmbracoMapper.Map[TSource,TTarget](TSource source, MapperContext context) at System.Linq.Enumerable.SelectIPartitionIterator2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator1.ToList() at Umbraco.Cms.Core.Models.Mapping.TabsAndPropertiesMapper.MapProperties(IContentBase content, List1 properties, MapperContext context) at Umbraco.Cms.Core.Models.Mapping.TabsAndPropertiesMapper1.Map(TSource source, MapperContext context) at Umbraco.Cms.Web.BackOffice.Mapping.ContentMapDefinition.Map(IContent source, ContentVariantDisplay target, MapperContext context) at Umbraco.Cms.Core.Mapping.UmbracoMapper.Map[TTarget](Object source, Type sourceType, MapperContext context) at Umbraco.Cms.Core.Mapping.UmbracoMapper.Map[TTarget](Object source, MapperContext context) at Umbraco.Cms.Core.Models.Mapping.ContentVariantMapper.Map[TVariant](IContent source, MapperContext context) at Umbraco.Cms.Web.BackOffice.Mapping.ContentMapDefinition.Map[TVariant](IContent source, ContentItemDisplay1 target, MapperContext context) at Umbraco.Cms.Core.Mapping.UmbracoMapper.Map[TTarget](Object source, Type sourceType, MapperContext context) at Umbraco.Cms.Core.Mapping.UmbracoMapper.Map[TTarget](Object source, MapperContext context) at Umbraco.Cms.Web.BackOffice.Controllers.ContentController.GetEmptyBlueprint(Int32 blueprintId, Int32 parentId) at lambdamethod166838(Closure , Object , Object[] ) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync() at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync() --- End of stack trace from previous location --- 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.Awaited|260(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Aug 23, 2022 @ 12:22
    Richard Soeteman
    100

    Hi Mark,

    i can confirm this was a bug and is fixed in https://www.nuget.org/packages/SEOChecker/9.0.5-beta3 (v9( and https://www.nuget.org/packages/SEOChecker/10.0.2-beta2 (v10)

    New versions should be out next week.

    Best,

    Richard

  • Mark 2 posts 82 karma points
    Aug 23, 2022 @ 13:08
    Mark
    0

    Perfect. Thank you!

Please Sign in or register to post replies

Write your reply to:

Draft