Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Trouble modifying application_top.php


Guest

Recommended Posts

I am trying to get the site to work without an frame and all i need to do is add my site header to application_top.php so that it appears on all the oscommerce pages but i can't get it to work without getting this error:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /hsphere/local/home/revengep/revengeproductsinc.com/catalog/includes/application_top.php:1) in /hsphere/local/home/revengep/revengeproductsinc.com/catalog/includes/functions/sessions.php on line 102

 

Please Help. Thanks guys

Link to comment
Share on other sites

i get the same problem whne i save the header info in a seperate php file on the server and include it in application_top.php at the beginning. I am very new to working with php so a start in the right direction is all i need

Link to comment
Share on other sites

i get the same problem whne i save the header info in a seperate php file on the server and include it in application_top.php at the beginning. I am very new to working with php so a start in the right direction is all i need

What about adding it to includes/header.php itself (or change/adapt it to your design)?

Link to comment
Share on other sites

will that apply it to all pages? i thought i had to use application_top because it was the first in line. i'll give it a try.

 

i changed the site back around so you can't see the error if anyone is wondering. i'll come back to let you know how it worked. thanks again!

Link to comment
Share on other sites

Trying to include html via application_top.php is not a good idea, application_top sets up the parameters including the session and if you output html before the session then you will get header errors.

 

As Jan said header.php is the place.

 

It is odd the way oscommerce is "organised" I must admit, the first thing I ever do to a new release is "reorganise it" so that header goes from doctype to <-- body text //--> (including column_left) and footer goes from <-- body text eof //--> to </html> (including column_right)

Link to comment
Share on other sites

i just needed a little direction. thanks again!!!

 

I will post a link to the site when it is revamped.

 

I am actually a fine art major so the help i get from these forums is all i've got so i don't end up just another starving artist :)

Link to comment
Share on other sites

i just ran into some more trouble. i can access some parts of my site but i get this error when i try to click the my account link:

 

Warning: Cannot modify header information - headers already sent by (output started at /hsphere/local/home/revengep/revengeproductsinc.com/catalog/includes/application_top.php:654) in /hsphere/local/home/revengep/revengeproductsinc.com/catalog/includes/functions/general.php on line 54

 

here is the link: http://www.revengeproductsinc.com/catalog

Link to comment
Share on other sites

i just ran into some more trouble. i can access some parts of my site but i get this error when i try to click the my account link:

 

Warning: Cannot modify header information - headers already sent by (output started at /hsphere/local/home/revengep/revengeproductsinc.com/catalog/includes/application_top.php:654) in /hsphere/local/home/revengep/revengeproductsinc.com/catalog/includes/functions/general.php on line 54

 

here is the link: http://www.revengeproductsinc.com/catalog

 

well i found out that you can't leave empty space after php tags:):):)figured it out myself. have a good one everyone!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...