rickbutterfield / Umbraco.Community.BlockPreview

Easy to use rich HTML backoffice previews for the Umbraco Block List and Block Grid editors.
MIT License
15 stars 10 forks source link

Error rendering preview for block "Value cannot be null. (Parameter 'name')" #20

Closed claushingebjerg closed 1 year ago

claushingebjerg commented 1 year ago

After succesfull install and build i get the following error when viewing a page in the backoffice, with a block grid item Skærmbillede 2023-05-23 kl  09 53 07

Error rendering preview for block 
System.ArgumentNullException: Value cannot be null. (Parameter 'name')
   at System.Globalization.CultureInfo..ctor(String name, Boolean useUserOverride)
   at Umbraco.Community.BlockPreview.Services.BackOfficePreviewService.SetCulture(String culture)
   at Umbraco.Community.BlockPreview.Services.BackOfficeGridPreviewService.GetMarkupForBlock(BlockValue blockValue, ControllerContext controllerContext, String culture)
   at Umbraco.Community.BlockPreview.Controllers.BlockPreviewApiController.PreviewMarkup(BlockValue data, Int32 pageId, Boolean isGrid, String culture)

I have set the custom view as described Skærmbillede 2023-05-23 kl  09 42 13

I have set a culture as well (as a desperate attempt :)) Skærmbillede 2023-05-23 kl  09 46 00

rickbutterfield commented 1 year ago

I believe this may be the same issue raised in #18, I'll be reviewing that PR this week and hopefully making a new 1.3.0 release

karltynan commented 1 year ago

This is exactly the same issue I am seeing - can't wait to see 1.3.0 released to fix it 🙂

claushingebjerg commented 1 year ago

Me too, it's gonna be awesome :) #H5YR to rickbutterfield for a great package

rickbutterfield commented 1 year ago

Thanks for confirming, aiming to release 1.3.0 just before Codegarden!

tony-gledhill commented 1 year ago

Hi @rickbutterfield, do you have an estimated release date for 1.3.0 please :)

rickbutterfield commented 1 year ago

@tony-gledhill @karltynan @claushingebjerg v1.3.0 has just been released on NuGet! 🎉

karltynan commented 1 year ago

Wonderful news - thank you so much for your time and effort on this! 😃 #h5yr