Get Umbraco Certified in October

5 courses in 4 different countries across 2 continents leaves no excuse.

Attend courses in the Netherlands, UK, USA and at Umbraco HQ in Denmark.

See the schedule and read more about our training here.

Copied to clipboard

Flag this post as spam?

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

  • dandrayne 1138 posts 2261 karma points
    Jan 24, 2011 @ 10:48

    GetCurrentMember in 4.6.1

    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 Skovgaard19341 karma points admin mvp c-trib
    Jan 29, 2011 @ 18:02
    Jan Skovgaard

    Hi Dan

    Could this maybe have something to do with this Codeplex issue?

    Seems like there has been a change.



  • Bo Kingo Damgaard419 karma points
    Feb 23, 2011 @ 11:59
    Bo Kingo Damgaard


    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


  • Christian Wendler145 karma points
    Mar 07, 2011 @ 23:12
    Christian Wendler

    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 Skovgaard19341 karma points admin mvp c-trib
    Mar 07, 2011 @ 23:14
    Jan Skovgaard

    Hi Christian

    In 4.7 it seems that there actually is a bug with this:


  • Christian Wendler145 karma points
    Mar 08, 2011 @ 00:42
    Christian Wendler

    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 Sign in or register to post replies

Write your reply to:

Draft is the community mothership for Umbraco, the open source cms. With a friendly forum for all your questions, a comprehensive documentation and a ton of packages from the community. This site is running Umbraco version 7.3.0