Copied to clipboard

Flag this post as spam?

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


  • dominik 711 posts 733 karma points
    Feb 04, 2014 @ 13:52
    dominik
    0

    Problem after upgrading to umbraco 6.1.5

    Hello,

    We are facing one issue after upgrading to umbraco v 6.1.5 with one of our XSLT usercontrols. The following code was working well on umbraco version 4.7.2 but now it stopped working on 6.1.5

    <xsl:value-of select="umbraco.library:RenderMacroContent($currentPage/sidebarContentWithoutFrame, $currentPage/@id)" disable-output-escaping="yes" />

    The content of $currentPage/sidebarContentWithoutFrame is

    <?UMBRACO_MACRO title="Processing oligos in tube format" withborder="1" mediaid="4163" macroAlias="EnlargeImage" /> <?UMBRACO_MACRO imagelink="http://www.test.de" imagelinkmedia="" imagelinkinternal="2576" imagelinktext="Send feedback" macroAlias="ImageLink" imagelinktype="feedback" /> <?UMBRACO_MACRO imagelink="" imagelinkmedia="" imagelinkinternal="2501" imagelinktext="Contact us" macroAlias="ImageLink" imagelinktype="contact" />

    And the error we are getting on the page is:

    <!-- Error generating macroContent: 'System.FormatException: Input string was not in a correct format.
       at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
       at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
       at umbraco.macro.AddMacroXmlNode(XmlDocument umbracoXml, XmlDocument macroXml, String macroPropertyAlias, String macroPropertyType, String macroPropertyValue)
       at umbraco.macro.LoadMacroXslt(macro macro, MacroModel model, Hashtable pageElements, Boolean throwError)
       at umbraco.macro.renderMacro(Hashtable pageElements, Int32 pageId)
       at umbraco.presentation.templateControls.Macro.CreateChildControls()
       at System.Web.UI.Control.EnsureChildControls()
       at umbraco.presentation.templateControls.Macro.Render(HtmlTextWriter writer)
       at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
       at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
       at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
       at umbraco.library.RenderMacroContent(String Text, Int32 PageId)' -->

    Any idea how this could be solved?

    Thanks

     

Please Sign in or register to post replies

Write your reply to:

Draft