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.
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.
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
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?
Did you set legacyxml to true? if its false try setting to true then retry.
Regards
Ismail
It is set to false. Changing it to true causes nothing to be rendered at all from the page. Not even the textarea.
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
Hi Yannick,
Sounds like a bug to me. Pls. report it to http://umbraco.codeplex.com if not already.
Thanks
Jesper
done http://umbraco.codeplex.com/workitem/28599
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
oeps sorry, only searched for open issues (default)
Niels, how do i implement this fix? there is no patch or anything to download?
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.
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
maybe use <xsl:value-of... instead of copy-of
Hi Jesper
What does your XML from the $member variable look like?
/Jan
Hi,
Try:
<xsl:value-of select="$member/node/@email"/>
is working on a reply...