Copied to clipboard

Flag this post as spam?

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


  • Luke Alderton 192 posts 509 karma points
    Jun 18, 2012 @ 18:08
    Luke Alderton
    0

    Crashing IIS

    Hello,

    I've just been adding some new categories into a new shop I've just set up and up to about 30 mins ago it was working okay, however it's now causing a stack overflow and I haven't made any changes to the code since I last saw the website working, as far as I know, changing the categories in the back and has caused it to cause this error which in turn causes Dr Watson to use 50% cpu after trying to report that the worker process has crashed.

    Any idea what could be causing this? It is definately the Tea Commerce site that's causing it as the server only gets the error when i refresh the front end.

    Thanks in advance,
    Luke

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jun 18, 2012 @ 18:56
    Jan Skovgaard
    0

    Hi Luke

    Have you had a look at the umbraco log table in the database to see if that provides some more information?

    Perhaps there also is some usefull information to be found in the event viewer on the server if you have access to it.

    /Jan

  • Anders Burla 2560 posts 8256 karma points
    Jun 19, 2012 @ 00:20
    Anders Burla
    0

    Hi Luke

    Which version of Tea Commerce are you running and are you using the starter kit?

    We had a old "bug" in the starter kit xslt for the boxes at some time that resulted in the website to crash. It was because a box was selected, then deleted. But everytime you looked at the page that had the box in its list - it would restart the website. Try comment out the box list of the website and see if that helps with the problem.

    Kind regards
    Anders

  • Rune Grønkjær 1372 posts 3103 karma points
    Jun 19, 2012 @ 08:15
    Rune Grønkjær
    0

    Remember when you use the umbraco.libary:GetXmlNodeById, to afterwards check that the node's id is not empty. Like this:

    <xsl:variable name="node" select="umbraco.libary:GetXmlNodeById(1111)" />
    <xsl:if test="string($node/@id) != ''">
    ...

    Otherwise if no node is found the IIS will crash. Don't know why.

    /Rune

  • Luke Alderton 192 posts 509 karma points
    Jun 19, 2012 @ 11:40
    Luke Alderton
    0

    Hi, I'm using Tea Commerce 1.4.2.4 and Starter Kit 2.1.0.1 I've just reinstalled the website and added all my files back into it, I'm now back to the point where I need to play with the boxes but before I do, I was wondering where the code is that I need to comment out or how to fix the code.

    Any help would be appretiated, thanks in advance!
    Luke 

  • Rune Grønkjær 1372 posts 3103 karma points
    Jun 19, 2012 @ 11:54
    Rune Grønkjær
    0

    Hi Luke,

    Take a look in the box_boxList.xslt file. After this line:

    <xsl:variable name="box" select="umbraco.library:GetXmlNodeById(.)" />

    Should be a:

    <xsl:if test="string($box/@id) != ''">

    If not that might be your problem. I think this is the only place in the starter kit that happens.

    /Rune

  • Luke Alderton 192 posts 509 karma points
    Jun 19, 2012 @ 12:15
    Luke Alderton
    0

    I've checked the file, on the line you specified, there is no following if statement! In my copy, the lines following it are:

    <xsl:variable name="box" select="umbraco.library:GetXmlNodeById(.)" />
    <xsl:variable name="firstitem" select="position() = 1"/>
    <xsl:variable name="lastitem" select="position() = count($boxIds)"/>

    So you're saying my file should look like this?

    <xsl:variable name="box" select="umbraco.library:GetXmlNodeById(.)" />
    <xsl:if test="string($box/@id) != ''"> 
    <xsl:variable name="firstitem" select="position() = 1"/>
    <xsl:variable name="lastitem" select="position() = count($boxIds)"/>

    Thanks in advance!
    Luke

     

  • Rune Grønkjær 1372 posts 3103 karma points
    Jun 19, 2012 @ 12:17
    Rune Grønkjær
    0

    Yes, or else it will crash if the $box varible is empty, or whatever it is. I have not yet succeeded in finding out why this is happing other than it's when you try to use it.

    /Rune

  • Luke Alderton 192 posts 509 karma points
    Jun 19, 2012 @ 13:36
    Luke Alderton
    1

    That seems to work, thanks for the help!

    Luke

  • Rune Grønkjær 1372 posts 3103 karma points
    Jun 19, 2012 @ 13:38
    Rune Grønkjær
    0

    Cool. You can test it by selecting a box in the multinode tree picker, and then delete the box node.

    /Rune

Please Sign in or register to post replies

Write your reply to:

Draft