Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Headers error


Steve D

Recommended Posts

Hi,

 

I am getting the following error message each time I try and log in, create a new user, check out and so on. I don't have any idea why the error is occuring, as I have not touched or tinkered with the files it references. :(

 

Any and all suggestions/help much appreciated!

 

Cheers

 

Warning: Cannot add header information - headers already sent by (output started at /includes/languages/english/login.php:1) in /includes/functions/general.php on line 29

 

Oh, and here is the code from 'general.php' with line 29 being the bit that says 'header ('location: ' . $url);'

 

// 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();
 }

Link to comment
Share on other sites

you probably modified the login.php file, take a look at the knowledge base, and search for headers already sent, a great explnation there

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...