Forums / General Questions / DB write randomly fails: how to catch it?

DB write randomly fails: how to catch it?

Views: 501

Results 1 to 3 of 3
15 May 2013, 9:14 PM
#1
prorad avatar

prorad

New Zenner

Join Date:
Oct 2009
Posts:
2
Plugin Contributions:
0

DB write randomly fails: how to catch it?

Hi,

I am trying to track down an issue that has been popping up randomly in the last few months and I don't know exactly where to look at.
Basically, what happens is the following:

  • customer adds stuff to the shopping cart
  • customer goes through the checkout process
  • customer pays through paypal
  • paypal payment ends successfully, but order details are lost in the process
  • shop owner receives the paypal payment notification, but the notification does not contain the zenid and the order does not appear in the orders section.

The shop has a really low order rate (I'd say around 10 per month...) and this issue has popped up 3 or 4 times until now since november 2012. I suspect that for some reason the database write fails (but reads always succeed...maybe due to some kind of MySQL clustering/caching issue? I am not proficient with the LAMP stack, but I have seen something similar happening in Oracle environments), but I am not able to pinpoint it exactly to tell the hosting provider that it's their fault and not mine. Being a recent issue, I wouldn't blame ZC in the first place, unless there are known version issues between my version of ZC and the environment it lives in.

Other useful infos: the shop has gone live in may 2009. Since then, there has been no hosting changes, nor other disrupting changes I am aware of. PHP version is 5.3.21 (I know it's been upgraded in may 2011 and I remember having applied some kind of patch accordingly), MySQL is 5.1.61-0+squeeze1.

What I would need is some kind of logging to check if and when DB write fails (i had a look at the debug error logging utility, but don't know if it's appropriate and really how much it logs).
Any other suggestions that could lead me in the right direction are welcome.

Please tell me if you need any other details.

thanks in advance

15 May 2013, 9:43 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: DB write randomly fails: how to catch it?

You may be making it a lot more complicated than it really is. If the shop is using Paypal Standard, switch to Paypal Express and the issue should disappear.

15 May 2013, 10:47 PM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: DB write randomly fails: how to catch it?

v1.3.8a ... the shop has gone live in may 2009
If using ZenCart v1.3.8a your really need to upgrade NOW on your schedule versus getting hacked and having to perform a clean in adition to an upgrade

Zen-Venom Get Bitten