OSCOMMERCE SUPPORT CALL 702-453-3332

 

Help - Search - Members - Calendar
Full Version: orders are getting a Fatal Error
osCommerce Community Support Forums > osCommerce Online Merchant v2.x > Contributions / Add-Ons > Payment Modules > PayPal
computaplanet
Hi all I am getting a strange message when customers are trying to order...

Fatal error: Call to a member function on a non-object in /home/expressi/public_html/shop/checkout_process.php on line 115

When I checked out the page checkout_process.php on line 115 this code is presented: -

CODE
$checkout_result = $buysafe_module->call_api('SetShoppingCartCheckout', $checkout_params);


This is something to do with the buysafe module but I dont have this installed.

The problem it is causing is kicking my customers out and isnt returning them to my store... I am getting a notification that people have paid and also what people have ordered but no other information (such as the delivery address)...

can anyone help me or shed some light on this for me?
geoffreywalton
Back up that file and revert to the original version. Then reapply any contributions changes.

Just a thought but is this a template shop?

If not and it is one you did yourself how did it get there? A contribution or hacking?
computaplanet
QUOTE (geoffreywalton @ May 4 2008, 09:30 AM) *
Back up that file and revert to the original version. Then reapply any contributions changes.

Just a thought but is this a template shop?

If not and it is one you did yourself how did it get there? A contribution or hacking?



Hi sorry for sounding thick but I dont understand your responce. I havent made any changes to the payment modules except for putting in my paypal email address so the contributions I have added shouldnt affect it should they?

How do you revert to the original version and original version of what? just the payment mods or the entire shop?

The shop is a standard install with lots of modifications on top although the mods are mainly backend and style changes.

How did what get where?

thanks for replying your help is greatly appreciated!!
Coopco
QUOTE (computaplanet @ May 4 2008, 11:23 PM) *
Hi sorry for sounding thick but I dont understand your responce. I havent made any changes to the payment modules except for putting in my paypal email address so the contributions I have added shouldnt affect it should they?

How do you revert to the original version and original version of what? just the payment mods or the entire shop?

The shop is a standard install with lots of modifications on top although the mods are mainly backend and style changes.

How did what get where?

thanks for replying your help is greatly appreciated!!

It is not part of the stock osc file, so you either installed it or you have a template (as asked by geoffreywalton).

Why not change it to this
// $checkout_result = $buysafe_module->call_api('SetShoppingCartCheckout', $checkout_params);
and see what happens?
computaplanet
I cannot thank you enough mate!!! You are a complete star!!! Sorted out the problem by commenting out the following

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 . "'");
//}
// }}
QUOTE (Coopco @ May 4 2008, 02:57 PM) *
It is not part of the stock osc file, so you either installed it or you have a template (as asked by geoffreywalton).

Why not change it to this
// $checkout_result = $buysafe_module->call_api('SetShoppingCartCheckout', $checkout_params);
and see what happens?



Cheers again!!
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.