SXM Posted May 9, 2008 Posted May 9, 2008 I have a problem with the website when the client confirm the order (the last step to pay) the error on line 102 appear, It is like that: Fatal error: Call to a member function call_api() on a non-object in /home/webpage/public_html/webpage.com/checkout_process.php on line 102 I think the admin panel is good. The problem comes when people go to the last step to pay the product, the OSC shows the message that I gave you. It happens only when they select the cash or check payment, if they use the paypal option the website shows the paypal page and that's correct, but when they select the other option the website shows the error, I think I have to re-direct something but I don't know what. Please help me!! :thumbsup: :thumbsup: Thank you SXM
Guest Posted May 9, 2008 Posted May 9, 2008 I have a problem with the website when the client confirm the order (the last step to pay) the error on line 102 appear, It is like that: Fatal error: Call to a member function call_api() on a non-object in /home/webpage/public_html/webpage.com/checkout_process.php on line 102 I think the admin panel is good. The problem comes when people go to the last step to pay the product, the OSC shows the message that I gave you. It happens only when they select the cash or check payment, if they use the paypal option the website shows the paypal page and that's correct, but when they select the other option the website shows the error, I think I have to re-direct something but I don't know what. Please help me!! :thumbsup: :thumbsup: Thank you SXM Without knowing what line 102 is, the call_api is not a part of the stock checkout_process.php, so if you made manual edits to the file, recheck those edits.
SXM Posted May 9, 2008 Author Posted May 9, 2008 I'm really sorry, Maybe it is annoying for you but I have this problem and I don't find the answer, I didn't change the checkout_process.php. The only change that I made is, let the client pay with cash and check. That option is in "payment modules" Thank you :thumbsup: SXM
Guest Posted May 9, 2008 Posted May 9, 2008 How about you tell us what line 102 is? As Leslie said, call_api is not a part of the stock checkout_process.php so someone has done something somewhere!
SXM Posted May 9, 2008 Author Posted May 9, 2008 Hello, Thank you for answering!! Now the error changed, I don't know why to: Fatal error: Call to a member function call_api() on a non-object in /home/webpageserver/public_html/webpage.com/checkout_process.php on line 203 THE LINE 203 HAS THIS: $checkout_result = $buysafe_module->call_api('SetShoppingCartCheckout', $checkout_params); :thumbsup: SXM
SXM Posted May 9, 2008 Author Posted May 9, 2008 I tried to pay with paypal and in the last step paypal were saying that everything was fine and in 10 seconds it was going to send me back to my website. it didn't do it, instead the error message appeared "Fatal error on line 203". the same error that appeared before when I was trying to pay with cash or check. Please help me! the website is supposed to be working and it is not. I don't know what to do!!! SXM
Guest Posted May 9, 2008 Posted May 9, 2008 At a rough guess (as your not giving much to go on!) you have installed either a postage or payment module which needs api for example HSBC or I think maybe UPS? Anyway the best thing for you to do is to either list the payment and postage options you have in the admin section to see what's what or to ask your client if they have had any work done on the website because that is not normal in checkout_process.php The standard checkout_process.php file has got 280 lines, how many has yours got?
SXM Posted May 9, 2008 Author Posted May 9, 2008 I'm trying to give you all the information that I think could be important to fix this problem. I am the only one that was and is working with this website. The checkout_process.php has 595 lines, it is like that since I installed the STS 4.5.3. The STS didn't change the checkout_process.php or at leas it didn't have any folder or code for that folder. The first time I work with that folder is now with this problem In the payment module I have selected: Cash: Enable Cash On Delivery Module True Payment Zone --none-- Set Order Status default Sort order of display. 0 Check/Money Order: Make Payable To: Send To: Address... United States Phone: 407-000-0000 FAX: 407-000-0000 Your order will not ship until we receive payment. Enable Check/Money Order Module True Payment Zone --none-- Set Order Status default Sort order of display. 0 Make Payable to: Paypal: Enable PayPal Module True E-Mail Address [email protected] Transaction Currency Only USD Payment Zone --none-- Set Order Status default Sort order of display. 0 THANK YOU FOR YOUR TIME AND HELP! :thumbsup: SXM
SXM Posted May 9, 2008 Author Posted May 9, 2008 After you said that the checkout_process.php has only 280 lines and I had 595 I copied and pasted the codes of the folder from a new OSCommerce system to my OSC System, Now the problem is over. I don't know if I'm going to have problems later but now the shopping cart is working. If some one knows why I had 595 lines in the checkout_process.php folder let me know (I know I am the person who is supposed to know), I am asking because maybe some one had the same problem before, because I don't know why it was like that. I didn't change the checkout_process.php before until today. THANKS YOU EVERYBODY!!! THANK YOU FOR YOUR TIME AND HELP!!! :lol: :thumbsup: :lol: :thumbsup: :lol: :thumbsup: :lol: :thumbsup: SXM
bkellum Posted May 9, 2008 Posted May 9, 2008 After you said that the checkout_process.php has only 280 lines and I had 595 I copied and pasted the codes of the folder from a new OSCommerce system to my OSC System, Now the problem is over. I don't know if I'm going to have problems later but now the shopping cart is working. If some one knows why I had 595 lines in the checkout_process.php folder let me know (I know I am the person who is supposed to know), I am asking because maybe some one had the same problem before, because I don't know why it was like that. I didn't change the checkout_process.php before until today. THANKS YOU EVERYBODY!!! THANK YOU FOR YOUR TIME AND HELP!!! :lol: :thumbsup: :lol: :thumbsup: :lol: :thumbsup: :lol: :thumbsup: SXM Jessie, I think it may have to do with your initial osCommerce installation was done using a cPanel Fantastico autoinstall that includes the unecessary "BuySafe" module. This module is not part of a stock osC and shouldn't be automatically included but that is what Fantastico installations are currently doing. I strongly suggest avoid installing osC using any type of auto-installer as you never know what could be lying within the code. A stock osC installation is a very simple 5 to 10 job at most. Glad you got your issues worked out. :thumbsup: Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE
Guest Posted May 9, 2008 Posted May 9, 2008 Rather then list what you have selected you should list ALL the options you have. Replacing the file may have solved this issue but of it means that over 250 lines of code has been deleted which I would think will cause problems with something so it is better to fix this problem rather then resolve it by deleting code which is most likely used for something else...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.