This is a discussion on PayPal error "Call to a member function on a non-object within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; Testing payment process with PayPal sandbox. The PayPal payment completes OK, but when I click "Continue" at the last PayPal ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Testing payment process with PayPal sandbox. The PayPal payment completes OK, but when I click "Continue" at the last PayPal screen to return to my website, I get: Fatal error: Call to a member function on a non-object in [redacted] ... /catalog/includes/modules/payment/paypal_ipn.php on line 521 The line in question reads: $order_total_modules->apply_credit(); xargs grep from /catalog for " apply_credit" (with leading space): ./includes/classes/order_total.php: function apply_credit() { ./includes/modules/order_total/ot_coupon.php:function apply_credit() { ./includes/modules/order_total/ot_gv.php: function apply_credit() { Is this perhaps as simple as a missing require statement? |
| Sponsored Links | ||
| ||
| |
|
#2
| |||
| |||
| Having the same problem, any help would really be appreciated! |
|
#3
| |||
| |||
| Same exact problem here under the same scenario. This makes three of us in one day. Anybody had any luck with this yet? Please help, this is the last piece of the puzzle. Thanks, Lobo |
|
#4
| |||
| |||
| make it 4. i have RC3 just installed. testing through real paypal accounts, not sandbox. so it is not paypal's problem. |
|
#5
| |||
| |||
| I have been searching the forums on ths matter without luck. I have been looking through the code, but so far am not able to figure out what might be wrong. It is most likely my limited PHP skills are just being stretched beyond their limits. I have not added any mods or made any changes to the base code yet. I am running RC3 |
|
#6
| |||
| |||
| i replaced the paypal_ipn.php with its rc2 version and received the following error: Fatal error: Cannot redeclare class order_total in /homepages/28/d173936077/htdocs/shop/includes/classes/order_total.php on line 13 same error when i replaced the paypal_ipn.php with the oscommerce one which does not have Bugfix 157, which seem to be the problem. |
|
#7
| |||
| |||
| OK. here is what i did to fix this: 1. replace paypal_ipn.php with the file in osCommerce PayPal IPN Module v1.3 For 2.2MS2 http://www.oscommerce.com/community/.../search,paypal this removes bugfix 157 but keeps bug fix 47, which i think is a good thing. 2. you will hit the Cannot redeclare class order_total problem, which was there when rc2 was released. the fix is in this thread: http://oscdox.com/PNphpBB2-viewtopic...ht-paypal.html i have verified after this fix, my paypal and order details works fine. some people had problems with other payment methods after applying #2. for those i have no idea what to do. jack. |
| The Following User Says Thank You to jackxwu For This Useful Post: | ||
brendanl79 (02-10-2007) | ||
|
#8
| |||
| |||
| Implimented and testing so far looks to be good. |
|
#9
| |||
| |||
| Quote:
Installed the new files, but end up with the line 13 thing. There are several paypal_ipn.php files, do you mean install them all? Or is it just one overwrite? I have a store going live using Paypal in a couple of weeks and I have been looking for a solution for days. When I follow the instructions to kill the "line 13" problem it throws up all othre kinds of difficulties. I have reported as a bug, but as Paypal is the only card processor I use it is a make or break problem for me at the moment. Cheers Kim
__________________ Google says be nice! |
|
#10
| |||
| |||
| When I decided to establish my OSC store I was under the impression that there are live stores up and running with it. But here we have PayPal not working out of the box. Was I wrong? |
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PayPal error "Call to a member function on a non-object | brendanl79 | osCMax v2 Features Discussion | 1 | 10-12-2006 10:12 PM |
| Fatal error: Call to undefined function: tep_href_link() | spiros71 | osCommerce 2.2 Installation Help | 1 | 09-26-2005 02:23 PM |
| Fatal Error:Call to undefined function:gzinflate() | michaelphodges | osCMax v2 Installation issues | 1 | 06-16-2005 08:26 AM |
| Fatal error: Call to undefined function: array_map() | Anonymous | osCMax v1.7 Discussion | 3 | 01-21-2004 12:38 PM |
| Fatal error: Call to undefined function: array_map() | Anonymous | osCMax v1.7 Discussion | 1 | 08-22-2003 10:30 PM |