I can currently only get one macro at a time to work on a page. I thought initially it had something to do with the new macro (for a social media widget) that I created, but now all my pages that had multiple macros only display the first one. When I edit the page and put in a second macro, then save, when it reloads the second macro is gone.
One sub issue is that one of my xslt files is failing. I haven't edited this macro, so not sure why it's failing now on save with a overflow error. Here's the detail:
System.OverflowException: Value was either too large or too small for an Int32. at System.Convert.ToInt32(Double value) at System.Double.System.IConvertible.ToInt32(IFormatProvider provider) at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider) at System.Xml.Xsl.Runtime.XmlQueryRuntime.ChangeTypeXsltArgument(XmlQueryType xmlType, Object value, Type destinationType) at System.Xml.Xsl.Runtime.XmlQueryContext.InvokeXsltLateBoundFunction(String name, String namespaceUri, IList`1[] args) at (XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) at Root(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) at Execute(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlSequenceWriter results) at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer) at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, XmlWriter results, XmlResolver documentResolver) at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, TextWriter results) at umbraco.presentation.webservices.codeEditorSave.SaveXslt(String fileName, String oldName, String fileContents, Boolean ignoreDebugging
Multiple Macros Failing
I can currently only get one macro at a time to work on a page. I thought initially it had something to do with the new macro (for a social media widget) that I created, but now all my pages that had multiple macros only display the first one. When I edit the page and put in a second macro, then save, when it reloads the second macro is gone.
What's going on?
One sub issue is that one of my xslt files is failing. I haven't edited this macro, so not sure why it's failing now on save with a overflow error. Here's the detail:
version="1.0" encoding="UTF-8"?>
xsl:stylesheet [
]>
<xsl:stylesheet
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">
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:param name="currentPage"/>
<xsl:template match="/">
<xsl:variable name="fixedHref" >
<xsl:call-template name="fixRssHref">
<xsl:with-param name="niceUrl">
<xsl:value-of select="umbraco.library:NiceUrl($currentPage/ancestor-or-self::root//umbBlog/@id)" />
xsl:with-param>
xsl:call-template>
xsl:variable>
<link href="{concat($fixedHref, '/rss.aspx')}" rel="alternate" type="application/rss+xml" title="RSS Feed" />
<xsl:if test="string-length(umbraco.library:Request('filterby')) > 0">
<link href="{concat($fixedHref, concat('/rss/tags/',umbraco.library:Request('filterby'),'.aspx'))}" rel="alternate" type="application/rss+xml" title="RSS Feed for tag {umbraco.library:Request('filterby')}" />
xsl:if>
<link href="{concat($fixedHref, '/commentrss.aspx')}" rel="alternate" type="application/rss+xml" title="Comments RSS Feed" />
<xsl:if test="string($currentPage/umbBlogPost/closeComments) != '1'">
<xsl:variable name="fixedPostHref" >
<xsl:call-template name="fixRssHref">
<xsl:with-param name="niceUrl">
<xsl:value-of select="umbraco.library:NiceUrl($currentPage/@id)" />
xsl:with-param>
xsl:call-template>
xsl:variable>
<link href="{concat($fixedPostHref, '/commentrss.aspx')}" rel="alternate" type="application/rss+xml" title="Comments RSS Feed for {$currentPage/@nodeName}" />
xsl:if>
xsl:template>
<xsl:template name="fixRssHref">
<xsl:param name="niceUrl" />
<xsl:variable name="indexOfAspx" select="umbraco.library:LastIndexOf($niceUrl, '.aspx')" />
<xsl:variable name="fixedHref" >
<xsl:choose>
<xsl:when test="$indexOfAspx != -1">
<xsl:value-of select="umbraco.library:Replace($niceUrl, '.aspx', '')" />
xsl:when>
<xsl:otherwise>
<xsl:value-of select="$niceUrl" />
xsl:otherwise>
xsl:choose>
xsl:variable>
<xsl:value-of select="$fixedHref" />
xsl:template>
xsl:stylesheet>
Error occured
System.OverflowException: Value was either too large or too small for an Int32.
at System.Convert.ToInt32(Double value)
at System.Double.System.IConvertible.ToInt32(IFormatProvider provider)
at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
at System.Xml.Xsl.Runtime.XmlQueryRuntime.ChangeTypeXsltArgument(XmlQueryType xmlType, Object value, Type destinationType)
at System.Xml.Xsl.Runtime.XmlQueryContext.InvokeXsltLateBoundFunction(String name, String namespaceUri, IList`1[] args)
at (XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
at Root(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
at Execute(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlSequenceWriter results)
at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer)
at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, XmlWriter results, XmlResolver documentResolver)
at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, TextWriter results)
at umbraco.presentation.webservices.codeEditorSave.SaveXslt(String fileName, String oldName, String fileContents, Boolean ignoreDebugging
is working on a reply...