Copied to clipboard

Flag this post as spam?

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


  • Jill Maxwell 11 posts 33 karma points
    Mar 10, 2022 @ 20:26
    Jill Maxwell
    0

    Error on Preview Culture is Not Supported

    In Umbraco 8.17 using Workflow 2.1.1 When submitting an edit for approval. When I click on the preview screen I get

    Server Error in '/' Application. Culture is not supported. Parameter name: name undefined is an invalid culture identifier. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Globalization.CultureNotFoundException: Culture is not supported. Parameter name: name undefined is an invalid culture identifier.

  • Nathan Woulfe 447 posts 1664 karma points MVP 5x hq c-trib
    Mar 10, 2022 @ 20:55
    Nathan Woulfe
    0

    Hey Jill, thanks for letting me know. Is the site multi-variant or single language?

  • Nathan Woulfe 447 posts 1664 karma points MVP 5x hq c-trib
    Mar 10, 2022 @ 21:59
    Nathan Woulfe
    0

    Also if you could share the full trace from the log, that would be helpful. I haven't been able to reproduce on variant or invariant content using latest Plumber release.

  • Jill Maxwell 11 posts 33 karma points
    Mar 10, 2022 @ 23:11
    Jill Maxwell
    0

    This is a single language (en-us) site

    Here's the stack trace

    [CultureNotFoundException: Culture is not supported. Parameter name: name undefined is an invalid culture identifier.] System.Globalization.CultureInfo.GetCultureInfo(String name) +12832021 Umbraco.Web.Routing.ContentFinderByIdPath.TryFindContent(PublishedRequest frequest) in D:\a\1\s\src\Umbraco.Web\Routing\ContentFinderByIdPath.cs:55 Umbraco.Web.Routing.<>cDisplayClass190.0(IContentFinder finder) in D:\a\1\s\src\Umbraco.Web\Routing\PublishedRouter.cs:427 System.Linq.Enumerable.Any(IEnumerable1 source, Func2 predicate) +140 Umbraco.Web.Routing.PublishedRouter.FindPublishedContent(PublishedRequest request) in D:\a\1\s\src\Umbraco.Web\Routing\PublishedRouter.cs:424 Umbraco.Web.Routing.PublishedRouter.FindPublishedContentAndTemplate(PublishedRequest request) in D:\a\1\s\src\Umbraco.Web\Routing\PublishedRouter.cs:386 Umbraco.Web.Routing.PublishedRouter.PrepareRequest(PublishedRequest request) in D:\a\1\s\src\Umbraco.Web\Routing\PublishedRouter.cs:131 Umbraco.Web.UmbracoInjectedModule.ProcessRequest(HttpContextBase httpContext) in D:\a\1\s\src\Umbraco.Web\UmbracoInjectedModule.cs:134 Umbraco.Web.UmbracoInjectedModule.

  • Jill Maxwell 11 posts 33 karma points
    Mar 11, 2022 @ 17:15
    Jill Maxwell
    0

    Some more info...

    The preview url fails to load the "en-us" instead the url it goes to ends with /umbraco/preview/?id=1797#?culture=undefined

    If I manually type in en-us the page loads and shows the preview

  • Nathan Woulfe 447 posts 1664 karma points MVP 5x hq c-trib
    Mar 15, 2022 @ 23:18
    Nathan Woulfe
    0

    Hi Jill

    Is this happening on all workflows or a subset? I'm still unable to reproduce - the code responsible for generating the preview URL adds the culture if one exists, but should never be setting the value to 'undefined', as that would indicated the stored value for the culture is 'undefined' (as in, the actual string 'undefined')

    There was a change in the component in September last year to resolve a related issue, which was included in v2.1.1, so should be working correctly.

    I'm not sure what else to try - maybe inspecting the workflow object in the database, to see what is stored for the variant key?

Please Sign in or register to post replies

Write your reply to:

Draft