Re: Help? (Invalid Parameter)?
PART ONE of the fix:
the fix proposed by andrabr is ideal, and should help ease the problem:
/includes/modules/payment/paypalwpp.php
approx line 1778 (depending on which patch version you have installed)
change this:
Code:
if (!isset($paypal_ec_payer_info['ship_country_code'])) $paypal_ec_payer_info['ship_country_code'] = $country1->fields['countries_iso_code_2'];
to this:
Code:
if (!isset($paypal_ec_payer_info['ship_country_code']) || $paypal_ec_payer_info['ship_country_code'] == '') $paypal_ec_payer_info['ship_country_code'] = $country1->fields['countries_iso_code_2'];
For the technical-minded among us, the problem is that PayPal is now sending back different data, which, as andrabr suggested, was causing confusion. This fix catches that and forces the alternative lookup method to be used.
Re: Help? (Invalid Parameter)?
PART TWO of the fix:
The above fix is useful, but this one is even more helpful ...
PayPal changed SHIPTOCOUNTRY to SHIPTOCOUNTRYCODE in their recent system update, which is causing the problem.
So, the fix appears to be this:
/includes/modules/payment/paypalwpp.php
approx line 1730 (depending on the patch installed):
change this:
Code:
'ship_country_code' => urldecode($response['SHIPTOCOUNTRY']),
to this:
Code:
'ship_country_code' => urldecode($response['SHIPTOCOUNTRYCODE']),
Re: Help? (Invalid Parameter)?
Updated patch posted here (or you can do the edits posted above):
http://www.zen-cart.com/forum/showth...003#post330003
Re: Help? (Invalid Parameter)?
Edited to remove question.
I am just going to download your new patch!!
Re: Help? (Invalid Parameter)?
thanks so much! i also see this patch fixes a comments issue i had.
so fabulous.
Re: Help? (Invalid Parameter)?
Please see my post and comments regarding this issue.
http://www.zen-cart.com/forum/showthread.php?t=58645
Woody
Re: Help? (Invalid Parameter)?
I had a customer from Canada buy something from my site (in USA) via Paypal. The customer tried two times and got a screen of HTML and not a confirmation of payment screen. He does have a group pricing discount.
This is the screen he got:
Quote:
Warning: reset() [function.reset]: Passed variable is not an array or
object in
/home/biztekpc/public_html/zen/includes/modules/order_total/ot_group_pricing.php
on line 77
Warning: Variable passed to each() is not an array or object in
/home/biztekpc/public_html/zen/includes/modules/order_total/ot_group_pricing.php
on line 78
Warning: reset() [function.reset]: Passed variable is not an array or
object in
/home/biztekpc/public_html/zen/includes/modules/order_total/ot_tax.php
on line 38
Warning: Variable passed to each() is not an array or object in
/home/biztekpc/public_html/zen/includes/modules/order_total/ot_tax.php
on line 39
Warning: Cannot modify header information - headers already sent by
(output started at
/home/biztekpc/public_html/zen/includes/modules/order_total/ot_group_pricing.php:77)
in
/home/biztekpc/public_html/zen/includes/functions/functions_general.php
on line 44
I tried to install the patches as previously mentioned but I have no clue what I'm doing and there is no install instructions. Please Advise.
Re: Help? (Invalid Parameter)?
You need to apply the patches, as you have read.
To install, simply unzip the files to a temporary folder ... just like your main Zen Cart files. Then upload the files to the same folders as they're contained in within the zip file ... overwriting the masters on your server.
If you installed via Fantastico, you will need to either talk to your hosting company about how to FTP files to your site, and/or go to our FAQ section and read up on FTP and uploading files. You will need to learn this to manage your website anyway.
As an addendum, the patches were updated earlier today:
http://www.zen-cart.com/forum/showth...974#post331974
Re: Help? (Invalid Parameter)?
DrByte, I want to thank you for your speedy response to this problem.
Re: Help? (Invalid Parameter)?
Thanks for your help on the installing patches but I was able to fix it without installing any patches. The problem is now completely resolved.