datawebuk Posted March 11, 2008 Share Posted March 11, 2008 Can you help with this one? After I make the changes to admin/orders.php I get an error when trying to access that page: Fatal error: Cannot redeclare class currencies in /home/sites/spacomponents.co.uk/public_html/admin/includes/classes/currencies.php on line 16 Here is the top of the code in the file: <?php /* $Id: orders.php 8777 2006-03-20 16:17:17Z jim $ 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'); //---PayPal WPP Modification START ---// //Since the admin's configure.php file is STILL missing defines include(DIR_FS_DOCUMENT_ROOT . DIR_WS_INCLUDES . 'configure.php'); include(DIR_WS_CLASSES . 'order.php'); require(DIR_WS_CLASSES . 'currencies.php'); $currencies = new currencies(); include(DIR_WS_INCLUDES . 'paypal_wpp/paypal_wpp_include.php'); $paypal_wpp = new paypal_wpp_admin; //---PayPal WPP Modification END ---// require(DIR_WS_CLASSES . 'currencies.php'); $currencies = new currencies(); $orders_statuses = array(); $orders_status_array = array(); $orders_status_query = tep_db_query("select orders_status_id, orders_status_name from " . TABLE_ORDERS_STATUS . " where language_id = '" . (int)$languages_id . "'"); while ($orders_status = tep_db_fetch_array($orders_status_query)) { $orders_statuses[] = array('id' => $orders_status['orders_status_id'], 'text' => $orders_status['orders_status_name']); $orders_status_array[$orders_status['orders_status_id']] = $orders_status['orders_status_name']; } I removed the code (shown coloured RED) and I then get this message: Fatal error: Cannot redeclare class order in /home/sites/spacomponents.co.uk/public_html/admin/includes/classes/order.php on line 13 Can you point me in the right direction to resolve this? Thanks Quote Link to comment Share on other sites More sharing options...
datawebuk Posted March 11, 2008 Author Share Posted March 11, 2008 I put this as a new topic instead of a reply to the topic http://www.oscommerce.com/forums/index.php?showtopic=174981 This post is in the wrong place. Quote Link to comment Share on other sites More sharing options...
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.