osCommerce "Headers already sent…" fix
Written on 07/10/15 at 21:39:15 EST by Jack Deth
Was having an issue in the admin section of oscommerce 2.3.4BS where I would get an error:


Warning: Cannot modify header information - headers already sent by (output started at /home/public_html/catalog/includes/languages/english/modules/content/header/cm_carousel.php:21) in /home/public_html/catalog/admin/includes/functions/general.php on line 38



The action I had done did save before getting this error, so I could still work in oscommerces admin section by backing up off the error page, but this is a pain in the rear…

looking around I was able to find an add-on designed to find the error and make it easier to fix.

"Headers already sent" help contribution

This simple script lets you input the error information and will check to see where the error is in your files.

in my case the error was a few line breaks after the closing code for php… seems a little thing like that is enough to mess up the admin section.

example:
code:
 
?>
  
  
  



should be:
code:
 
?>



those few lines were my headache…  hopefully this little script can find your headache…

for more information on this can be found here: http://forums.oscommerce.com/topic/376276-headers-already-sent/?pid=1587780#entry1587780

Forums and Comments Brought to you by: www.2xlnt.com - WA
The comments are owned by the poster. We aren't responsible for its content.