Copied to clipboard

Flag this post as spam?

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


  • Tom Madden 253 posts 455 karma points MVP 4x c-trib
    Jan 22, 2009 @ 12:26
    Tom Madden
    0

    Help with umbraco.library:getCookie()' has failed

    I'm fixing a bug with a site created by another developer. If I try to save the feedback form XSLT (without changing a single thing), I get the error below

    I suspected the XSLT directory doesn't have the correct permissions, since I've been told by the client that this used to work okay. Can anyone confirm if this is the issue before I get onto the ISP?

    Thanks

    Tom


    The full error is:
    Error occured
    System.Xml.XPath.XPathException: Function 'umbraco.library:getCookie()' has failed. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
    at umbraco.library.getCookie(String name)
    --- End of inner exception stack trace ---
    at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
    at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
    at System.Xml.Xsl.XsltOld.XsltCompileContext.FuncExtension.Invoke(XsltContext xsltContext, Object[] args, XPathNavigator docContext)
    at MS.Internal.Xml.XPath.FunctionQuery.Evaluate(XPathNodeIterator nodeIterator)
    --- End of inner exception stack trace ---
    at MS.Internal.Xml.XPath.FunctionQuery.Evaluate(XPathNodeIterator nodeIterator)
    at MS.Internal.Xml.XPath.StringFunctions.toString(XPathNodeIterator nodeIterator)
    at MS.Internal.Xml.XPath.StringFunctions.Evaluate(XPathNodeIterator nodeIterator)
    at System.Xml.Xsl.XsltOld.Processor.RunQuery(ActionFrame context, Int32 key)
    at System.Xml.Xsl.XsltOld.VariableAction.Execute(Processor processor, ActionFrame frame)
    at System.Xml.Xsl.XsltOld.ActionFrame.Execute(Processor processor)
    at System.Xml.Xsl.XsltOld.Processor.Execute()
    at System.Xml.Xsl.XsltOld.Processor.Execute(TextWriter writer)
    at System.Xml.Xsl.XslTransform.Transform(XPathNavigator input, XsltArgumentList args, TextWriter output, XmlResolver resolver)
    at System.Xml.Xsl.XslTransform.Transform(IXPathNavigable input, XsltArgumentList args, TextWriter output, XmlResolver resolver)
    at umbraco.presentation.webservices.codeEditorSave.SaveXslt(String fileName, String fileContents, Boolean ignoreDebugging)

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jan 22, 2009 @ 16:46
    Dirk De Grave
    0

    Hi Tom,

    Doesn't look like a permission issue to me... Can you post xslt snippet?

    Regards,
    /Dirk

  • Tom Madden 253 posts 455 karma points MVP 4x c-trib
    Jan 22, 2009 @ 17:12
    Tom Madden
    0

    Dirk,

    Here's the XSLT



    Thanks

    Tom




  • Tom Madden 253 posts 455 karma points MVP 4x c-trib
    Jan 22, 2009 @ 22:59
    Tom Madden
    0

    Dirk, and others,

    I posted my earlier message because I was trying to solve this problem, while actually working under pressure on something else altogether, and hoped that someone might have come across a similar problem before and share the solution.

    I've now had time to look at this properly, and it looks like getCookie isn't a function in the umbraco.library namespace. Calls to getCookie and setCookie are used several times in the site I've inherited (withoiut any documentation or source code). With this and other things I've found, it looks like the site has more than a few things wrong with it, so I'll need to be careful in any estimations I make for this job.

    Tom

Please Sign in or register to post replies

Write your reply to:

Draft