Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Error message, anyone know what to do?


Recommended Posts



I am getting this error message at the bottom of my store www.gkdesigns.ie/oscommerce. Does anyone know what to do to correct this?




Warning: Cannot modify header information - headers already sent by (output started at D:\webworld\gkdesigns\gkdesigns.ie\www\oscommerce\index.php:36) in D:\webworld\gkdesigns\gkdesigns.ie\www\oscommerce\index.php on line 342

/* $Id: index.php,v 1.1 2003/06/11 17:37:59 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright ? 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); // the following cPath references come from application_top.php $category_depth = 'top'; if (isset($cPath) && tep_not_null($cPath)) { $categories_products_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'"); $cateqories_products = tep_db_fetch_array($categories_products_query); if ($cateqories_products['total'] > 0) { $category_depth = 'products'; // display products } else { $category_parent_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " where parent_id = '" . (int)$current_category_id . "'"); $category_parent = tep_db_fetch_array($category_parent_query); if ($category_parent['total'] > 0) { $category_depth = 'nested'; // navigate through the categories } else { $category_depth = 'products'; // category has no products, but display the 'no products' message } } } require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT); ?>

Link to comment
Share on other sites

Personally, I think it's pathetic that you're charging someone to do something that you obviously have no idea how to do.


Second, did you even attempt to look at the documentation?


I honestly feel like I shouldn't give you this help, but here you go.



NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

Thanks for the ethics lesson m8 but i do poster websites and someone asked if id do this for them (at a massively reduced price) otherwise they wouldnt get it done at all. Thanks for the help though. :blush:

Link to comment
Share on other sites



I've checked all the php files i have edited since this problem started and none of them have spaces before or aftert the <?php and ?> . I'm thinking at this stage i might have to start again from scratch :angry:

Link to comment
Share on other sites


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

  • Create New...