Copied to clipboard

Flag this post as spam?

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


  • Christopher Thrower 20 posts 60 karma points
    Sep 05, 2013 @ 13:27
    Christopher Thrower
    0

    Error parsing XSLT file: \xslt\LatestTweets.xslt

    I've followed the installation instructions, authorized my app etc and then I've added the Macro to the page, using the LatestTweets.xslt file, however, constantly receive the error;

    Error parsing XSLT file: \xslt\LatestTweets.xslt

    Can somebody help me with this problem please?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Sep 05, 2013 @ 13:35
    Jan Skovgaard
    0

    Hi Christopher and welcome to our :)

    Could you try adding ?umbdebugshowtrace=1 to the url? This should show a stack trace and hopefully a more detailed error description will be shown, which can lead to the solution.

    Please post the text marked in red in here.

    Cheers,
    Jan 

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Sep 05, 2013 @ 13:45
    Matt Brailsford
    101

    Hi Christopher,

    The most likely culprit will be that your datatype is told to store it's value as JSON rather than XML. Try modifying the prevalue of the uTwit data type and set its data format to XML then republish your content node (this will re-save its value in the correct format) then try your xslt again.

    Cheers

    Matt

  • Christopher Thrower 20 posts 60 karma points
    Sep 05, 2013 @ 15:01
    Christopher Thrower
    0

    Ha, stupid error. 
    Thanks for the replies - I hadn't switched to XML in the Data Type! 

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Sep 05, 2013 @ 15:04
    Matt Brailsford
    0

    Hey Chris,

    No worries. It's not the most obvious error. Unfortunately there is not way to know which version you actually want to use so I have to go with the most common, which moving forward will probably be razor, hence why it's JSON by default.

    Glad you got it working though.

    Matt

  • Andreas Pape 3 posts 23 karma points
    Nov 14, 2013 @ 10:15
    Andreas Pape
    0

    @Matt and Jan:

    Hi,

    I'm just gone through your installation instructions. UmbracoTraceLog says the following:

    2013-11-14 10:08:05,945 [34] WARN  umbraco.macro - Exception during StringFormat: Die Eingabezeichenfolge hat das falsche Format. [Thread 5] Error parsing XSLT file. Exception: System.Xml.Xsl.XslTransformException: An error occurred during a call to extension function 'GetLatestTweets'. See InnerException for a complete description of the error. ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized.
       at System.Net.HttpWebRequest.GetResponse()
       at DevDefined.OAuth.Consumer.ConsumerRequest.ToWebResponse()
       at DevDefined.OAuth.Consumer.ConsumerRequest.ToString()
       at Our.Umbraco.uTwit.uTwit.GetLatestTweets(String oauthToken, String oauthTokenSecret, String consumerKey, String consumerSecret, String screenName, Int32 count, Boolean includeReplies, Boolean includeRetweets)
       at Our.Umbraco.uTwit.uTwitXslt.GetLatestTweets(String oauthToken, String oauthTokenSecret, String consumerKey, String consumerSecret, String screenName, Int32 count, Boolean includeReplies, Boolean includeRetweets)
       --- End of inner exception stack trace ---
       at System.Xml.Xsl.Runtime.XmlExtensionFunction.Invoke(Object extObj, Object[] args)
       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.macro.GetXsltTransformResult(XmlDocument macroXml, XslCompiledTransform xslt, Dictionary`2 parameters)
       at umbraco.macro.LoadMacroXslt(macro macro, MacroModel model, Hashtable pageElements, Boolean throwError){}
    
  • Andreas Pape 3 posts 23 karma points
    Nov 14, 2013 @ 10:15
    Andreas Pape
    0
  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Nov 14, 2013 @ 10:36
    Matt Brailsford
    0

    Hi @Andreas,

    You are getting an unauthorised response from Twitter so I'd check that you have successfully authorized an account with the uTwit data type first and that you are passing it the right credentials.

    Matt

  • Andreas Pape 3 posts 23 karma points
    Nov 14, 2013 @ 11:04
    Andreas Pape
    0

    Hi Matt.

    Thank you for your quick response. I am authorized as normal. Unfortunately, I still get always the error. Here are a few screens

     

    The last screen is the log which I have previously written

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Nov 14, 2013 @ 11:47
    Matt Brailsford
    0

    Hi @Andreas,

    It looks like you are using the default uTwit twitter app. It might be a good idea to create your own app at dev.twitter.com and enter the relevant credentials in the uTwit datatypes prevalue. Be sure to follow the guidlines for creating an app carefully, especially around setting a callback url (doesn't need to exist, just needs to be set). Give that a go and see if it helps. I don't tend to recommend people use the uTwit twitter app.

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft