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.
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...?
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:
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?
I have removed all javascript from site, I have even loaded the view on its own, no layout around it and it is still returning to home page.
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...
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?
FormPost crashing
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?
Hi Mario
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.
Kind regards
Anders
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...?
Hi Mario
Are you running the latest Tea Commerce version?
Hi Anders,
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:
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?
I have removed all javascript from site, I have even loaded the view on its own, no layout around it and it is still returning to home page. 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 :(:
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...