Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

header errors


spectsteve7

Recommended Posts

I've been noticing with the most recent version of os that I have the following error display.

 

Warning: Cannot modify header information - headers already sent by (output started at /home/content/m/l/r/mlrmotorsports/html/catalog/includes/application_top.php:514) in /home/content/m/l/r/mlrmotorsports/html/catalog/includes/functions/general.php on line 33

 

 

Am I putting "my html header" in the wrong location? I always thought that my design should go in the application_top.php and the footer.php.

 

If I take out my html it works fine. Is there a way to stop this error. I've been to the knowledge base and looked up "headers already sent" and checked for spacing issues. I'm lost.

Link to comment
Share on other sites

I've been noticing with the most recent version of os that I have the following error display.

 

Warning: Cannot modify header information - headers already sent by (output started at /home/content/m/l/r/mlrmotorsports/html/catalog/includes/application_top.php:514) in /home/content/m/l/r/mlrmotorsports/html/catalog/includes/functions/general.php on line 33

Am I putting "my html header" in the wrong location? I always thought that my design should go in the application_top.php and the footer.php.

 

If I take out my html it works fine. Is there a way to stop this error. I've been to the knowledge base and looked up "headers already sent" and checked for spacing issues. I'm lost.

 

 

In a standard Osc installation the header is in virtually every file in the root directory. (not includes/application_top)

 

To allow me a single location for headers I changed the way that files are called in Osc, for you I loosely understand (never used it ) that there is a contrib called STS that allows for easy templating.

Link to comment
Share on other sites

To allow me a single location for headers I changed the way that files are called in Osc, for you I loosely understand (never used it ) that there is a contrib called STS that allows for easy templating.

You don't have to make changes as drastic as this - or go anywhere near STS. The problem is caused by erraneous whitespce in your code which just has to be removed for the problem to be solved. Check this out:

 

http://www.geeklog.net/faqman/index.php?op=view&t=38

 

It refers to Geeklog - not OSC - but you'll get the idea ;-)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...