Copied to clipboard

Flag this post as spam?

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


  • Paul Marden 235 posts 338 karma points MVP 2x c-trib
    Jan 23, 2009 @ 17:37
    Paul Marden
    0

    Error with NiceUrl

    Can anyone see whats wrong the with attached.


    [code] [/code]


    If I only have the first NiceURL it works fine, when I have the code as above (ie including the second NiceURL I get the following error when trying to save the xslt:

    [quote](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, Boolean closeWriter)
    at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results)
    at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, TextWriter results)
    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) in d:\inetpub\wwwroot\ccnet\Source\Umbraco 3.1\umbraco\presentation\umbraco\webservices\codeEditorSave.asmx.cs:line 124
    [/code]

  • Stephan Lonntorp 195 posts 212 karma points
    Jan 23, 2009 @ 18:59
    Stephan Lonntorp
    0

    Doesn't NiceUrl expect an ID of a node?

    What does your AltURL1 and AltURL2 properties contain?

  • Dan Diplo 1554 posts 6205 karma points MVP 6x c-trib
    Jan 23, 2009 @ 22:00
    Dan Diplo
    0

    Yes, NiceUrl expects an integer which should be the ID of the node.

  • Paul Marden 235 posts 338 karma points MVP 2x c-trib
    Jan 24, 2009 @ 21:45
    Paul Marden
    0

    AltURL1 and AltURL2 are both Content Picker fields

  • Stephan Lonntorp 195 posts 212 karma points
    Jan 25, 2009 @ 20:40
    Stephan Lonntorp
    0

    Have you made sure that the pages they are pointing to are published?

  • OneEye 1 post 20 karma points
    Apr 08, 2009 @ 15:06
    OneEye
    0

    You probably receive this error because $currentPage/data[@alias='AltURL1'] can be empty.
    In this case the NiceUrl function cannot be called because it requires an integer parameter.

    Try testing for $currentPage/data[@alias='AltURL1'] != ''

Please Sign in or register to post replies

Write your reply to:

Draft