Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Where do you define the redirect?


tkm

Recommended Posts

Posted

Developing on local machine I get the following error when trying to log in

 

Fatal error: Call to undefined function: tep_redirect() in c:apachehtdocscataloglogin.php on line 54

 

 

I also get similar redirect errors when trying to buy items. I'm not going to be using ssl. Any ideas?

Posted

Hi tkm.

 

This function is declared in includes/functions/general.php and looks like this:

////

// Redirect to another page or site

 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);

   tep_exit();

 }

HTH

Best Regards

olby

Archived

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

×
×
  • Create New...