Copied to clipboard

Flag this post as spam?

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


  • Gordon Saxby 1347 posts 1608 karma points
    Feb 03, 2009 @ 13:06
    Gordon Saxby
    0

    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">

















    [/code]

  • Gordon Saxby 1347 posts 1608 karma points
    Feb 04, 2009 @ 14:06
    Gordon Saxby
    0

    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?

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Feb 04, 2009 @ 17:30
    Peter Dijksterhuis
    0

    Are you using an umbracoRedirect on the top-most node perhaphs? That causes descibed behaviour.

    HTH,
    PeterD

  • Gordon Saxby 1347 posts 1608 karma points
    Feb 04, 2009 @ 17:42
    Gordon Saxby
    0

    [quote=PeterD]Are you using an umbracoRedirect on the top-most node perhaphs? That causes descibed behaviour.[/quote]
    No - not that I know of!?

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Feb 04, 2009 @ 17:53
    Peter Dijksterhuis
    0

    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 :-(

  • tjbishop 4 posts 20 karma points
    Mar 03, 2009 @ 05:04
    tjbishop
    0

    I am getting the same error! Works fine in a site that we upgraded but not on a fresh install. very strange.

  • tjbishop 4 posts 20 karma points
    Mar 03, 2009 @ 05:08
    tjbishop
    0

    It appears if I check the Ignore Error it will still work.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies