Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Checkout hangs because of Redirect


Recommended Posts

Hi guys - I have a problem after the client clicks the Confirm button on the checkout_confirmation page.


Hitting submit in the checkout_confirmation page calls the checkout_process page.

At the end of checkout_process is a simple redirect to checkout_success :


It is here that the page is hanging for sometimes 90 seconds! Here is the line from checkout_process :


tep_redirect(tep_href_link(FILENAME_CHECKOUT_SUCCESS, '1', 'SSL'));


Does anyone have any ideas what could be causing this ? Could it be a server isssue ? The tep_redirect function simply returns the header ('Location : ') php function :


function tep_redirect($url) {

if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on') ) { // We are loading an SSL page

if (substr($url, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) { // NONSSL url

$url = HTTPS_SERVER . substr($url, strlen(HTTP_SERVER)); // Change it to SSL




header('Location: ' . $url);





In my tests - I'll receive the confirmation email *beofre* I see the success page in the browser!






Within this page - the last process is a redirect

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...