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.
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.
[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.
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?
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!
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.
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.
Hey Jill, thanks for letting me know. Is the site multi-variant or single language?
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.
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(IEnumerable
1 source, Func
2 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.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
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?
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!
Hey,
Same here, same version, same problem... 😢
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.
Did you ever find a solution to this? I'm running into the same thing.
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.
See here: https://our.umbraco.com/forum/using-umbraco-and-getting-started/114500-error-on-linux-ubuntu-mcrmicrosoftcomdotnetaspnet80-jammy-docker-en-us-is-an-invalid-culture-identifier
is working on a reply...