Copied to clipboard

Flag this post as spam?

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


  • Matthew_smit 4 posts 20 karma points
    Jan 20, 2009 @ 16:10
    Matthew_smit
    0

    Error parsing XSLT file

    Hi all

    I was wondering if anybody can help. We have had our new website about 3 months ago redone using umbaraco 3.0. All was working fine until about 2 - 3 weeks ago. On our website where there should be a picture it says Error parsing XSLT file: \xslt\HomePageHotspots.xslt . Website address. www.fdcap.com it is referencing a file which I have check is located in the correct directory. I have even garn back to the files we where sent by the company that did the website and still no joy.

    I am wondering if anybody would be able to say is this error is code or hosting server related?

    Code for file mentioned:


    ]>

    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">







    Research


    Research




    Corporate Finance


    Corporate Finance










    Conferences & Events


    Conferences & Events








    Any help would be much apriciated.

    Regards

    Matt

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jan 20, 2009 @ 21:13
    Dirk De Grave
    0

    Hi,

    I'm guessing it's the last one which is troubling, right (the one that uses FirstEventId)?


    Error parsing XSLT HomePageHotspots.xslt
    Value was either too large or too small for an Int32.


    A first solution would be to surround the

    [code]


    Conferences & Events


    Conferences & Events

    [/code]

    with an
  • Matthew_smit 4 posts 20 karma points
    Jan 21, 2009 @ 09:38
    Matthew_smit
    0

    Hi Dirk

    Many thanks for your reply to this. I am unfortunately not a programmer, more on the technical side of things. I am not 100% sure about what you are wanting me to try? The error is on the home page at www.fdcap.com on the bottom left.

    Are you wanting me to replace:

    [code]


    Conferences & Events


    Conferences & Events

    [/code]

    with

    [code][/code]

    To see if the error comes up still?


    many thanks for your help with this.

    Matt

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jan 21, 2009 @ 10:00
    Dirk De Grave
    0

    Hi Matt,

    Right you are, should replace the first code snippet with the second, but the '...' is the first code snippet content, didn't want to repeat/copy/paste that...

    Here's the complete snippet now

    [code]


    Conferences & Events


    Conferences & Events



    [/code]

    If no parsing error occurs.. then it should be the issue. After that, we'll work on the issue (what is causing $FirstEventId to be empty)

    Regards,
    /Dirk

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jan 21, 2009 @ 10:05
    Dirk De Grave
    0

    Hi MAtt,

    Just checked the website again. Have received a different error message...

    Error loading XSLT HomePageHotspots.xslt
    The variable or parameter 'FirstEventId' is either not defined or it is out of scope.

    Can you re-post the xslt if it has changed since last time you've posted the xslt.

    TIA,
    Dirk

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jan 21, 2009 @ 10:06
    Dirk De Grave
    0

    Hmm,

    I'm getting different error messages each time when visiting the home page.

    Error loading XSLT HomePageHotspots.xslt
    XSLT compile error.
    at System.Xml.Xsl.Xslt.XsltLoader.LoadStylesheet(XmlReader reader, Boolean include)
    at System.Xml.Xsl.Xslt.XsltLoader.Load(Compiler compiler, Object stylesheet, XmlResolver xmlResolver)
    at System.Xml.Xsl.Xslt.Compiler.Compile(Object stylesheet, XmlResolver xmlResolver, QilExpression& qil)
    at System.Xml.Xsl.XslCompiledTransform.LoadInternal(Object stylesheet, XsltSettings settings, XmlResolver stylesheetResolver)
    at System.Xml.Xsl.XslCompiledTransform.Load(XmlReader stylesheet, XsltSettings settings, XmlResolver stylesheetResolver)
    at umbraco.macro.getXslt(String XsltFile)
    at umbraco.macro.loadMacroXSLT(macro macro, Hashtable attributes, page umbPage)

    Are you sure the xslt file is still there?

    Regards,
    /Dirk

  • Matthew_smit 4 posts 20 karma points
    Jan 21, 2009 @ 10:38
    Matthew_smit
    0

    Hi Dirk

    Sorry I was not expecting such a prompt reply and was just trying a few thing buy replacing the currant xslt with another xslt file that was working and seeing if it works, which it did. Then deleted it but forgot to put back the old file. Have hopefully updated the file correctly. the file now is as follows:

    [code]
    ]>

    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">





    Conferences & Events


    Conferences & Events





    [/code]

    hope this is correct.

    Matt

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jan 21, 2009 @ 10:55
    Dirk De Grave
    0

    Hi Matt,

    Have sent a mail with instructions on how to resolve the issue.

    Regards,
    /Dirk

  • Matthew_smit 4 posts 20 karma points
    Jan 21, 2009 @ 12:27
    Matthew_smit
    0

    Many thanks Dirk for your help with this. The error has now been resolved with Dirk Help and guidance.

    Problem was due to an event that had expired and the original coding done by the original developers did not account for this. Once we added the if statement in the remainder 2 icons came back, but not the third icon. Once I republished the event the 3rd tab came back as it should.

    Main problem was due to coding issue, and then the event expiring.

    Once again Dirk many thanks for you help in putting me in the right direction and helping resolve this. Much appreciated to all who spend time helping out others on this forum.

    five star forum :d/

Please Sign in or register to post replies

Write your reply to:

Draft