Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cannot add header information


-=harry=-

Recommended Posts

Posted

I messed up somephin

I was trying to make oscommerce look like the rest of my site. everything was going well.

but now when i click on my account or check out I get an error

 

Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site133/fst/var/www/html/catalog/includes/languages/english.php:324) in /home/virtual/site133/fst/var/www/html/catalog/includes/functions/general.php on line 23

 

has anyone come across this one before?

 

line 23 of general.php is this function

////

// Redirect to another page or site

function tep_redirect($url) {

header('Location: ' . $url);

tep_exit();

}

 

thanks,

Posted
has anyone come across this one before?

 

No never. Must be a bug in the code... Think you need to report that.

 

Just joking. :D (been asked a few times before.... today)

You have whitespaces and / or hard returns in your code.

Remove them and the problem is fixed.

Do a search on 'headers + 'sent'' on the forum or look here:

http://www.oscommerce.com/community/faq,1-7/q,17

 

HTH

Mattice

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Posted

Read the faq entryif you have a sec...

working with php you WILL encounter the problem again, guaranteed :D

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Archived

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

×
×
  • Create New...