Giter Club home page Giter Club logo

Comments (9)

alecrt avatar alecrt commented on June 9, 2024

I can confirm the problem.
In 1.5 GetVortoValue has changed its behaviour when the value of the specified culture in not set. Now throws an exception.

from umbraco-vorto.

mattbrailsford avatar mattbrailsford commented on June 9, 2024

@alecrt which line specifically are you referring to that has changed?

from umbraco-vorto.

alecrt avatar alecrt commented on June 9, 2024

Sorry @mattbrailsford didn't look at the source code still.

The exception thrown is "The given key was not present in the dictionary" and happens when a specific culture is passed as cultureName parameter in DoInnerGetVortoValue method.

So my guess is that something goes wrong here:

var bestMatchCultureName = vortoModel.FindBestMatchCulture(cultureName);
var value = vortoModel.Values[bestMatchCultureName];

from umbraco-vorto.

mattbrailsford avatar mattbrailsford commented on June 9, 2024

I've added some additional null checking to that area in DoInnerGetVorotValue (it should have actually been the same checks that occur in HasVortoValue but for some reason they were less restrictive) so hopefully this should fix it. There is a new release on the build server if you guys fancy giving it a try and letting me know if this fixes it for you?

https://ci.appveyor.com/project/mattbrailsford/umbraco-vorto/build/1.5.1.36/artifacts

Cheers

Matt

from umbraco-vorto.

jbreuer avatar jbreuer commented on June 9, 2024

I have upgraded to Our.Umbraco.Vorto.1.5.1-alpha-000036.nupkg and now it's fixed. Thanks for the quick response.

from umbraco-vorto.

mattbrailsford avatar mattbrailsford commented on June 9, 2024

Awesome! Thanks for reporting the issue.

from umbraco-vorto.

alecrt avatar alecrt commented on June 9, 2024

Thanks!

from umbraco-vorto.

jbreuer avatar jbreuer commented on June 9, 2024

I just upgraded from Vorto 1.5.3 to 1.6.0 and I get the same error again. Is it possible this somehow got reverted in the latest version?

from umbraco-vorto.

jbreuer avatar jbreuer commented on June 9, 2024

I have downgraded back to Vorto 1.5.3 and the error is gone. Could this issue be reopened?

from umbraco-vorto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.