ybiggs Posted May 5, 2007 Share Posted May 5, 2007 When I try and execute the orders page I receive the following error, can anyone help? :'( :'( Customers Order Total Date Purchased Status Action { $status = tep_db_prepare_input($HTTP_GET_VARS['status']); $orders_query_raw = "select count(*) as total from orders o left join orders_total ot on (o.orders_id = ot.orders_id) and ot.class = 'ot_total' , orders_status s where o.orders_status = s.orders_status_id and s.language_id = '1' } else { $orders_query_raw = "select o.orders_id, o.customers_name, o.payment_method, o.date_purchased, o.last_modified, o.currency, o.currency_value, s.orders_status_name, ot.text as order_total from orders o left join orders_total ot on (o.orders_id = ot.orders_id) and ot.class = 'ot_total' , orders_status s where o.orders_status = s.orders_status_id and s.language_id = '1' order by o.orders_id DESC; } $orders_split = new splitPageResults($HTTP_GET_VARS['page'], MAX_DISPLAY_SEARCH_RESULTS, $orders_query_raw, $orders_query_numrows); $orders_query = tep_db_query($orders_query_raw); while ($orders = tep_db_fetch_array($orders_query)) { if ((!isset($HTTP_GET_VARS['oID']) || (isset($HTTP_GET_VARS['oID']) && ($HTTP_GET_VARS['oID'] == $orders['orders_id']))) && !isset($oInfo)) { $oInfo = new objectInfo($orders); } if (isset($oInfo) && is_object($oInfo) && ($orders['orders_id'] == $oInfo->orders_id)) { echo ' ' . "\n"; } else { echo ' ' . "\n"; } ?> Fatal error: Call to a member function on a non-object in E:\inetpub\vhosts\yybsplace.com\httpdocs\oscommerce\admin\orders.php on line 375 Line 375: <td class="smallText" valign="top"><?php echo $orders_split->display_count($orders_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $HTTP_GET_VARS['page'], TEXT_DISPLAY_NUMBER_OF_ORDERS); ?></td> Quote Link to comment Share on other sites More sharing options...
nerbonne Posted May 5, 2007 Share Posted May 5, 2007 Do you think it's appropriate to post the same question twice? http://www.oscommerce.com/forums/index.php?sho...=261744&hl= Quote Link to comment Share on other sites More sharing options...
ybiggs Posted May 5, 2007 Author Share Posted May 5, 2007 Yes, I think it was appropriate to clarify that the code identified was in my file, that would enable one to analyze the error from the appropriate frame of reference. Thanx Do you think it's appropriate to post the same question twice? http://www.oscommerce.com/forums/index.php?sho...=261744&hl= 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.