lextech Posted January 24, 2011 Share Posted January 24, 2011 I fix MOST of my OSC issues myself, but I don't know what this error is this time. A customer tried to place an order and he got this error. Fatal error: Call to a member function call_api() on a non-object in /home3/lextech/public_html/osCommerce/checkout_process.php on line 127 So I went in and found $checkout_result = $buysafe_module->call_api('SetShoppingCartCheckout', $checkout_params); and I have no idea what to do with it. If it were a syntax error I think I'd see it, so it's a configuration error I don't know how to fix. Any help? Here's an overall shot with the error line 17 right in the middle. RC2.2a Link to comment Share on other sites More sharing options...
lextech Posted January 25, 2011 Author Share Posted January 25, 2011 my current fix was to eliminate from line 124 to 136. no more error, taking the buysafe out of the php on those lines. // {{ buySAFE Module $buysafe_cart_id = MODULE_BUYSAFE_BUYSAFE_CART_PREFIX . '-' . tep_session_id() . (tep_count_customer_orders()-1); $checkout_params = array('WantsBond' => ($WantsBond ? $WantsBond : 'false'), 'orders_id' => $insert_id, 'buysafe_cart_id' => $buysafe_cart_id); $checkout_result = $buysafe_module->call_api('SetShoppingCartCheckout', $checkout_params); if (is_array($checkout_result) && $checkout_result['IsBuySafeEnabled'] == 'true') { $update_data_array = array('buysafe_cart_id' => $buysafe_cart_id, 'buysafe_client_ip' => tep_get_ip_address(), 'buysafe_session_id' => tep_session_id()); tep_db_perform(TABLE_ORDERS, $update_data_array, 'update', "orders_id = '" . (int)$insert_id . "'"); } // }} Got a better way? RC2.2a Link to comment Share on other sites More sharing options...
FIMBLE Posted January 25, 2011 Share Posted January 25, 2011 That will be fine if you do not use buy safe. Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.