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 1665 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 1665 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 1665 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?

  • Shyamali Dasgupta 1 post 71 karma points
    Jul 24, 2024 @ 16:56
    Shyamali Dasgupta
    0

    Hi, I'm facing the same issue with Umbraco 14.1.1. Whenever I'm trying to save and preview content it shows "CultureNotFoundException: Culture is not supported. (Parameter 'name') invariant is an invalid culture identifier." If I manually type in en-us the page loads and shows the preview. Any help!

  • JessicaGUA 11 posts 122 karma points
    Aug 01, 2024 @ 07:11
    JessicaGUA
    0

    Hey,

    Same here, same version, same problem... 😢

  • npack 57 posts 323 karma points
    Sep 11, 2024 @ 17:03
    npack
    0

    Did you ever find a way to get your page previews working? I'm getting the exact same error, where the url ends with &culture=invariant.

  • npack 57 posts 323 karma points
    Sep 12, 2024 @ 14:50
    npack
    0

    Did you ever find a solution to this? I'm running into the same thing.

  • Biagio Paruolo 1619 posts 1912 karma points c-trib
    Aug 02, 2024 @ 15:14
    Biagio Paruolo
    0

    Same error at runtime ( not develop mode ).

    System.Globalization.CultureNotFoundException: Only the invariant culture is supported in globalization-invariant mode. See https://aka.ms/GlobalizationInvariantMode for more information. (Parameter 'name') | en-US is an invalid culture identifier.

  • Biagio Paruolo 1619 posts 1912 karma points c-trib
    Aug 02, 2024 @ 17:38
Please Sign in or register to post replies

Write your reply to:

Draft