ghirsch Posted June 1, 2009 Posted June 1, 2009 When I try to access my Orders in admin I get: Fatal error: Cannot redeclare class order in /home/ghirsch/public_html/catalog/admin/includes/classes/order.php on line 13 Ive been looking for a way to fix this for a few days now with no success. This is what order.php looks like <?php /* $Id: order.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ class order { // THIS IS LINE 13 var $info, $totals, $products, $customer, $delivery; function order($order_id) { $this->info = array(); $this->totals = array(); $this->products = array(); $this->customer = array(); $this->delivery = array(); $this->query($order_id); } Any help would be immensely appreciated. Quote
spooks Posted June 1, 2009 Posted June 1, 2009 the class order has already been declared eleswhere, check what happens b4 this, Quote Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al.
ghirsch Posted June 1, 2009 Author Posted June 1, 2009 the class order has already been declared eleswhere, check what happens b4 this, Ok Sam, when you say check what happens before this what are you referring to? Im just a copy and paste hamster and have no idea how to code. I rely on following the instructions on these contribs completely. So in lamens terms how would I go about locating where this is already declared and when I do find it how would I begin to correct it. I know my questions makes it sound easy but any help or pointers are appreciated. Quote
ghirsch Posted June 2, 2009 Author Posted June 2, 2009 Ok Sam, when you say check what happens before this what are you referring to? Im just a copy and paste hamster and have no idea how to code. I rely on following the instructions on these contribs completely. So in lamens terms how would I go about locating where this is already declared and when I do find it how would I begin to correct it. I know my questions makes it sound easy but any help or pointers are appreciated. Im still looking for help on this one. Im starting to get desperate. Is there anyone that can help? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.