osCmax v2.5 User Manual
Page 1 of 2 12 LastLast
Results 1 to 10 of 14

PayPal error "Call to a member function on a non-object

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 ...

      
  1. #1
    New Member
    Join Date
    Sep 2006
    Posts
    28
    Rep Power
    0


    Default PayPal error "Call to a member function on a non-object

    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?

  2. #2
    New Member
    Join Date
    Oct 2006
    Posts
    7
    Rep Power
    0


    Default

    Having the same problem, any help would really be appreciated!

  3. #3
    Member
    Join Date
    Jan 2005
    Posts
    49
    Rep Power
    0


    Default

    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. #4
    New Member
    Join Date
    Oct 2006
    Posts
    6
    Rep Power
    0


    Default

    make it 4. i have RC3 just installed. testing through real paypal accounts, not sandbox. so it is not paypal's problem.

  5. #5
    New Member
    Join Date
    Nov 2004
    Posts
    10
    Rep Power
    0


    Default Been fighting this for a week now.

    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. #6
    New Member
    Join Date
    Oct 2006
    Posts
    6
    Rep Power
    0


    Default tried RC2

    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. #7
    New Member
    Join Date
    Oct 2006
    Posts
    6
    Rep Power
    0


    Default RE: tried RC2

    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.

  8. #8
    New Member
    Join Date
    Nov 2004
    Posts
    10
    Rep Power
    0


    Default

    Implimented and testing so far looks to be good.

  9. #9
    Active Member
    Join Date
    May 2004
    Location
    somewhere above colchester uk
    Posts
    147
    Rep Power
    0


    Default

    K. 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/con ... rch,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-t- ... aypal.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.
    Hi Jack
    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. #10
    New Member
    Join Date
    Sep 2006
    Posts
    28
    Rep Power
    0


    Default

    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?

Page 1 of 2 12 LastLast

Similar Threads

  1. PayPal error "Call to a member function on a non-object
    By brendanl79 in forum osCMax v2 Features Discussion
    Replies: 1
    Last Post: 10-12-2006, 09:12 PM
  2. Fatal error: Call to undefined function: tep_href_link()
    By spiros71 in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 09-26-2005, 01:23 PM
  3. Fatal Error:Call to undefined function:gzinflate()
    By michaelphodges in forum osCmax v2 Installation issues
    Replies: 1
    Last Post: 06-16-2005, 07:26 AM
  4. Fatal error: Call to undefined function: array_map()
    By Anonymous in forum osCmax v1.7 Discussion
    Replies: 3
    Last Post: 01-21-2004, 11:38 AM
  5. Fatal error: Call to undefined function: array_map()
    By Anonymous in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 08-22-2003, 09:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •