Copied to clipboard

Flag this post as spam?

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


  • Søren Kottal 702 posts 4497 karma points MVP 5x c-trib
    Mar 11, 2021 @ 08:27
    Søren Kottal
    0

    Error occured when trying to set target site for new set (2.4.13)

    Just installed Translation Manager 2.4.13, and trying to set up some translation sets.

    When I select my target site, the backend API call errors, and I get stuck.

    The error is

    StackTrace: "   at Umbraco.Web.Models.ContentExtensions.GetCulture(UmbracoContext umbracoContext, IDomainService domainService, ILocalizationService localizationService, IContentService contentService, Int32 contentId, String contentPath, Uri current)
    ↵   at Umbraco.Web.Models.ContentExtensions.GetCulture(IContent content, Uri current)
    ↵   at Jumoo.TranslationManager.Core.Controllers.TranslationSetApiController.GetContentInfo(Int32 id)
    ↵   at lambda_method(Closure , Object , Object[] )
    ↵   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_2.<GetExecutor>b__2(Object instance, Object[] methodParameters)
    ↵   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)
    ↵--- End of stack trace from previous location where exception was thrown ---
    ↵   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    ↵   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    ↵   at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__1.MoveNext()
    ↵--- End of stack trace from previous location where exception was thrown ---
    ↵   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    ↵   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    ↵   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
    ↵--- End of stack trace from previous location where exception was thrown ---
    ↵   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    ↵   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
    ↵--- End of stack trace from previous location where exception was thrown ---
    ↵   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    ↵   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    ↵   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__5.MoveNext()
    ↵--- End of stack trace from previous location where exception was thrown ---
    ↵   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    ↵   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    ↵   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
    ↵--- End of stack trace from previous location where exception was thrown ---
    ↵   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    ↵   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
    ↵--- End of stack trace from previous location where exception was thrown ---
    ↵   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    ↵   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    ↵   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__5.MoveNext()
    ↵--- End of stack trace from previous location where exception was thrown ---
    ↵   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    ↵   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    ↵   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
    ↵--- End of stack trace from previous location where exception was thrown ---
    ↵   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    ↵   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
    ↵--- End of stack trace from previous location where exception was thrown ---
    ↵   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    ↵   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    ↵   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__5.MoveNext()
    ↵--- End of stack trace from previous location where exception was thrown ---
    ↵   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    ↵   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    ↵   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
    ↵--- End of stack trace from previous location where exception was thrown ---
    ↵   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    ↵   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
    ↵--- End of stack trace from previous location where exception was thrown ---
    ↵   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    ↵   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    ↵   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__5.MoveNext()
    ↵--- End of stack trace from previous location where exception was thrown ---
    ↵   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    ↵   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    ↵   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
    ↵--- End of stack trace from previous location where exception was thrown ---
    ↵   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    ↵   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__6.MoveNext()
    ↵--- End of stack trace from previous location where exception was thrown ---
    ↵   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    ↵   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    ↵   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__5.MoveNext()
    ↵--- End of stack trace from previous location where exception was thrown ---
    ↵   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    ↵   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    ↵   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__5.MoveNext()
    ↵--- End of stack trace from previous location where exception was thrown ---
    ↵   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    ↵   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    ↵   at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__3.MoveNext()
    ↵--- End of stack trace from previous location where exception was thrown ---
    ↵   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    ↵   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    ↵   at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__3.MoveNext()
    ↵--- End of stack trace from previous location where exception was thrown ---
    ↵   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    ↵   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    ↵   at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__3.MoveNext()
    ↵--- End of stack trace from previous location where exception was thrown ---
    ↵   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    ↵   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    ↵   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__6.MoveNext()
    ↵--- End of stack trace from previous location where exception was thrown ---
    ↵   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    ↵   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__6.MoveNext()
    ↵--- End of stack trace from previous location where exception was thrown ---
    ↵   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    ↵   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    ↵   at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__15.MoveNext()"
    

    Anyone know a solution? It's not all sites in the solution that errors like this. I've been able to create 3 sets, but I need 2 more.

  • Kevin Jump 2310 posts 14695 karma points MVP 7x c-trib
    Mar 11, 2021 @ 10:10
    Kevin Jump
    0

    Hi,

    is there a bit missing from the top of the erorr ? (like Object not found or something) -

    i will have to see if i can replicate on the sites that fail :

    • do they have culture & hostname settings ? (if so what cultures do they have set?)
    • are you using multiple sites or all languages in the same site (vorto?)

    Kevin

  • Søren Kottal 702 posts 4497 karma points MVP 5x c-trib
    Mar 11, 2021 @ 10:22
    Søren Kottal
    0

    Arh sorry, its a null exception

    "Object reference not set to an instance of an object." ExceptionType: "System.NullReferenceException

    Only two of the sites have culture & hostname settings, and they have all languages in the same site (using Vorto)

  • Kevin Jump 2310 posts 14695 karma points MVP 7x c-trib
    Mar 11, 2021 @ 10:34
    Kevin Jump
    0

    Hi.

    • Do you have a list of those cultures ?
    • Also the languages installed in the site ?

    and Umbraco version too if you can (looking at the source there where are few changed to these methods, so i might need to install a specific version to recreate)

  • Kevin Jump 2310 posts 14695 karma points MVP 7x c-trib
    Mar 11, 2021 @ 10:40
    Kevin Jump
    0

    For the site in question it is probably to do with the language set in the Culture - Language box enter image description herebox

    I suspect its a specific language setup or something that is triggering the error inside Umbraco, but not sure what - so good if you can also get this info for the breaking site.

  • Søren Kottal 702 posts 4497 karma points MVP 5x c-trib
    Mar 11, 2021 @ 10:57
    Søren Kottal
    0

    I got one of the sites working now. Don't know why :(

    But the last one also fails when setting the source site.

    Culture and hostnames settings for that site is empty (as it is for 2 other sites, that worked)

    culture and hostnames

    I have en-US, da-DK, de-DE and fr-FR installed as languages

    languages

    Umbraco version is 7.15.7

  • Kevin Jump 2310 posts 14695 karma points MVP 7x c-trib
    Mar 11, 2021 @ 11:29
    Kevin Jump
    0

    I suspect internal Umbraco shenanigans :(

    We pass the content id to the GetCulture extension method (see https://github.com/umbraco/Umbraco-CMS/blob/v7/dev/src/Umbraco.Web/Models/ContentExtensions.cs#L21)

    (we null check the content before it is sent)

    if you follow the logic of that extension methoid, i am not sure where the null can be coming from, and it should always return 'something' (the defaultCulture is the fall back)

    I will have a look in more detail, but not-working then working makes me suspicious its some caching or something :(

Please Sign in or register to post replies

Write your reply to:

Draft