Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

tep_redirect not working on 4.3.8


labratt

Recommended Posts

how can i get tep_redirect to work on 4.3.8... this is the error i get

 

Warning: Cannot modify header information - headers already sent by (output started at /website/oscom/catalog/index.php:37) in /website/oscom/catalog/includes/functions/general.php on line 29

 

i remove this line

tep_redirect('index.php?cPath=2');

 

and it does not give me an error... please help

Link to comment
Share on other sites

Redirects require that the web server write an HTTP header. If your code has already started producing output, then headers have already been written. What the error message is telling you is that in index.php, you have output being written before the line

tep_redirect('index.php?cPath=2');

If you have any blank lines or HTML code outside of the <?php ?> tages, or use echo, print(), etc before you call te_redirect(), this will cause the error.

Contributions

 

Discount Coupon Codes

Donations

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...