To get the trace output you need to set the key umbracoDebugMode to true in the web.config file.
My guess is you're probably iterating through a bunch of nodes, calling GetMedia() to get the images - if you're doing that, make sure to assert that the the image property (or what you've named it) has a value, before calling the extension. Otherwise, a single node with no image assigned will break the page.
You can do that in several ways, e.g.:
<xsl:for-each select="umbraco.library:GetXmlNodeById($source)/*[@isDoc]">
<xsl:if test="normalize-space(image)">
<!-- Call GetMedia(image, 0) here -->
</xsl:if>
<!-- Other stuff for this node -->
</xsl:for-each>
Or if you don't want to output nodes that have no image assigned, filter them right away:
<xsl:for-each select="umbraco.library:GetXmlNodeById($source)/*[@isDoc][normalize-space(image)]">
<!-- Call GetMedia(image, 0) and other stuff in here -->
</xsl:for-each>
XSLT errors since upgrading to 4.9
Since upgrading from 4.8 to 4.9 my xslt macros have errors.
I cant get it show a stack trace http://www.liveschool.net/?umbDebugShowTrace=true
Is this a known issue or else what could be causing it.
thanks
Wayne
Hi Wayne,
To get the trace output you need to set the key umbracoDebugMode to true in the web.config file.
My guess is you're probably iterating through a bunch of nodes, calling GetMedia() to get the images - if you're doing that, make sure to assert that the the image property (or what you've named it) has a value, before calling the extension. Otherwise, a single node with no image assigned will break the page.
You can do that in several ways, e.g.:
Or if you don't want to output nodes that have no image assigned, filter them right away:
/Chriztian
is working on a reply...