ArnoldV / Our.Umbraco.GMaps

Basic Google Maps with autocomplete property editor for Umbraco 8 and beyond!
MIT License
13 stars 29 forks source link

Json exception since upgrade from 2.1.3 to 3.0.2 #179

Open JuEocene opened 3 days ago

JuEocene commented 3 days ago

Hello,

A few days ago, we upgraded Umbraco from version 10 to 13. As part of this, we also updated Umbraco GMaps. Since then, we've encountered some issues.

When trying to access a page that uses a doctype with a GMaps property, we receive the following error: JsonException: The JSON value could not be converted to System.Nullable`1[Our.Umbraco.GMaps.Models.MapType].

I have attempted several fixes, including:

Removing the custom map style JSON. Changing the map type from "styled map" to "roadmap," "hybrid," "satellite," and "terrain." Unfortunately, none of these worked, and they also made the application unstable. I encounter the following error:

ModelBindingException: Cannot bind source content type Umbraco.Cms.Web.Common.PublishedModels.Homepage to model type Umbraco.Cms.Web.Common.PublishedModels.Master. Both view and content models are in-memory generated, with different versions. The application is in an unstable state and should be restarted.

This forces me to restart the application to recover.

Would you have any insight into what might be causing these issues, or potential solutions?

Thank you for your help!