E-commerce – Mr Kirkland http://mrkirkland.com (mainly) Tokyo based developer and founder Mon, 18 Jan 2016 14:58:41 +0000 en-US hourly 1 https://wordpress.org/?v=4.4.2 OsCommerce Error: insert into customers_info (customers_info_id, customers_info_number_of_logons, customers_info_date_account_created) values (‘0’, ‘0’, now()) http://mrkirkland.com/oscommerce-error-insert-into-customers_info-customers_info_id-customers_info_number_of_logons-customers_info_date_account_created-values-0-0-now/ http://mrkirkland.com/oscommerce-error-insert-into-customers_info-customers_info_id-customers_info_number_of_logons-customers_info_date_account_created-values-0-0-now/#comments Thu, 14 Jun 2007 12:33:15 +0000 http://www.mrkirkland.com/oscommerce-error-insert-into-customers_info-customers_info_id-customers_info_number_of_logons-customers_info_date_account_created-values-0-0-now/ 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 […]

The post OsCommerce Error: insert into customers_info (customers_info_id, customers_info_number_of_logons, customers_info_date_account_created) values (‘0’, ‘0’, now()) appeared first on Mr Kirkland.

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

The post OsCommerce Error: insert into customers_info (customers_info_id, customers_info_number_of_logons, customers_info_date_account_created) values (‘0’, ‘0’, now()) appeared first on Mr Kirkland.

]]>
http://mrkirkland.com/oscommerce-error-insert-into-customers_info-customers_info_id-customers_info_number_of_logons-customers_info_date_account_created-values-0-0-now/feed/ 3