Copied to clipboard

Flag this post as spam?

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


  • Yannick Smits 321 posts 718 karma points
    Sep 20, 2013 @ 20:54
    Yannick Smits
    0

    edit profile stopped working in v6

    just upgraded my site to umbraco v6.1.3 but now the edit profile user control stopped working. It is throwing an error on this line:
    umbraco.library.PublishSingleNode(m.Id);
    "No document exists with Id 1113".

    Which could be true because we're not updating documents rather members. I tried updating it with a newer API call (umbraco.library.UpdateDocumentCache(m.Id)) which gives same error. If I remove the line the member's properties are not updated.

    Any ideas? Member.Save() is also called but doens't do anything..

  • Yannick Smits 321 posts 718 karma points
    Sep 20, 2013 @ 21:46
    Yannick Smits
    0

    After some more investigation is seems that Member.Save() is working but only on the default properties (like email). The custom properties aren't saved anymore. Code for that is:

    foreach (umbraco.interfaces.IDataType df in _dataFields)
    {
        Property p = m.getProperty(df.DataEditor.Editor.ID);
        df.Data.PropertyId = p.Id;
        df.DataEditor.Save();
    
    }

    Any ideas why that stopped working in v6?

  • Yannick Smits 321 posts 718 karma points
    Sep 21, 2013 @ 15:22
    Yannick Smits
    0

    Can a property editor expert chime in and help me explain why the DataEditor doesn't work anymore in V6?

  • Yannick Smits 321 posts 718 karma points
    Sep 24, 2013 @ 14:21
    Yannick Smits
    0

    I've filed it as a bug:
    http://issues.umbraco.org/issue/U4-2921

    please vote if you encounter the same problem. 

    No workaround yet unfortunately.

  • Yannick Smits 321 posts 718 karma points
    Sep 24, 2013 @ 16:12
    Yannick Smits
    100

    fixed by changing above code to:

    foreach (umbraco.interfaces.IDataType df in _dataFields)
    {
        Property p = m.getProperty(df.DataEditor.Editor.ID);
        df.Data.PropertyId = p.Id;
        df.DataEditor.Save();
    
        m.getProperty(df.DataEditor.Editor.ID).Value = df.Data.Value;
    
    }
    

    thanks to Morten Christensen (@sitereactor) for his twitter help!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies