Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Checkout failure


Ariffshah

Recommended Posts

Posted

Hi everybody,

 

I hope anybody can help me. I'm using oscommerce v 2.2 and the site are new. I try check my checkout and seem it has problem. Its appear as below:

 

Fatal error: Call to a member function call_api() on a non-object in /home/*****/public_html/checkout_process.php on line 102

 

and I also try and look at the php and it appear:

 

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

 

Hope you all can help me to rectified the problem I have at the moment.

 

Thank you and cheers.

Posted

$buysafe_module is a class. The error is telling you that this class is not available to the page.

 

First find the name of the page that the class (and function call_api() ) resides on. From the name of the class, I would say it is named 'buysafe.php' - probably in your 'catalog/includes/modules/payment' I would guess it should be anyway.

 

Anyhow this page is not being called prior to declaring

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

 

So a way to debug and check this is to manually put the file in above line 102

Such as if the file is in 'catalog/includes/modules/payment' and the name of the file is 'buysafe.php':

require ('includes/modules/payment/buysafe.php');

 

Then try it - if it works hen you will have to trace back and find why it is not being included. The class 'catalog/includes/classes/payment.php' should include all payments modules that are enabled.

If it is a payment module, actually I have never heard of this class - $buysafe_module..

Lloyd

Posted

Thank you photofxplus,

 

let me check if I can solve this. Your great help is much appreciated.

Posted

I have done a terrible mistake at http://perfumeauction.net/checkout_process.php. I hope any body can help me to restore back the checkout_process.php.

 

can i restore back the checkout_process.php with using other people php?. If can, please anybody provide me with the data. If not i have to re-install back with new oscommerce.

 

Hope the pro willing to help.

 

Thank you.

Posted

Yeah it looks good!

 

I guess you now believe to backup before editing. You should back up all files of your entire store when it is working or prior to making ANY changes.. At the very least backup the pages you are editing..

 

You obviously do not have a default install of osC - $buysafe_module - is not something I have seen.. dont know what it is.. Maybe someone else knows..

 

So did you install a contribution?? If so, and that page is in the contribution then there is your copy. If that page is not in the contribution then you should be able to use a default copy of osC but since your original checkout_success.php page declared the aforementioned error - I doubt if it was default.

 

So where did you get your store from?

What version is it?

Did you install any contributions - if so what were they?

Lloyd

Posted

Back up :'(

 

my terrible fault again. Im using osCommerce version osCommerce 2.2-MS2.

 

I get the store from Cpanel11

I get the contribution from toyibear.

 

photofxplus, can i copy other store coding and paste it to resolve this matter up?

 

 

Yeah it looks good!

 

I guess you now believe to backup before editing. You should back up all files of your entire store when it is working or prior to making ANY changes.. At the very least backup the pages you are editing..

 

You obviously do not have a default install of osC - $buysafe_module - is not something I have seen.. dont know what it is.. Maybe someone else knows..

 

So did you install a contribution?? If so, and that page is in the contribution then there is your copy. If that page is not in the contribution then you should be able to use a default copy of osC but since your original checkout_success.php page declared the aforementioned error - I doubt if it was default.

 

So where did you get your store from?

What version is it?

Did you install any contributions - if so what were they?

Posted

What was the name of the contribution??

 

Did you install it?

If you did then you should still have a copy of the checkout_success.php file in the contribution.

If you do not have the contribution then you will need to either download the contribution, extract the file then upload it to your catalog folder or contact toyibear -

 

Again - what is the name of the contribution??

Lloyd

Posted
What was the name of the contribution??

 

Did you install it?

If you did then you should still have a copy of the checkout_success.php file in the contribution.

If you do not have the contribution then you will need to either download the contribution, extract the file then upload it to your catalog folder or contact toyibear -

 

Again - what is the name of the contribution??

 

The name of the contribution is Basic Pink/Purple Template. I got it from http://addons.oscommerce.com/info/4771. I still keep the download of the contribution and I found the is no checkout_success.php copy there. :'(

Posted

No that file was not in that contribution. If that is all that you have done to the original installation is install that contribution then the original store was installed with the modifications including the buysafe_module. So the next question is, where did you get the store?

I know you said you installed it from the cPanel, but where did it come from? Does your webhost offer the store to you??

 

Thats who you need to see about getting a backup copy.. If it was your webhost, I doubt if they will give you a stand-alone copy. They will probably suggest that you reinstall the store.

If thats what it takes then-

You can backup the database prior to reinstall so if you have any customers and or orders you will be able to put that back. You can do this from your admin panel under tools/backup. Save the file to your computer and remember the name of the file (this is your original) - do not save the original in the backup folder - if you reinstall that file will be lost. Once you have reinstalled the store - download a complete copy of all files and save them on your computer along with another database backup file (these will be your default files), once again you can backup the database in your admin panel under tools/backups . You can save this database backup file in the admin/backups folder and it would not hurt to download a copy and save it with the default store files as well. That way you have a complete copy of all default store files and database.

Note: you may have to create the 'backups' folder in your admin folder.

 

After you have backed everything up then upload your original db backup file to the admin/backups folder. Then go to admin panel/tools/backups. You will see the file there, make sure you have the right one. Click on restore. Your store should be back like it was.

 

Except for the original error in your first post:

Fatal error: Call to a member function call_api() on a non-object in /home/*****/public_html/checkout_process.php on line 102

 

If that error is still there than I would contact the person that you got your store from - and I am assuming - your host..

 

Back up!

Once you have everything back and working then You can edit files in your store and if something breaks you will be able to put it back the way it was, including the database..

 

Anytime you make a change to a file, be sure and back up that file first.

 

Back up!

Lloyd

Posted

Lloyd Peck,

 

You been so kind for helping me to solve it. Will do back up next time.

 

hurm, my next mission is to back up the file to my computer and reinstall again. Will do that.

 

Thanks bro.

 

Will let you know what happen.

 

Cheers.

Posted

Result on my re installation as advised from Lloyd Peck,

 

It was great and very simple what I do:

 

Download back the Oscommerce file to my pc,

 

Up load the download copy of checkout_process.php and overwrite the corrupted one in the server,

 

Wallah, life become normal again and,

 

next assignment.

 

Thank you and cheers.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...