OSCOMMERCE SUPPORT CALL 702-453-3332

 

Help - Search - Members - Calendar
Full Version: Order Check/Paypal problems - Returning to site
osCommerce Community Support Forums > osCommerce Online Merchant v2.x > Contributions / Add-Ons > Order Total Modules
rka81
Hello,

I recently installed the OrderCheck conrtibution to solve the whole ' order totals' not showing and it was, as far as i knew, wokring well, with all my orders and payment being received and recorded.

However, a customer contacted me and mentioned that after added an item to their cart and going thru the Paypal process of paying they were not returned to my site and received an error message instead (tho i did receive their order and payment etc)

The error seems to be on the checkout_process.php where the OrderCheck php is.

Error Message
"Fatal error: Call to a member function on a non-object in /home/rka81/public_html/fmfy/fmfy/checkout_process.php on line 125"

Part of the code from checkout_process.php (Line 125 is in Red)
CODE
// {{ 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' => getenv('REMOTE_ADDR'),
'buysafe_session_id' => tep_session_id());
tep_db_perform(TABLE_ORDERS, $update_data_array, 'update', "orders_id = '" . (int)$insert_id . "'");
}
// }}


Would really appreciate any help or pointers so that I can sort this out as I am running (or have run) out of ideas....

Thanks is advance
satish
tep_db_perform(TABLE_ORDERS, $update_data_array, 'update', "orders_id = '" . (int)$insert_id . "'");


This for sure is not the line that is create the bug.
"Fatal error: Call to a member function on a non-object

As there is no reference to any object on this line.
Satish
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.