Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error in account history info.php file


srv82690

Recommended Posts

Posted

Fatal error: Cannot instantiate non-existent class: order in /homepages/26/d112437891/htdocs/account_history_info.php on line 37

 

This is line 37;

 

$breadcrumb->add(NAVBAR_TITLE_2, tep_href_link

Posted

Sounds like you are missing some code on that page. I just opened a stock osCommerce page without any edits and my line 37 is different... the one you put (which is only a partial line) is up a few lines.

 

my line 37 is

$order = new order($HTTP_GET_VARS['order_id']);

 

the line you posted is line 33 and the full line should be

$breadcrumb->add(NAVBAR_TITLE_2, tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL'));

 

Here is the top of the stock osCommerce page, maybe you can spot what is wrong.

<?php
/*
 $Id: account_history_info.php,v 1.100 2003/06/09 23:03:52 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

 require('includes/application_top.php');

 if (!tep_session_is_registered('customer_id')) {
$navigation->set_snapshot();
tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
 }

 if (!isset($HTTP_GET_VARS['order_id']) || (isset($HTTP_GET_VARS['order_id']) && !is_numeric($HTTP_GET_VARS['order_id']))) {
tep_redirect(tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL'));
 }

 $customer_info_query = tep_db_query("select customers_id from " . TABLE_ORDERS . " where orders_id = '". (int)$HTTP_GET_VARS['order_id'] . "'");
 $customer_info = tep_db_fetch_array($customer_info_query);
 if ($customer_info['customers_id'] != $customer_id) {
tep_redirect(tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL'));
 }

 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ACCOUNT_HISTORY_INFO);

 $breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_ACCOUNT, '', 'SSL'));
 $breadcrumb->add(NAVBAR_TITLE_2, tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL'));
 $breadcrumb->add(sprintf(NAVBAR_TITLE_3, $HTTP_GET_VARS['order_id']), tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $HTTP_GET_VARS['order_id'], 'SSL'));

 require(DIR_WS_CLASSES . 'order.php');
 $order = new order($HTTP_GET_VARS['order_id']);
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Posted

You aren't available to fix this for a fee are you? The error just keeps moving around. I think some pages need to be reloaded, the database is fine just the shipping confirmations seem out of whack.

 

Scott White

913-634-1630

[email protected]

 

 

 

 

 

 

Fatal error: Cannot instantiate non-existent class: order in /homepages/26/d112437891/htdocs/account_history_info.php on line 37

 

This is line 37;

 

$breadcrumb->add(NAVBAR_TITLE_2, tep_href_link

Archived

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

×
×
  • Create New...