title: Magento: Placing Order doesn't redirect to success page
body: <p>I have a little problem with placing order button on magento. For some reasons when I complete a order and click "Place Order" it doesn't redirect the page in a success page (or even elsewhere) it just stays in the checkout page with all the products still inside (image <a href="http://i.stack.imgur.com/74I3X.png" rel="nofollow">http://i.stack.imgur.com/74I3X.png</a> this is what happen when I click the place order button)</p>
  
  <p>I don't really know where to modify the redirect to another page.</p>
  
  <p>This is the code for the /Checkout/controllers/onepagecontroller.php</p>
  
  <pre><code>  /**
   * Order success action
   */
  public function successAction()
  {
      $session = $this-&gt;getOnepage()-&gt;getCheckout();
      if (!$session-&gt;getLastSuccessQuoteId()) {
          $this-&gt;_redirect('checkout/cart');
          return;
      }
  
      $lastQuoteId = $session-&gt;getLastQuoteId();
      $lastOrderId = $session-&gt;getLastOrderId();
      $lastRecurringProfiles = $session-&gt;getLastRecurringProfileIds();
      if (!$lastQuoteId || (!$lastOrderId &amp;&amp; empty($lastRecurringProfiles))) {
          $this-&gt;_redirect('checkout/cart');
          return;
      }
  
      $session-&gt;clear();
      $this-&gt;loadLayout();
      $this-&gt;_initLayoutMessages('checkout/session');
      Mage::dispatchEvent('checkout_onepage_controller_success_action', array('order_ids' =&gt; array($lastOrderId)));
      $this-&gt;renderLayout();
  }
  </code></pre>