title: Magento Duplicate Orders
body: <p>I have a Magento site using version <code>1.6.2.0</code> with which I'm experiencing problems with duplicate orders.</p>
  
  <p>Having researched the subject I have found mostly forum threads explaining that <code>1.4.x</code> had problems with duplicate orders and the solutions mentioned (even those on SO which I have found) merely suggest the user updates Magento to <code>&gt;1.4</code>.</p>
  
  <p>I have also found a proposed solution <a href="http://www.kassner.com.br/en/2011/01/07/magento-slow/" rel="nofollow noreferrer">here</a> but am reluctant to delete observers which will prevent downloadable purchases working.</p>
  
  <p>I've also spotted the Array Of Death fix mentioned a few times (e.g. <a href="http://www.magentocommerce.com/boards/viewthread/113901/P75/" rel="nofollow noreferrer">here</a>) but this problem isn't present in <code>1.6.x</code>, Zend appears to have resolved it.</p>
  
  <p>There are a couple of Javascript hacks suggested whereby the Confirm Order button is hidden upon submission but Magento <code>1.6.x</code> already does this.</p>
  
  <p>I have increased the payment gateway timeout configuration variable to 120 seconds and am as yet to see if it yields results. I can't test it as the problem is intermittent (and probably therefore caused by communication or lack thereof between the payment gateway and Magento).</p>
  
  <p>I am using Sagepay as the payment gateway.</p>
  
  <p>How might I further debug this?</p>