x First time here? Check out the FAQ
Join the North American Umbraco Festival in March 2015
  • Avatar1138posts2261karma

    GetCurrentMember in 4.6.1

    dandrayne started this topic January 24, 2011 @ 10:48

    Has anyone tried umbraco.library:GetCurrentMember() from xslt in 4.6.1?  It's returning a blank string for me when a member is logged in, and when trying it to test without isloggedon it creates 

    No current member exists (best practice is to validate with 'isloggedon()' prior to this call)

    When a member isn't logged in.


  • Jan Skovgaard posted this reply January 29, 2011 @ 06:02

    Hi Dan

    Could this maybe have something to do with this Codeplex issue? http://umbraco.codeplex.com/workitem/29882

    Seems like there has been a change.



  • Avatar144posts407karma
    Comment with ID: 66393
    Bo Kingo Damgaard posted this reply February 23, 2011 @ 11:59


    No it's not related to that codeplex issue. The user IS logged on but umbraco.library:GetCurrentMember() fails to "see" the current logged on member and doesn't return anything.
    It works in 4.6.1 but it changed in somewhere along the nigtly builds, and it's still a problem in 4.7 beta


  • Avatar45posts144karma
    Comment with ID: 68229
    Christian Wendler posted this reply March 7, 2011 @ 11:12

    Suddenly I got this, too. IsLoggedOn() is true, but GetCurrentMember() returns 'No current member exists'.

    I am using 4.7RC and it worked for some couple of days. Don't know what has changed since then, I will do some further investigation.



  • Jan Skovgaard posted this reply March 7, 2011 @ 11:14

    Hi Christian

    In 4.7 it seems that there actually is a bug with this: http://umbraco.codeplex.com/workitem/30072


  • Avatar45posts144karma
    Comment with ID: 68234
    Christian Wendler posted this reply March 8, 2011 @ 12:42

    Thanks Jan!

    After some trial and error I got a work-around for this issue:

    Member.GetAllAsList().Where(m => m.Id == Member.CurrentMemberId()).Single().LoginName;

Please login or Sign up To post replies