Copied to clipboard

Flag this post as spam?

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


  • David Challener 80 posts 444 karma points c-trib
    Nov 02, 2015 @ 18:20
    David Challener
    0

    A lot of errors in log

    Hi,

    I'm getting a lot of these messages in my logs when navigating to the developer section in the back office. I've disabled the package and the issue goes away so pretty confident it is here but I may not have configured it correctly. Is this a known issue - do other people see this?

    Could not retrieve current xml node
    System.NullReferenceException: Object reference not set to an instance of an object.
       at umbraco.library.GetXmlNodeCurrent()
    
  • Chriztian Steinmeier 2800 posts 8790 karma points MVP 8x admin c-trib
    Nov 02, 2015 @ 21:12
    Chriztian Steinmeier
    0

    Hi David,

    I haven't had any one mention this before, but I just had a quick look at the Umbraco sourcecode and I can see why you would get these log messages.

    The package is using a standard XSLT macro, but because it's rendering it in a dashboard, there's no current node to pass into the $currentPage parameter, so I guess the macro service logs a message about that.

    Sadly, I don't know of any way to avoid this (besides wrapping some custom code around the macro rendering - but I can't do that).

    Are you getting any kind of performance hits, or were you just worried about the number of messages?

    /Chriztian

  • David Challener 80 posts 444 karma points c-trib
    Nov 03, 2015 @ 08:56
    David Challener
    0

    Hi Chriztian,

    That makes perfect sense. I'm not getting a performance hit (I'm only in dev at the moment anyway) but it does throw a full exception which could cause some issue later on.

    As it only happens when the developer tab is navigated to it isn't the biggest issue in the world. I guess this would need either changing from a macro or the umbraco core team to add this check if in the back office and using the macro service?

    Thanks, David

  • Chriztian Steinmeier 2800 posts 8790 karma points MVP 8x admin c-trib
    Nov 03, 2015 @ 09:10
    Chriztian Steinmeier
    0

    As it only happens when the developer tab is navigated to it isn't the biggest issue in the world. I guess this would need either changing from a macro or the umbraco core team to add this check if in the back office and using the macro service?

    Yes, it's happening here in the library.cs file (AFAIK). Not sure about how to handle this best, though...

    Since it's only a problem with XSLT macros (I guess?), I don't think there's much incentive to fix it (e.g., by providing an overload that doesn't try to set $currentPage)

Please Sign in or register to post replies

Write your reply to:

Draft