Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Previews missing after updating to 1.10.0 #64

Closed
OwainJ opened this issue Aug 22, 2024 · 12 comments
Closed

Previews missing after updating to 1.10.0 #64

OwainJ opened this issue Aug 22, 2024 · 12 comments
Labels
bug Something isn't working

Comments

@OwainJ
Copy link
Sponsor

OwainJ commented Aug 22, 2024

Which Umbraco.Community.BlockPreview version are you using?

1.10.0

Which Umbraco version are you using? For example: 10.4.0 - don't just write v10

13.4.1

Bug summary

After updating to v1.10.0, the block previews are no longer shown.
image

There are no errors in the browser's console, or the Umbraco log.

v1.9.1 works as expected:
image

The above screenshots are taken from a project that uses the Block List, but I have also observed the issue on a project that uses the Block Grid.

Steps to reproduce

  • Update to v1.10.0
  • Observe if the previews are still shown

Expected result / actual result

No response

@OwainJ OwainJ added the bug Something isn't working label Aug 22, 2024
@rickbutterfield
Copy link
Owner

rickbutterfield commented Aug 22, 2024

Thanks for raising so quickly @OwainJ! I've deprecated this version on NuGet as I have managed to replicate, but only when installed from there. Will do some digging and let you know once there's a new version out.

@rickbutterfield
Copy link
Owner

@OwainJ out of curiosity, is the doctype you're looking at primarily made up of compositions?

@OwainJ
Copy link
Sponsor Author

OwainJ commented Aug 22, 2024

@rickbutterfield Yup, it is, the Block List property is from a composition.
image

And it's the same on my other project, where the Block Grid is also from a composition.

@rickbutterfield
Copy link
Owner

@OwainJ Thought so! Please give v1.10.1 a go and let me know how you get on 😁

@OwainJ
Copy link
Sponsor Author

OwainJ commented Aug 22, 2024

Hi @rickbutterfield, unfortunately I'm seeing the same thing in v1.10.1; downgrading to v1.9.1 and they show up again.
No errors in the console or log either.

I'll see if I can recreate this on a vanilla project tomorrow and share a .zip here, although I'm on an Umbraco course in the morning, so would be in the afternoon sometime.

@katie366
Copy link

I am having the same issue after installing version 1.10.3 in 13.4.1. Did anyone find a solution?
Thank you

@OwainJ
Copy link
Sponsor Author

OwainJ commented Sep 11, 2024

Apologies, I didn't get around to testing the new release and it completely slipped my mind!

I've just done a quick test with a fresh install and I get the same issue:
image

Here's a .zip of the test project: BlockPreview_1-10-3_Test.zip

@rickbutterfield
Copy link
Owner

rickbutterfield commented Sep 13, 2024

Thanks for the test project @OwainJ! The issue here appears to be that ModelsBuilder isn't enabled. Unfortunately the package doesn't work without this enabled as it tries to strongly type the data coming from the backoffice!

I'll add a note to the README about having ModelsBuilder enabled. Is there a use case for you where you'd want to use this without ModelsBuilder? (or @katie366 - I'd be curious to see if it's the same for you!)

@OwainJ
Copy link
Sponsor Author

OwainJ commented Sep 13, 2024

Ahh what silly mistake lol my bad! I have no use case, I just forgot to enable it on the test project.

I've re-tested with Models Builder enabled, and can confirm that it works with the Block Grid, but weirdly, the Block List previews seem to just repeat the preview of the first block:
Block List Preview Test

Here's an updated test project with models builder enabled:
BlockPreviewTest_1-10-3_Test-2.zip

I also tested on one of my client's projects, where v1.9.1 works as expected, v1.10.1 showed no previews, and v1.10.3 has the weird repeating issue on Block List previews:

v1.9.1 screenshot

image

v1.10.1 screenshot

image

v1.10.3 screenshot

image

Edit: The blocklist on v1.10.2 behaves the same as v1.10.3

@katie366
Copy link

I have also enabled Models Builder, and have upgraded to v1.10.3 and have got it working. I don't have the repetition or the preview blocks.

Thank you

@rickbutterfield
Copy link
Owner

@OwainJ v1.10.4 is being released right now, with a fix for this!

@OwainJ
Copy link
Sponsor Author

OwainJ commented Sep 13, 2024

Legend 😄 happy to report that v1.10.4 is working nicely!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants