Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning: Cannot add header information...


alougher

Recommended Posts

Posted

I am running on I guess old code (1.38) of html_ouptut.php. I put the fix in for the image proportion problem but could only get it working by downloading the new version of html_output.php (1.45) as it was erroring saying it couldnt reference a particular function. Anyway, I put the mod into this code and put it on the site. Everything works fine, all the images are displayed correctly but as soon as I go to the shopping cart I get the following error:

 

Warning: Cannot add header information - headers already sent by (output started at /hsphere/local/home/hogplum/hogplum.com/catalog/includes/functions/html_output.php:301) in /hsphere/local/home/hogplum/hogplum.com/catalog/includes/functions/general.php on line 23

 

Line 23 is this function:

 

// Redirect to another page or site

function tep_redirect($url) {

header('Location: ' . $url);

tep_exit();

}

 

Any ideas?

Posted

Sorry about that, I did scan the forums but couldn't find anything. Problem was there was a new-line character at the bottom of the page.

 

Thanks for pointing me in the right direction and I promise I'll search a little longer next time before posting! :)

Archived

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

×
×
  • Create New...