Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Order Check/Paypal problems - Returning to site


Recommended Posts



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)

// {{ 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());
[color="#FF0000"]    tep_db_perform(TABLE_ORDERS, $update_data_array, 'update', "orders_id = '" . (int)$insert_id . "'");[/color]
// }}


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

Link to comment
Share on other sites

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.


Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.


Check My About US For who am I and what My company does.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...