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
    Aug 03, 2010 @ 15:54
    Yannick Smits
    0

    GetMember not working anymore

    I've just upgraded my site from 4.0 to 4.5.1 but now when I call umbraco.library:GetMember($id) it's not returning anything.

    I debugged with a simple hardcoded node render but nothing is returned:

        <textarea>
            <xsl:copy-of select="umbraco.library:GetMember(1205)" />...
        </textarea>

    Could somebody guide me how to start debugging this problem?

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Aug 03, 2010 @ 17:51
    Ismail Mayat
    0

    Did you set legacyxml to true? if its false try setting to true then retry.  

    Regards

    Ismail

  • Yannick Smits 321 posts 718 karma points
    Aug 03, 2010 @ 17:56
    Yannick Smits
    0

    It is set to false. Changing it to true causes nothing to be rendered at all from the page. Not even the textarea.

  • Søren Tidmand 129 posts 366 karma points
    Aug 14, 2010 @ 15:01
    Søren Tidmand
    0

    Has anybody found a solution for this issue?

    I've upgraded a site where I use umbraco.library:GetMember(@id) very often ... and now it's returning nothing !!! The rest of all my xslt's a working with the new Schema without problems, only the GetMember is not working.

    Please tell me if I need to do something special or have to change any part of the code to make it work.

    Regards,
    Søren

  • Jesper Ordrup 1019 posts 1528 karma points MVP
    Aug 17, 2010 @ 08:59
    Jesper Ordrup
    0

    Hi Yannick,

    Sounds like a bug to me. Pls. report it to http://umbraco.codeplex.com if not already.

    Thanks
    Jesper

  • Yannick Smits 321 posts 718 karma points
    Aug 17, 2010 @ 11:16
  • Niels Hartvig 1951 posts 2391 karma points c-trib
    Aug 20, 2010 @ 10:54
    Niels Hartvig
    1

    Please take the time to search for bugs before posting duplicates. This was already reported and fixed two weeks ago:

    http://umbraco.codeplex.com/workitem/28464 

  • Yannick Smits 321 posts 718 karma points
    Aug 20, 2010 @ 11:11
    Yannick Smits
    0

    oeps sorry, only searched for open issues (default)

  • Phil Crowe 192 posts 256 karma points
    Dec 09, 2010 @ 17:24
    Phil Crowe
    0

    Niels, how do i implement this fix? there is no patch or anything to download?

  • Jesper Hauge 298 posts 487 karma points c-trib
    Dec 29, 2010 @ 16:45
    Jesper Hauge
    0

    Seems that this is still a problem in a fresh 4.5.2 install, does anybody know if the fix is applied in 4.5.2, or how to apply it?

    I'm experiencing this problem right now, in the following code line 2 will print out what looks like exactly the xml I want in the result, but line 3 comes out empty.

    <xsl:variable name="member" select="umbraco.library:GetMember(1066)" />
    <xsl:copy-of select="$member" />
    <xsl:copy-of select="$member/data" />

    Seems like the method does not return an XPathNodeIterator but a string containing xml. Odd thing is that a checkup on the method in reflector, indicates it returning a XPathNodeIterator.

    Anyway - does anybody know how til remedy this in 4.5.2

    Regards
    Jesper Hauge

  • Yannick Smits 321 posts 718 karma points
    Dec 31, 2010 @ 14:08
    Yannick Smits
    0

    maybe use <xsl:value-of... instead of copy-of

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Dec 31, 2010 @ 14:18
    Jan Skovgaard
    0

    Hi Jesper

    What does your XML from the $member variable look like?

    /Jan

  • Dylan 1 post 21 karma points
    Mar 31, 2011 @ 00:34
    Dylan
    0

    Hi,

    Try:

    <xsl:value-of select="$member/node/@email"/>
Please Sign in or register to post replies

Write your reply to:

Draft