Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mike Taylor 145 posts 319 karma points
    Jun 20, 2014 @ 18:04
    Mike Taylor
    0

    Upgrade to U6.2.1 throws "More than one converter for property type xxx" error on all CheckBoxTree datatypes

    I just upgraded a site to Umbraco 6.2.1, and I'm seeing a "More than one converter for property type xxxx" error occurring on all data types that use uComponents: CheckBoxTree.

    Any ideas?

    Cheers,

    Mike

  • Lee Kelleher 3629 posts 12908 karma points admin core mvp c-trib
    Jun 20, 2014 @ 18:16
    Lee Kelleher
    0

    Hi Mike,

    There was a typo on the PropertyEditorValueConverter for TextstringArray. (My bad)

    There is a source-code fix available, but we haven't rolled it into a release yet. https://github.com/uComponents/uComponents/pull/21

    Current options are to either apply the source-code fix manually, or delete the uComponents.PropertyEditors.ValueConverters.dll from the /bin folder.

    Cheers,
    - Lee

  • Mike Taylor 145 posts 319 karma points
    Jun 20, 2014 @ 18:19
    Mike Taylor
    0

    Ah, OK, makes sense - thanks v much for the quick response too :)

    I'll remove the dll for now - cheers.

    Mike

  • Lee Kelleher 3629 posts 12908 karma points admin core mvp c-trib
    Jun 20, 2014 @ 18:23
    Lee Kelleher
    0

    Sorry for the headache.

    To be honest I'm a bit surprised that no one else had noticed this sooner, our v6.0.0 has been out in the wild since last October - either no one is using it, or wanted to complain about it. (Jeez ya think someone would test this stuff eh?) ;-)

  • Mike Taylor 145 posts 319 karma points
    Jun 20, 2014 @ 18:25
    Mike Taylor
    1

    Testing? Pshhhh....

  • Daryl Teo 6 posts 27 karma points
    Mar 10, 2015 @ 05:39
    Daryl Teo
    0

    So the official response is "who cares about 6.2.x noone is using that anyway, build it yourself" Is that correct?

    I have not found any indication that the above fix was ever released.

  • Daryl Teo 6 posts 27 karma points
    Mar 10, 2015 @ 06:51
    Daryl Teo
    0

    For future Google sleuths:

    • clone the uComponents git repo
    • run build.cmd
    • copy all relevant *.dlls from src into target umbraco installation
    • make sure that you are properly using the new data type conversion.

    A side-effect of this change from textstringarray to checkboxtree property value convertor is that when you call GetProperty you are no longer getting a String, but a IEnumerable. Be very careful (spent an hour trying to fix NPEs because it was giving me null trying to convert to a string).

    GetProperty<>>("property") should work (tested on my project with 6.2.5)

    Regards, Daryl

Please Sign in or register to post replies

Write your reply to:

Draft