ronan Posted September 2, 2005 Share Posted September 2, 2005 Hey, 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? Thanks 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 More sharing options...
Guest Posted September 2, 2005 Share Posted September 2, 2005 corrupted files somewhere? also see this thread http://www.oscommerce.com/forums/index.php?showtopic=168296 Link to comment Share on other sites More sharing options...
ronan Posted September 2, 2005 Author Share Posted September 2, 2005 *Bump ......... Im in serious need of some help otherwise im screwed, this site is for a client!! Link to comment Share on other sites More sharing options...
wizardsandwars Posted September 2, 2005 Share Posted September 2, 2005 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. http://www.oscommerce.info/kb/osCommerce/G...mon_Problems/15 ------------------------------------------------------------------------------------------------------------------------- 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 More sharing options...
ronan Posted September 2, 2005 Author Share Posted September 2, 2005 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 More sharing options...
ronan Posted September 2, 2005 Author Share Posted September 2, 2005 Arggggggg!!!! 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.