Forums / Built-in Shipping and Payment Modules / Intermittent faliure in Paypal IPN return

Intermittent faliure in Paypal IPN return

Locked

Views: 1,563

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
19 Jan 2010, 10:05 PM
#1
elibaba avatar

elibaba

New Zenner

Join Date:
Apr 2009
Location:
Israel
Posts:
23
Plugin Contributions:
0

Intermittent faliure in Paypal IPN return

I am having Intermittently an issue with orders paid via paypal, but no data inserted to zen_orders and no mail sent to customers. Usually when I try to order myself, all works fine.

The only clue I got is a debug message :

[19-jan-2010 14:32:56] PHP Fatal error: Call to a member function add() on a non-object in /home/content/m/i/n/mineralz/html/includes/classes/order_total.php on line 75

I can't see anything special in this file, nor I understand why it's called during checkout, that AFAIK uses URL like : index.php?main_page=checkout_process&referer=paypal&tx=123qwe123qwe123qwe&st=Completed...

I'm using Zen Cart 1.3.8a
PHP Version 5.2.8
GoDaddy Shared Linux hosting (with appropriate changes for godaddy applied to paypal ipn)

Any ideas ?

19 Jan 2010, 11:20 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Intermittent faliure in Paypal IPN return

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

20 Jan 2010, 4:20 PM
#3
elibaba avatar

elibaba

New Zenner

Join Date:
Apr 2009
Location:
Israel
Posts:
23
Plugin Contributions:
0

Re: Intermittent faliure in Paypal IPN return

Thanks for answering, DrByte, but this fix deals with issues in sending the order confirmation mail after checkout.

I am having problems before that, in order_total.php and not in functions_email.php, as in the bug description.

Would you recommend implementing this change anyway ?

20 Jan 2010, 4:32 PM
#4
elibaba avatar

elibaba

New Zenner

Join Date:
Apr 2009
Location:
Israel
Posts:
23
Plugin Contributions:
0

Re: Intermittent faliure in Paypal IPN return

And one more thing - does this mean that after implementing the fix, paypal_ipn.core.php will **NOT **have "?>" closing characters at the end of the file at all ?

20 Jan 2010, 4:46 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Intermittent faliure in Paypal IPN return

elibaba:

Would you recommend implementing this change anyway ?
The issue is that the $messageStack needs to be initialized ... which is what that fix accomplishes, regardless of the symptoms mentioned.
So, yes, you need to implement it.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

20 Jan 2010, 4:46 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Intermittent faliure in Paypal IPN return

elibaba:

And one more thing - does this mean that after implementing the fix, paypal_ipn.core.php will **NOT **have "?>" closing characters at the end of the file at all ?
https://www.zen-cart.com/tutorials/index.php?article=313

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

20 Jan 2010, 5:49 PM
#7
elibaba avatar

elibaba

New Zenner

Join Date:
Apr 2009
Location:
Israel
Posts:
23
Plugin Contributions:
0

Re: Intermittent faliure in Paypal IPN return

Thank you so much, DrByte!

I am a java person, so sorry for the PHP ignorance :blush: