osCmax v2.5 User Manual
Results 1 to 3 of 3

Admin help with tep_get_zone_name()

This is a discussion on Admin help with tep_get_zone_name() within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; I just installed version 2.2 and when I go to Admin : Configuration : My Store I get the following ...

      
  1. #1
    Lurker
    Join Date
    Sep 2003
    Posts
    1
    Rep Power
    0


    Default Admin help with tep_get_zone_name()

    I just installed version 2.2 and when I go to Admin : Configuration : My Store I get the following error:


    QUOTE
    "Warning: Missing argument 2 for tep_get_zone_name() in /home/game/public_html/shop/admin/includes/functions/general.php on line 270

    Warning: Missing argument 3 for tep_get_zone_name() in /home/game/public_html/shop/admin/includes/functions/general.php on line 270 "



    I have no idea why this happens. I even put my shipping zip code as well. I should also mention that my UPS shipping module doesn't work either. Here's the message it gives me at the time of checkout.


    QUOTE
    "United Parcel Service
    An error occured with the UPS shipping calculations.
    Invalid ShipperPostalCode
    If you prefer to use UPS as your shipping method, please contact the store owner. "



    The two might be related, so any help will be tremendously appreciated.

    Thanks

  2. #2
    New Member
    Join Date
    Jan 2005
    Posts
    12
    Rep Power
    0


    Default RE: Admin help with tep_get_zone_name()

    I am getting the same UPS error - anyone know something to help the two of us, please?

    Thanks

    Sean

  3. #3
    New Member
    Join Date
    Jan 2004
    Posts
    26
    Rep Power
    0


    Default I am having this issue with a newly upgraded cart.

    I get this in the My Store config screen.

    Warning: Missing argument 2 for tep_get_zone_name() in /home/lewis/public_html/shop/admin/includes/functions/general.php on line 430

    Warning: Missing argument 3 for tep_get_zone_name() in /home/lewis/public_html/shop/admin/includes/functions/general.php on line 430

    You will also notice the blank line for the zone, no matter how I select it and modify it, it is always blank.

    Background, this is a cart upgraded to OSCMax 2.0rc3 from osc1.2 using SQLyog (love it!) and updated the structure. I imported the data from the old cart (customers and orders etc) and so far as I can tell, it is all working properly.

    The line in the error looks like this:
    Code:
      function tep_get_zone_name($country_id, $zone_id, $default_zone) {
    
        $zone_query = tep_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country_id . "' and zone_id = '" . (int)$zone_id . "'");
    
        if (tep_db_num_rows($zone_query)) {
    
          $zone = tep_db_fetch_array($zone_query);
    
          return $zone['zone_name'];
    
        } else {
    
          return $default_zone;
    
        }
    
      }
    If you can't see the image I can email it or post it on a website.

    Any help would be greatly appreciated!

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
  •