VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: dirkb on August 17, 2016, 11:58:41 AM

Title: Paypal acting weired since 3.0.16 continues in 3.17.4
Post by: dirkb on August 17, 2016, 11:58:41 AM
Hi ... anybody else problems with paypal recently ?

Everything was working fine with J 3.5.1 / VM 3.0.16 - then that those Joomla 3.6.0 / 3.6.2 updates showed up. Then paypal started to act weired. Suposingly the payment goes through, but customers do not receive any confirmation mails. Somewhere I read that Joomla changed something in the mail function, so I updated to 3.0.17.4 ... but still getting emails "... an error with paypal occured ... " and reference to "paypal.12.log.php" ... the funky thing is, I have Joomla logging enabled, and the log directory is set and writable, but I do not see anything in the error.log or com_virtuemart.log.php files, and the paypal.12.log.php is nowhere to be found, so I cannot even find specifics about said error ... it not logging paypal ... its turned on in the paypal configuration ... Ideas ? thanks d.
Title: Re: Paypal acting weired since 3.0.16 continues in 3.17.4
Post by: dirkb on August 27, 2016, 12:38:15 PM
so, I found the paypal log file ... was hidden from me on a level I did not check.

So ... log file shows info below. Can´t figure out really what is means or how to fix it. Read something about "reverse proxy" or something. Could that be ?
I´m quiet irritated, since it was working before the 3.16 update, after that, it got funky. Help ?

2016-08-26 22:04:00 DEBUG checkPaypalIps REMOTE ADDRESS:
2016-08-26 22:04:00 ERROR checkPaypalIps: Error with REMOTE IP ADDRESS = .
                        The remote address of the script posting to this notify script does not match a valid PayPal IP address
Title: Re: Paypal acting weired since 3.0.16 continues in 3.17.4
Post by: GJC Web Design on August 27, 2016, 15:43:19 PM
for some reason it isn't detecting the remote ip address that is sending the IPN so it fails it

just swap back the .16 paypal plugin to see if the update caused it
Title: Re: Paypal acting weired since 3.0.16 continues in 3.17.4
Post by: dirkb on August 27, 2016, 17:42:03 PM
thanks for the tip, but my gut tells me it something different. also, I applied 2 virtuemart updates 3.0.16 and 3.0.17.4 and I think I saw that there were made changes to the paypal files, would love to stay updated on those.

I found 2 topics ... one where Milbo commented on the reverse proxy thing ... http://forum.virtuemart.net/index.php?topic=128518.msg442586#msg442586

another extern about a similar issue ... https://kb.sucuri.net/cloudproxy/Troubleshooting/fixing-virtuemart-issues

another with a different approach ... https://www.rupostel.com/phpBB3/viewtopic.php?f=5&t=1070&p=3691&hilit=paypal

... another, where I do not find the bookmark right now, talked about issues with the comma separeting the paypal IP lists ...

that was the complete entry in the log file and above entry ...

2016-08-26 22:04:00 DEBUG PaymentNotification, order_number:: 4ZJR07596
2016-08-26 22:04:00 DEBUG PaymentNotification, virtuemart_paymentmethod_id:: 12
2016-08-26 22:04:00 DEBUG checkPaypalIps PRODUCTION: Array
(
   
Title: Re: Paypal acting weired since 3.0.16 continues in 3.17.4
Post by: GJC Web Design on August 27, 2016, 20:03:26 PM
the remote address is clearly empty

2016-08-26 22:04:00 DEBUG checkPaypalIps REMOTE ADDRESS:
2016-08-26 22:04:00 ERROR checkPaypalIps: Error with REMOTE IP ADDRESS = .

as i remember it the reverse proxy fix is when the remote ad is an array
Title: Re: Paypal acting weired since 3.0.16 continues in 3.17.4
Post by: dirkb on August 27, 2016, 20:45:13 PM
Hmmm ... damn. What else could it be ? I put an older paypal folder up there where I´m sure it was working, but then I have to do that again when the next update comes ... feels wrong to me.
Title: Re: Paypal acting weired since 3.0.16 continues in 3.17.4
Post by: GJC Web Design on August 27, 2016, 23:18:02 PM
you need to find why the remote ip isn't detected... you can set up a Paypal sandbox etc and send ipns to you site