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.
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.
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
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.
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
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
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
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
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
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
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
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
That seems to work, thanks for the help!
Luke
Cool. You can test it by selecting a box in the multinode tree picker, and then delete the box node.
/Rune
is working on a reply...