Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Live Site...continuing Header Errors


rodrico

Recommended Posts

Posted

I have got rid of many errors I was having, but still need some help.

 

When I load my site or any subsequent page I get the following error message:

 

Warning: Cannot modify header information - headers already sent by (output started at /hsphere/local/home/rodrico/eratoys.com/catalog/includes/functions/general.php:1297) in /hsphere/local/home/rodrico/eratoys.com/catalog/includes/functions/general.php on line 1174

 

When I try to add an item to the shopping cart I get the following error in addition to the one above:

Warning: Cannot modify header information - headers already sent by (output started at /hsphere/local/home/rodrico/eratoys.com/catalog/includes/functions/general.php:1297) in /hsphere/local/home/rodrico/eratoys.com/catalog/includes/functions/general.php on line 29

 

My site is www.eratoys.com

 

Here are the lines of code casing the error.

 

.../functions/general.php line 1174:

 

function tep_setcookie($name, $value = '', $expire = 0, $path = '/', $domain = '', $secure = 0) {
setcookie($name, $value, $expire, $path, (tep_not_null($domain) ? $domain : ''), $secure);
 }

 

where the setcookie...line is line 1174.

 

In addition here is the next code segment:

 

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

where the line: header('Location: ' . $url); is line 29

 

Any ideas?? I have lost hair over this one.

 

THANKS

Posted

Check for whitespace in catalog/includes/functions/general.php, which could be a blank line or just a space at the beginning or end.

 

The very first line should be

 

<?php

 

and the last line should be

 

?>

 

no spaces before or after.

Posted
Check for whitespace in catalog/includes/functions/general.php, which could be a blank line or just a space at the beginning or end.

 

The very first line should be

 

<?php

 

and the last line should be

 

?>

 

no spaces before or after.

 

 

I've tried that already and no luck...thanks

Posted
I still cannot figure this out. Can anyone help me?? I am losing sales.

 

Rod

 

check it again as the solution of spax is the only solution.

Treasurer MFC

Posted
check it again as the solution of spax is the only solution.

 

 

What do you mean by "spax"...white space??

Rod

Archived

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

×
×
  • Create New...