Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal error: Cannot instantiate non-existent class


Guest

Recommended Posts

I am currently working on setting up a new installation, and have added several contributions. As I was working last night (Really LATE :'( ), I attempted to access the Orders module in the ADMIN control panel, and recieved the page below:

 

} else { $email = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n" . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]); } tep_mail($check_status['customers_name'], $check_status['customers_email_address'], EMAIL_TEXT_SUBJECT, $email, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); $customer_notified = '1'; } tep_db_query("insert into " . TABLE_ORDERS_STATUS_HISTORY . " (orders_id, orders_status_id, date_added, customer_notified, comments) values ('" . (int)$oID . "', '" . tep_db_input($status) . "', now(), '" . tep_db_input($customer_notified) . "', '" . tep_db_input($comments) . "')"); $order_updated = true; } if ($order_updated == true) { $messageStack->add_session(SUCCESS_ORDER_UPDATED, 'success'); } else { $messageStack->add_session(WARNING_ORDER_NOT_UPDATED, 'warning'); } tep_redirect(tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('action')) . 'action=edit')); break; case 'deleteconfirm': $oID = tep_db_prepare_input($HTTP_GET_VARS['oID']); tep_remove_order($oID, $HTTP_POST_VARS['restock']); tep_redirect(tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')))); break; } } if (($action == 'edit') && isset($HTTP_GET_VARS['oID'])) { $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 . "'"); $order_exists = true; if (!tep_db_num_rows($orders_query)) { $order_exists = false; $messageStack->add(sprintf(ERROR_ORDER_DOES_NOT_EXIST, $oID), 'error'); } } include(DIR_WS_CLASSES . 'order.php'); ?>         
 Administration Support Site  |  Online Catalog  |  Administration   

Fatal error: Cannot instantiate non-existent class: box in /hsphere/local/home/johnseyb/greenmountainspecialties.com/admin/includes/boxes/configuration.php on line 33

 

I have tried reuploading orignal versions of the configuration.php and the classes/box.php to no avail. I am new to osCommerce and PHP, but learning quickly.

 

Any pointers to help me look at the right thing, or provide additional information would be greatly appreciated.

 

Thanks for your help!

 

John

Link to comment
Share on other sites

The problem is in admin/orders.php - you have a missing <?php tag  :P

 

Matti

 

 

Thank you Matti! You got me on the right track - it was actually in the admin/include/languages/english/orders.php file! Somehow I copied part of the Admin/orders.php file over to the /english/ file, hence the missing <? php tag. After doing a compare with the stock file, I deleted all the "Oops" text :blush: , and everything seems fine. Thanks again for your help! I am very impressed with the amount and quality of help available in these forums!

 

Sincerely,

 

John

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...