Page 6 of 7 FirstFirst ... 4567 LastLast
Results 51 to 60 of 64
  1. #51
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    81

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

    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.

  2. #52
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    81

    Default 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']),
    .

    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.

  3. #53
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    81

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

    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.

  4. #54
    Join Date
    Aug 2006
    Posts
    50
    Plugin Contributions
    0

    Default Re: Help? (Invalid Parameter)?

    Edited to remove question.

    I am just going to download your new patch!!

  5. #55
    Join Date
    Nov 2005
    Posts
    53
    Plugin Contributions
    0

    Default Re: Help? (Invalid Parameter)?

    thanks so much! i also see this patch fixes a comments issue i had.

    so fabulous.
    zencart installation is at http://oyinhandmade.com/shop

  6. #56
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default Re: Help? (Invalid Parameter)?

    Please see my post and comments regarding this issue.
    http://www.zen-cart.com/forum/showthread.php?t=58645

    Woody

  7. #57
    Join Date
    Feb 2007
    Posts
    5
    Plugin Contributions
    0

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

  8. #58
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    81

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

    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.

  9. #59
    Join Date
    Feb 2006
    Location
    Washington State
    Posts
    77
    Plugin Contributions
    0

    Default Re: Help? (Invalid Parameter)?

    DrByte, I want to thank you for your speedy response to this problem.

  10. #60
    Join Date
    Feb 2007
    Posts
    5
    Plugin Contributions
    0

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

 

 
Page 6 of 7 FirstFirst ... 4567 LastLast

Similar Threads

  1. v139f 10426 Invalid Data - Item total is invalid
    By paddyc in forum General Questions
    Replies: 1
    Last Post: 9 Dec 2015, 01:16 AM
  2. Help: Invalid Master Category
    By Rebecca Lynn in forum Setting Up Categories, Products, Attributes
    Replies: 34
    Last Post: 2 Mar 2007, 10:58 PM
  3. 2CheckOut w/ Zen 1.3.0.2 Got PARAMETER ERROR..need help
    By rayken in forum Addon Payment Modules
    Replies: 2
    Last Post: 16 Nov 2006, 04:58 AM
  4. USA Epay Invalid error - Help!!
    By angel17846 in forum Addon Payment Modules
    Replies: 0
    Last Post: 8 Jun 2006, 06:11 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR