Page 1 of 5 123 ... LastLast
Results 1 to 10 of 42
  1. #1
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default PHP error with the zone shipping module

    I only get this error when the zone shipping module is active.

    Code:
    Invalid argument supplied for foreach() in /home4/mysite/public_html/shop/includes/modules/pages/checkout_shipping/header_php.php on line 241
    I have been over the settings and I cannot figure out what the issue is. I even uninstalled and re-installed the Zones module hoping that would "right" things.. But no dice.. Hoping another set of eyes will help here..

    Zone Shipping settings..
    Enable Zones Method
    True

    Calculation Method
    Weight

    Tax Class
    --none--

    Tax Basis
    Shipping

    Sort Order
    0

    Skip Countries, use a comma separated list of the two character ISO country codes
    US

    Zone 1 Countries
    00

    Zone 1 Shipping Table
    100:40.00

    Zone 1 Handling Fee
    0

    Handling Per Order or Per Box Zone 1 (when by weight)
    Order

    Zone 2 Countries


    Zone 2 Shipping Table
    3:8.50,7:10.50,99:20.00

    Zone 2 Handling Fee
    0

    Handling Per Order or Per Box Zone 2 (when by weight)
    Order

    Zone 3 Countries


    Zone 3 Shipping Table
    3:8.50,7:10.50,99:20.00

    Zone 3 Handling Fee
    0

    Handling Per Order or Per Box Zone 3 (when by weight)
    Order
    Last edited by DivaVocals; 15 Sep 2012 at 04:10 AM.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: PHP error with the zone shipping module

    What happens if you set that module to false on the enable ... does the error still happen?

    If so, what happens if you uninstall the Zone Rate zones all together and go to the checkout_shipping?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: PHP error with the zone shipping module

    Quote Originally Posted by Ajeh View Post
    What happens if you set that module to false on the enable ... does the error still happen?
    No error on the shipping page of the checkout..

    Quote Originally Posted by Ajeh View Post
    If so, what happens if you uninstall the Zone Rate zones all together and go to the checkout_shipping?
    No error on the shipping page of the checkout..

    It's maddening!!
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: PHP error with the zone shipping module

    Are any other shipping modules not uninstalled, as in a red icon, other than Zone Rate zones?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: PHP error with the zone shipping module

    Quote Originally Posted by Ajeh View Post
    Are any other shipping modules not uninstalled, as in a red icon, other than Zone Rate zones?
    These were all set to false (not uninstalled):

    • Flat Rate
    • Store Pickup
    • UPS
    • Table Rate

    So I just uninstalled them all.

    The only shipping options installed and set to True now are:

    • USPS (green icon)
    • Zones (green icon)
    • Free Shipping Options (yellow icon)


    In the names of "just seeing what would happen", I uninstalled and re-installed them all.. Interestingly Free Shipping Options has a yellow icon. I think it's because it has an active Shipping Zone.

    However, I still get the error when landing on the shipping page of the checkout..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: PHP error with the zone shipping module

    I cannot repeat it ...

    Try this ...

    Set the First Zone to CA (canada)

    Set the Second Zone to 00 with the same settings as the first Zone ...

    Does this change anything?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: PHP error with the zone shipping module

    Quote Originally Posted by Ajeh View Post
    I cannot repeat it ...

    Try this ...

    Set the First Zone to CA (canada)

    Set the Second Zone to 00 with the same settings as the first Zone ...

    Does this change anything?
    I've done some more experimenting since my last post.. I believe the issue lies in this setting: Skip Countries, use a comma separated list of the two character ISO country codes

    Using the Zone shipping settings I posted, Zones shipping is not displayed when the shipping address is a US address, and it is displayed when the shipping address is outside the US. (this is correct)

    I removed the value from: Skip Countries, use a comma separated list of the two character ISO country codes, and left all the other values I originally posted. Here's the result:
    The error log stops appearing, but the Zones shipping now shows for everyone (not what I want).

    I tried changing the setting Skip Countries, use a comma separated list of the two character ISO country codes to US and the Zone 1 Countries with every ISO country code except the US. Here's the result:
    When the shipping address outside the US, the Zones shipping stops working. The message "No shipping available to the selected country" appears on the shipping page of the check out, but there is no error log. Using these same settings, when the shipping address is a US address, the Zones shipping does not appear (as expected) but the error log is generated.

    I tried removed the values in Skip Countries, use a comma separated list of the two character ISO country codes and updated the Zone 1 Countries with every ISO country code except the US. Here's the result:
    When the shipping address is outside the US, the Zones shipping displays the following message "No shipping available to the selected country" on the shipping page of the check out (NOT what I want), but there is no error log. Using these same settings, when the shipping address is in the US, the Zones shipping displays the following message "No shipping available to the selected country" on the shipping page of the check out (NOT what I want), but there is no error log.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: PHP error with the zone shipping module

    When do you want to see Zone Rate zones?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  9. #9
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: PHP error with the zone shipping module

    Quote Originally Posted by Ajeh View Post
    When do you want to see Zone Rate zones?
    When the shipping address is NOT a US shipping address.. This is what the second set of settings posted below is supposed to do and it works except it generates an error log


    Been doing some more playing with the Zone Shipping settings..

    Using the following settings, the Zones Shipping appears when the shipping address is outside the US, but I get an error log -- same one. When the shipping address is inside the US, the Zones Shipping shows "No shipping available to the selected country" (not what I want.. would prefer this shipping module not show at all), but there is no error log.

    Enable Zones Method
    True

    Calculation Method
    Weight

    Tax Class
    --none--

    Tax Basis
    Shipping

    Sort Order
    10

    Skip Countries, use a comma separated list of the two character ISO country codes


    Zone 1 Countries
    AT,AU,BE,BM,BR,BS,CA,CH,CY,DE,DK,ES,FI,FR,GB,GG,GL,GR,HK,IE,IM,IS,IT,JE,JP,LI,LU ,MC,ME,MX,NL,NO,NZ,PL,PT,SE,SG,TW

    Zone 1 Shipping Table
    100:40.00

    Zone 1 Handling Fee
    0

    Handling Per Order or Per Box Zone 1 (when by weight)
    Order

    Zone 2 Countries


    Zone 2 Shipping Table
    3:8.50,7:10.50,99:20.00

    Zone 2 Handling Fee
    0

    Handling Per Order or Per Box Zone 2 (when by weight)
    Order

    Zone 3 Countries


    Zone 3 Shipping Table
    3:8.50,7:10.50,99:20.00

    Zone 3 Handling Fee
    0

    Handling Per Order or Per Box Zone 3 (when by weight)
    Order

    Using the following settings, the Zones Shipping appears when the shipping address is outside the US, but I get an error log -- same one. When the shipping address is inside the US, the Zones Shipping does not display, but I get an error log -- same one.

    Enable Zones Method
    True

    Calculation Method
    Weight

    Tax Class
    --none--

    Tax Basis
    Shipping

    Sort Order
    10

    Skip Countries, use a comma separated list of the two character ISO country codes
    US

    Zone 1 Countries
    AT,AU,BE,BM,BR,BS,CA,CH,CY,DE,DK,ES,FI,FR,GB,GG,GL,GR,HK,IE,IM,IS,IT,JE,JP,LI,LU ,MC,ME,MX,NL,NO,NZ,PL,PT,SE,SG,TW

    Zone 1 Shipping Table
    100:40.00

    Zone 1 Handling Fee
    0

    Handling Per Order or Per Box Zone 1 (when by weight)
    Order

    Zone 2 Countries


    Zone 2 Shipping Table
    3:8.50,7:10.50,99:20.00

    Zone 2 Handling Fee
    0

    Handling Per Order or Per Box Zone 2 (when by weight)
    Order

    Zone 3 Countries


    Zone 3 Shipping Table
    3:8.50,7:10.50,99:20.00

    Zone 3 Handling Fee
    0

    Handling Per Order or Per Box Zone 3 (when by weight)
    Order
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  10. #10
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: PHP error with the zone shipping module

    What is the weight of the order?

    What is the Ship To?

    What are your settings in the Configuration ... Shipping/Packaging ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 
Page 1 of 5 123 ... LastLast

Similar Threads

  1. FREE SHIPPING! Module with no shipping zone
    By ebaobao in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 24 May 2013, 03:57 PM
  2. v150 Problems with Zone Rates shipping module
    By Skull88 in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 20 Apr 2012, 11:37 PM
  3. Cloning the Zone Based Rates Shipping Module?
    By pe7er in forum Addon Shipping Modules
    Replies: 15
    Last Post: 11 Mar 2010, 01:23 PM
  4. Error installing cloned zone shipping module
    By shocker in forum Built-in Shipping and Payment Modules
    Replies: 11
    Last Post: 16 Aug 2007, 04:15 AM
  5. Problem with World Zone Shipping Module?
    By SysFix in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 28 Feb 2007, 06:36 PM

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