Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help with error messages please


Guest

Recommended Posts

Posted

Hi all

 

I have come across a problem with my installation and have been racking my brains as to how to solve this problem. Some weeks ago I hit the update button on my cpanel for the 2.2 ms2 upgrade not realising that I already had this upgrade and really messed up the admin side of things and payment process. When I go to admin in my store I get this error message twice.

 

Warning: call_user_func(tep_cfg_get_zone_name): First argument is expected to be a valid callback in /home/etiisorg/public_html/products/admin/includes/functions/general.php on line 1232

 

Now I have absoloutely no idea what this means or what I should do about it, if someone could throw me a lifeline I would be most grateful.

 

Also when I go to view and print customer invoices in admin I get this ugly bug of a error message. Is it terminal, do i need to start again? I hope not because I have in excess of 100 products to go through again.

 

Could someone please help.

 

Many thanks in advance

 

:unsure: :unsure: :unsure:

Posted

Sorry the second error message was:

 

1054 - Unknown column 'comments' in 'field list'

 

select customers_name, customers_company, customers_street_address, customers_suburb, customers_city, customers_postcode, customers_state, customers_country, customers_telephone, customers_email_address, customers_address_format_id, delivery_name, delivery_company, delivery_street_address, delivery_suburb, delivery_city, delivery_postcode, delivery_state, delivery_country, delivery_address_format_id, billing_name, billing_company, billing_street_address, billing_suburb, billing_city, billing_postcode, billing_state, billing_country, billing_address_format_id, payment_method, cc_type, cc_owner, cc_number, cc_expires, comments, currency, currency_value, date_purchased, orders_status, last_modified from orders where orders_id = '40'

 

[TEP STOP]

  • 1 month later...
Posted

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'];

}

}

 

 

This will fix the 1st problem.

 

Ian

Archived

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

×
×
  • Create New...