Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have my cart with the buttons to increase/decrease/remove item. If I click any of those buttons quickly TeaCommerce crashes with a response:
The page cannot be displayed because an internal server error has occurred.
So 500 error
The thing is that this doesn't happen on the Starter Kit.
Any ideas. Has anyone had this issue before?
Tried to look in the Umbraco log what the server error is? If you are in debug mode and the setting for logging is correct you should be able to see what that server 500 error is giving as output in the log files.
Hey Anders, this is the error:
Violation of PRIMARY KEY constraint 'PKTeaCommerceOrderLinePrice1'. Cannot insert duplicate key in object 'dbo.TeaCommerceOrderLinePrice'. The duplicate key value is (230, 3).
It looks like it's trying to insert multiples lines at the same time and crashes...?
Are you running the latest Tea Commerce version?
Sorry, I missed your response. I had 3.1.4 installed and I just installed 3.2.0. Still getting same problem.
In addition to that (in case is somehow related), when I press any of the buttons on the cart to add, remove items the values are updated but instead refreshing the same page it goes to the home page. This is an example of one of the forms:
<form action="/base/TC/FormPost.aspx" method="post">
<input name="storeId" type="hidden" value="1">
<input name="AddOrUpdateOrderLine" type="hidden" value="orderLineId : orderLineId, quantity : quantity, overwriteQuantity : overwriteQuantity">
<input name="overwriteQuantity" type="hidden" value="true">
<input name="orderLineId" type="hidden" value="@orderLine.Id">
<input type="text" onblur="this.form.submit()" name="quantity" class="form-control text-center" value="@orderLine.Quantity.ToString( "0.####" )" pattern="[0-9]*" min="1">
It's weird that it redirect to the frontpage as the action is set to Tea Commerce API method and it will just redirect back to the same page. Do you have other custom code that might do some of that magic?
Not sure if it can be of help but when the form is posted the Http Referer is poiting to the home. I have tested the TC Stater Kit and the referer is the current page. No idea why the referer is not my current page...
I found the issue with the form returning to the homepage. Somehow this line was on my master template breaking everything :(:
<meta name="referrer" content="origin">
That issue with the form crashing when clicking multiple times is still happening though.
So if you click ones it work fine? If you click two times with lets say 5 sec between - does it still work? Is it only if you push multiple times as quickly as you can that you see the bug?
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted