Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Header Problem in General.PHP


Recommended Posts

Yes, it's another of 'those' white space messes everything up problems ??



Okay, first, the error message

"Warning: Cannot modify header information - headers already sent by (output started at /home/nipj/public_html/shop/includes/application_top.php:480) in /home/nipj/public_html/shop/includes/functions/general.php on line 29"


and then i can't find what's wrong with the file general.php




// 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);       *** I think it's this line





Can anyone see what's wrong?

the whole file is here



It's driving me mad trying to find the problem!

Link to comment
Share on other sites


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

  • Create New...