greatbritishmarket.co.uk Posted October 14, 2005 Share Posted October 14, 2005 Hi I have used my FTP to upload the index.php file that comes with the original osCommerce download. However, when I look at my liveshop the following message is on display : - Fatal error: Cannot redeclare tep_db_connect() (previously declared in /data/members/paid/g/r/greatbritishmarket.co.uk/htdocs/www/includes/functions/database.php:13) in /data/members/paid/g/r/greatbritishmarket.co.uk/htdocs/www/includes/functions/database.php on line 13 Can anyone tell me what is wrong here? I have noted below the first thirty odd lines from my index.php. I also can't find the main_define command in this index.php which will allow me to change the center body of text. Thanks For any help Steve <?php /* $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); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> Link to comment Share on other sites More sharing options...
kgt Posted October 14, 2005 Share Posted October 14, 2005 http://www.oscommerce.info/kb/osCommerce/G...on_Problems/198 Usually this happens when you upload a code file to the language directory. Contributions Discount Coupon Codes Donations Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.