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

Unable to run installer if data type dosn't exist #14

Open
Lantzify opened this issue Oct 1, 2024 · 3 comments
Open

Unable to run installer if data type dosn't exist #14

Lantzify opened this issue Oct 1, 2024 · 3 comments

Comments

@Lantzify
Copy link

Lantzify commented Oct 1, 2024

Hello! We are in the process of updating our Umbraco sites. And with that. Our Umbraco Commerce stores as well. We've encountered an issue with the installer. It looks like the MediaPicker3SingleImageGuid wasn't added with our Umbraco upgrade. And due to this the Umbraco Commerce installer crashed and gave us the error "null data type". (It didn't say which though). This seems like a very niche problem and I am unsure if something should be done about this. But I just wanted to bring this to your attention juts in case.

This regards Umbraco Commerce 13

@mattbrailsford
Copy link
Contributor

Can you share the steps you took to resolve the issue? Maybe that would be enough to document here such that if anyone else comes across the issue, your steps might help.

@Lantzify
Copy link
Author

Lantzify commented Oct 4, 2024

Absolutely! This is how I solved it!

  1. In Umbraco. Create a new data type and select Umbraco.MediaPicker3
  2. Open database and edit table umbracoNode. Find the newly created datatype and edit uniqueId to ad9f0cf2-bda2-45d5-9ea1-a63cfc873fd3

That should make it run! But I think some sort of logging should be added? Because now it's just a window that's shown.

@wr-dev
Copy link

wr-dev commented Feb 6, 2025

On the install, from an upgrade from Vendr 8 + Checkout (sad to see it go Matt! But glad to see you're still around) we also didn't have the datatype. The instructions from @Lantzify helped. So now the nodes are installed

However, no templates. And no default template for the doc types

https://github.com/umbraco/Umbraco.Commerce.Checkout/tree/release-13.1.2/src/Umbraco.Commerce.Checkout/Views/UmbracoCommerceCheckout

So, copied those templates into my Views (Templates in the Views root, partials etc in a the folder, called Views/UmbracoCommerceCheckout, then went through adding the templates in Umbraco, starting with UmbracoCommerceCheckoutLayout. Then adding the rest below that (except UmbracoCommerceCheckoutPage and UmbracoCommerceCheckoutPaymentPage which have Layout=null)

Image

Then, go through each of the installed datatypes and update their default template.

Then, apply all the templates to [Umbraco Commerce Checkout] Checkout Step Page and apply UmbracoCommerceCheckoutPage to [Umbraco Commerce Checkout] Checkout Page

Then, go through each page and apply/guess which template should be used and save/publish.

I added all of the imports from https://github.com/umbraco/Umbraco.Commerce.Checkout/blob/release-13.1.2/src/Umbraco.Commerce.Checkout/Views/UmbracoCommerceCheckout/_ViewImports.cshtml into my _ViewImports.cshtml

/checkout doesn't redirect, but that's a pretty easy fix. /checkout/customer-information/ does render. So if not entirely there, we're close!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants