Archive for the 'E-commerce' Category

OsCommerce Error: insert into customers_info (customers_info_id, customers_info_number_of_logons, customers_info_date_account_created) values (’0′, ‘0′, now())

Bookmark and Share

Stumbled accross this nasty little error on a client’s installation of OsCommerce. The problem occurs when a new user is signing up, so this can be a real show stopper and cost sales!

Anyway thankfully I quickly found the solution and the fix is pretty quick and simple

catalog/includes/functions/database.php. Find the line relating to tep_db_insert_id and change it to:

function tep_db_insert_id( $link = 'db_link') {
global $$link;
return mysql_insert_id($$link);
}

By the looks of the solution, perhaps problem occurs because of a non persistant database connection, or other subsequent queries having run.

http://forums.oscommerce.com/index.php?showtopic=155215


About

You are currently browsing the Mr Kirkland 2.0 weblog archives for the E-commerce category.

Longer entries are truncated. Click the headline of an entry to read it in its entirety.

Timezone

  • JST: 2008-05-12 13:44
  • BST: 2008-05-12 05:44
  • PDT: 2008-05-11 21:44