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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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
| |||
| |||
| I am getting the same UPS error - anyone know something to help the two of us, please? Thanks Sean |
|
#3
| |||
| |||
| 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;
}
}
Any help would be greatly appreciated! |