Since I updated my production site to 2.6.2 last night I noticed orders paid with paypal were not confirming.
Checking on Paypal the ipn's had been sent
From the error.log
[Thu May 22 01:26:26 2014] [error] [client 173.0.81.1] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/ecigsoutlet.co.uk/htdocs/plugins/vmpayment/paypal/paypal.php on line 639
[Thu May 22 01:26:33 2014] [error] [client 146.90.107.111] PHP Notice: Undefined variable: paypal_data in /var/www/ecigsoutlet.co.uk/htdocs/plugins/vmpayment/paypal/paypal.php on line 590, referer: https://www.paypal.com/uk/cgi-bin/webscr?cmd=_flow&SESSION=foo&dispatch=bar
[Thu May 22 01:26:33 2014] [error] [client 146.90.107.111] PHP Notice: Trying to get property of non-object in /var/www/ecigsoutlet.co.uk/htdocs/plugins/vmpayment/paypal/paypal/tmpl/stdresponse.php on line 42, referer: https://www.paypal.com/uk/cgi-bin/webscr?cmd=_flow&SESSION=foo&dispatch=bar
[Thu May 22 01:26:33 2014] [error] [client 146.90.107.111] PHP Notice: Trying to get property of non-object in /var/www/ecigsoutlet.co.uk/htdocs/plugins/vmpayment/paypal/paypal/tmpl/stdresponse.php on line 42, referer: https://www.paypal.com/uk/cgi-bin/webscr?cmd=_flow&SESSION=foo&dispatch=bar
I'm guessing this changed line (639) plugins/vmpayment/paypal/paypal.php might be at fault ? Returning a null array ?
$paypal_data = vRequest::get('post');
Anyway I have reverted the whole plugins/vmpayment/paypal folder back to the 2.6.0a code and its's working again now.
Paypal Standard
hmm - in vm2.6.2 there is public static function getPost( ) in administrator\components\com_virtuemart\helpers\vrequest.php
is that in your install?
It is
public static function getPost( ){
return filter_var_array($_POST, FILTER_SANITIZE_STRING);
}
hmm - very odd - alatak ?
There will be an update, today.
Cheers
Will the update now work using the joomla update system? (the currently listed updates do not function)?
Live update has been removed because the joomla update is more reliable.
Yes and ironically, the VM updates listed on the joomla update do not work.
Today with the vm2.6.4?
Works fine with 2.6.4
Regards
Patrik
Hi, still having this problem, updated all J2.5.20 / V2.6.4
error log
[25-May-2014 07:09:05 America/Chicago] PHP Notice: Undefined variable: paypal_data in /***/plugins/vmpayment/paypal/paypal.php on line 590
[25-May-2014 07:09:05 America/Chicago] PHP Notice: Trying to get property of non-object in /***/plugins/vmpayment/paypal/paypal/tmpl/stdresponse.php on line 42
[25-May-2014 07:09:05 America/Chicago] PHP Notice: Trying to get property of non-object in /***/plugins/vmpayment/paypal/paypal/tmpl/stdresponse.php on line 42
IPN from PayPal is OK status 200 but not receiving anything (missing total value and currency)
What else to try?
Hello
Thank you for reporting thoses notices: i have fixed the code for this case.
You get them because you did not received an IPN.
If you were receiving an IPN before, and you updated to 2.6.4 both the component and aio, i do not see any reason why it should not work.
Can you activate the log option in the paypal configuration to check if there is any message logged that can help me to understand why you get this problem?
Thank you for the answer.
First problem, the test site was under "Site Lock" (JShowroom). Reinstalled everything, pics changed from .png to .gif, unlocked the site, changed that both e-mail addresses are the same and now I am at least receiving e-mails, changed statuses and invoices! I think the main problem here was that I was too tired :)
Still shows those same PHP Notices in error.log and there is a total value & PayPal Transaction Id missing when redirected back to my site from PayPal. Everything else looks great in e-mails and on my web when you go back and check the order but when I check phpMyAdmin table *****_virtuemart_payment_plg_paypal, there are three lines for the same order (pending, confirmed by shoper, confirmed) but the last two are empty besides the order number in row "paypal_response_invoice".
Pls find logs attached.
Payment Name PP PayPal account needed Sandbox (3)
Order Number d602026
Total Amount
Also, sometimes I receive e-mails like this:
An error with your payment paypal on your store *****.**. The details are logged in the file https://www.*****.**/administrator/index.php?option=com_virtuemart&view=log&task=edit&logfile=paypal.3.log.php
Hello
I cannot download your file. Please send it via PM.
sent via e-mail, pls confirm
Hello
Yes , thank you. I received at the same time i was posting.
Thank you so much Alatak for your help!! now when I use Payment type: Normal (not Shopping Cart setting in paypal plugin) everything works OK!
Thanks to alatak, we have realized that the problem with IPN in Shopping Cart setting was with apostrophe in a product title (like "Gateway Student's Book"). When there is no single quote in product title, everything works OK even in Shopping Cart setting.
Hello
The problem of the Quote in Product names is probably due to your server settings.
In 99% of the cases we do not have that problem.
Hi
I'm using 2.6.6 and I'm still getting the same error:
2014-07-29 21:15:39 ERROR Validación de IPN inválida: Array
Somebody can help?
Thanks,
Cheers,
Jorge
hello have same problem on vm 2.6.6 i see all order whit problem come whit a quote (') inside address or name or any fild go pass to paypal
any solution?
tnks
MArco
I have been having a problem with the IPN paypal as well
this is the error:
ERROR validateIpnContent: VMPAYMENT_PAYPAL_ERROR_POSTING_IPN
Could this be related?
thanks
here attacched ipn log
maybe can be an help
2014-07-21 20:01:49 ERROR Convalida IPN non corretta: Array
(
[paypal_data] => Array
(
[mc_gross] => 251.13
[invoice] => 201407213030
[protection_eligibility] => Eligible
[address_status] => unconfirmed
[payer_id] => MN69CY3NCLZL2
[tax] => 0.00
[address_street] => VIA SAN FRANCESCO D'ASSISI, 19E
[payment_date] => 13:01:31 Jul 21, 2014 PDT
[payment_status] => Completed
[charset] => windows-1252
[address_zip] => 26100
---
2014-07-23 09:19:10 ERROR Convalida IPN non corretta: Array
(
[paypal_data] => Array
(
[mc_gross] => 70.20
[invoice] => 201407233049
[protection_eligibility] => Eligible
[address_status] => unconfirmed
[payer_id] => DNN6NFSKAVD3W
[tax] => 0.00
[address_street] => VIA PORTELLA DELL'ARENA 11 C.DA NISCIMA
[payment_date] => 02:18:55 Jul 23, 2014 PDT
[payment_status] => Completed
[charset] => windows-1252
[address_zip] => 93100
---
[payer_status] => verified
[business] => XXX#XXX.XXX
[address_country] => Italy
[address_city] => VARMO
[quantity] => 1
[verify_sign] => AT7SFZSrtUdu5b6hm-i80.i0oTEUApjrhKK-XtPXPlp9aUlpDZ.5xfND
[payer_email] => XXX#XXX.XXX
[txn_id] => 2X421065JH952473S
[payment_type] => instant
[last_name] => TOLO'
[address_state] => UD
[receiver_email] => XXX#XXX.XXX
[payment_fee] =>
[receiver_id] => KN6YT6HLA6H5U
[txn_type] => web_accept
[item_name] => Ordine Numero: 201407293096
[mc_currency] => EUR
Hello
http://forum.virtuemart.net/index.php?topic=125044.0