Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error when trying to view/edit order in admin


Guest

Recommended Posts

Hi, whilst in admin & try to click invoice/packing slip or edit order i receive fatal errors. Not sure why as i havnt modified them recently. Heres the errors

When clicking invoice i get the following error:

Fatal error: Cannot instantiate non-existent class: order in /home/custom-p/public_html/admin/invoice.php on line 22

heres the code at the top of that file

 ?require('includes/application_top.php');

?require(DIR_WS_CLASSES . 'currencies.php');
?$currencies = new currencies();

?$oID = tep_db_prepare_input($HTTP_GET_VARS['oID']);
?$orders_query = tep_db_query("select orders_id from " . TABLE_ORDERS . " where orders_id = '" . (int)$oID . "'");

?include(DIR_WS_CLASSES . 'order.php');
?$order = new order($oID); ? ?<<<<<<<<<<<<<<< <<<<<THIS IS LINE 22
?>

 

If i try to view the order i get the following error:

Fatal error: Cannot instantiate non-existent class: order in /home/custom-p/public_html/admin/orders.php on line 120

Heres the code :

<?php
?if (($action == 'edit') && ($order_exists == true)) {
? ?$order = new order($oID); <<<<<<<<<<<<<<<<<<<<THIS IS LINE 120
?>

 

Seems to be a problem with $order = new order($oID);

The customer is able to view the order without any problem

Any ideas ? :(

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...