Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Requesting Help with Common Problem


knowgangs

Recommended Posts

This appears to be a common problem that many users have complained about. I installed the software then upgraded it to version 2.2.

 

As a result, in the administrative control panel I now have 3 problems.

 

1) I get the following error

 

Warning: call_user_func(tep_cfg_get_zone_name): First argument is expected to be a valid callback in /home/hsphere/local/home/knowgang/knowgangs.com/admin/includes/functions/general.php on line 1232

 

2) I have many lines that repeat themselves under the 'my store' info.

 

3) In the 'shipping/packaging' section in the admin area, the line to enter my zip code has now disappeared. As a result the USPS shipping module is not working.

 

 

I have noticed many, many other users reporting the same problem. I have seen some suggestions how to take care of the problem over the past few months with little response. Can someone (one of the many OScommerce Experts) please post some simple instructions to this problem for the rest of us please.

 

Thanks in advance!!!

 

Jared

www.knowgangs.com

Link to comment
Share on other sites

i am still lost, how long ago did you do the first version, then version 2.2?

did you also fillow all the steps properly?

 

if you have multiples duplicate lines, it means you ran the program many times, which duplicated the lines in your configuration file.

 

do you have your company info with your address setup in the 'my store' area of the configuration in the admin?

Link to comment
Share on other sites

First, thank you for taking the time to reply, I appreciate it!

 

I ran early version just trying it out for a couple days. I then upgraded 2.2 and that's when I got all the problems.

 

My company info is in one of the lines, but there are approximately 4 duplicate blank lines.

Link to comment
Share on other sites

i dont know where you got the older version, if that is all you have, and you are just starting out (i did view your site) you should just start with a clean version downloaded from here. dont download from anywhere else, you dont know what has been modified from the default.

 

else you have a bit of work ahead of you to make it work right. is it really worth it?

Link to comment
Share on other sites

THis problem occurs when you try to use the upgrade module to upgrade from a 2.2-MS-x to a 2.2-MS-x.

 

If you read the text for the upgrade module it says that its to upgrade a 2.1 store only.

Mark Evans

osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops)

 

---------------------------------------

Software is like sex: It's better when it's free. (Linus Torvalds)

Link to comment
Share on other sites

  • 2 months later...
THis problem occurs when you try to use the upgrade module to upgrade from a 2.2-MS-x to a 2.2-MS-x.

 

If you read the text for the upgrade module it says that its to upgrade a 2.1 store only.

Ok, so how do you fix it ?

 

I have the same problem. I've hacked the 'Configuration' table to remove duplicates, but still getthe "tep_cfg_get_zone_name" error message.

I can enter a zone, the database has the zone entry, but admin doesn;t show it.

 

Surely someone out there must know how to fix it.

If you search these forums LOADS of people are having this problem/

 

please please please can someone post a fix.

 

Ian

Link to comment
Share on other sites

To fix the zone error ...

 

Edit admin/includes/functions/general.php and add ...

 

function tep_cfg_get_zone_name($zone_id) {

$zone_query = tep_db_query("select zone_name from " . TABLE_ZONES . " where zone_id = '" . (int)$zone_id . "'");

 

if (!tep_db_num_rows($zone_query)) {

return $zone_id;

} else {

$zone = tep_db_fetch_array($zone_query);

return $zone['zone_name'];

}

}

 

 

 

Ian

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...