System.NullReferenceException: Object reference not set to an instance of an object.
at umbraco.BusinessLogic.StateHelper.GetCookieValue(HttpContext context, String key)
at umbraco.BusinessLogic.StateHelper.HasCookieValue(String key)
at umbraco.cms.businesslogic.member.Member.CurrentMemberId()
at umbraco.cms.businesslogic.member.Member.IsLoggedOn()
at umbraco.library.IsLoggedOn()[/code]
when I try to save this menu XSLT. It came from a V3 site that is currently working OK.
If I click "ignore errors" and save, the menu does appear although there isn't enough content yet to be 100% sure, also I do not have any protected areas yet.
Error in XSLT when copied from V3 to V4 site
I get the following error
[code]Error occured
System.NullReferenceException: Object reference not set to an instance of an object.
at umbraco.BusinessLogic.StateHelper.GetCookieValue(HttpContext context, String key)
at umbraco.BusinessLogic.StateHelper.HasCookieValue(String key)
at umbraco.cms.businesslogic.member.Member.CurrentMemberId()
at umbraco.cms.businesslogic.member.Member.IsLoggedOn()
at umbraco.library.IsLoggedOn()[/code]
when I try to save this menu XSLT. It came from a V3 site that is currently working OK.
[code]
]>
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxml="urn:schemas-microsoft-com:xslt" xmlns:umbraco.library="urn:umbraco.library" exclude-result-prefixes="msxml
umbraco.library">
Home
[/code]
If I click "ignore errors" and save, the menu does appear although there isn't enough content yet to be 100% sure, also I do not have any protected areas yet.
Is anyone else using IsLoggedOn() in a V4 site?
Are you using an umbracoRedirect on the top-most node perhaphs? That causes descibed behaviour.
HTH,
PeterD
[quote=PeterD]Are you using an umbracoRedirect on the top-most node perhaphs? That causes descibed behaviour.[/quote]
No - not that I know of!?
Oops....I didn't see the begin of your first post about the cookievalue. That error doesn't show when using umbracoRedirect.
I shouldn't answer to posts after a hard days work :-(
I am getting the same error! Works fine in a site that we upgraded but not on a fresh install. very strange.
It appears if I check the Ignore Error it will still work.
is working on a reply...