CRE Loaded Community

Banner


Board index » Loaded Commerce Support » Bug Issues

All times are UTC - 5 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Duplicate entry error when same person orders twice
PostPosted: Sun Oct 05, 2008 7:38 am 
Offline
CRE Newbie
User avatar

Joined: Wed Jun 11, 2008 8:54 pm
Posts: 23
When a customer orders for a second time without creating an account gets the following error:

1062 - Duplicate entry 'email@mydomain.com' for key 2

insert into customers (purchased_without_account, customers_firstname, customers_lastname, customers_email_address, customers_telephone, customers_fax, customers_newsletter, customers_password, customers_dob) values ('1', '[firstname]', '[surname]', '[email address]', '[phpne number]', '', '', 'c419b06b4c6579b50ff05adb3b8424f1:bd', '19700521')

TEP_DB_ERRORR

Any suggestions?


Top
 Profile  
 
 Post subject: Re: Duplicate entry error when same person orders twice
PostPosted: Wed Oct 15, 2008 8:45 am 
Offline
CRE Talented
User avatar

Joined: Tue Aug 16, 2005 12:00 am
Posts: 382
Location: India
benz1 wrote:
When a customer orders for a second time without creating an account gets the following error:

1062 - Duplicate entry 'email@mydomain.com' for key 2

insert into customers (purchased_without_account, customers_firstname, customers_lastname, customers_email_address, customers_telephone, customers_fax, customers_newsletter, customers_password, customers_dob) values ('1', '[firstname]', '[surname]', '[email address]', '[phpne number]', '', '', 'c419b06b4c6579b50ff05adb3b8424f1:bd', '19700521')

TEP_DB_ERRORR

Any suggestions?
customers_firstname You should not set this field to unique in customers table.

just chek the schema of your customer table and chek it with a fresh creloaded.

are You sure it stated key 2 for duplicate entry.

Satish Mantri

_________________
Satish Mantri.
expert in CREloaded,osCommerce.
Payment Gateways-Shipping-Order total-Template Integration.
www.oscprofessionals.com


Top
 Profile  
 
 Post subject: Re: Duplicate entry error when same person orders twice
PostPosted: Wed Oct 15, 2008 9:05 am 
Offline
CRE Newbie
User avatar

Joined: Wed Jun 11, 2008 8:54 pm
Posts: 23
Thanks but this was resolved by Sherry just before she departed. Apparently it's designed that way to prevent people ordering twice without creating an account? (Doesn't sound right to me either.) In any event it was over-riden and is now working.

Benz1


Top
 Profile  
 
 Post subject: Re: Duplicate entry error when same person orders twice
PostPosted: Tue Mar 10, 2009 7:31 pm 
Offline
CRE Freak
User avatar

Joined: Fri Aug 03, 2007 12:00 am
Posts: 47
Location: Bay Area
I have this error too:

When a customer orders for a second time without creating an account gets the following error:

1062 - Duplicate entry 'email@mydomain.com' for key 2

This thread is about the same issue, no resolution is offered yet.
http://www.creloaded.com/forums/Forums/ ... tml#116386


Top
 Profile  
 
 Post subject: Re: Duplicate entry error when same person orders twice
PostPosted: Tue Mar 10, 2009 8:26 pm 
Offline
CRE Freak
User avatar

Joined: Wed Nov 01, 2006 1:00 am
Posts: 37
Location: Atlanta, GA
onlinewebcommunities,
I have tried to reproduce the issue on our demos, QA sites and on my personal 6.3.3 fresh installs placing mulitle orders without creating an account. At no point during my testing did I receive any error about a duplicate email for a customer.

I am unsure about Sherry's investigation and what it turned-up, but I can assure you that there is no code logic or database configuration in our distribution that will cause a returning customer without an account to be rejected when placing a second order.

As the issue has been reported more than once, I would suspect an added third-party module is becoming involved. Can you report on any add-on module that may deal with customer handling or order handling? I am genuinely curious and want to see this symptom documented.

_________________
CRE Loaded
QA Team
CRELoaded - http://creloaded.com
CRE Merchant - http://cremerchant.com
Free - (800) 609-2141


Top
 Profile  
 
 Post subject: Re: Duplicate entry error when same person orders twice
PostPosted: Tue Mar 10, 2009 9:09 pm 
Offline
CRE Freak
User avatar

Joined: Fri Aug 03, 2007 12:00 am
Posts: 47
Location: Bay Area
Thanks for looking at this VecDaddy,

I am using an almost stock version of CRE Loaded6 v6.2 B2B White Label[13.2 (SP1)]

The only third-party module I'm running is Quick Updates.

I have seen this problem on the same version without any mods.

The easiest way to recreate this is to create an account and remember the email address used.

Then delete your cookies, come in as a new person, "Proceed Directly to Checkout" without creating an account, then on the next page (Order_Info.php) use the same exact email address and that's all I need to crash the cart with the message:
Code:
1062 - Duplicate entry 'ThornTester2@liquidwebsite.com' for key 2

insert into customers (purchased_without_account, customers_firstname,
customers_lastname, customers_email_address, customers_telephone,
customers_fax, customers_newsletter, customers_password) values ('1',
'fdafdafdsa', 'fdsafdsa', 'ttester@liquid.com', 'fdsafdsafas', '', '', '23c2d09a5dd1d1c5f4f7f484450be380:d8')

TEP_DB_ERRORR


Note, the only duplicate field that has been repeated is the email, I deliberately made up all the other field inputs to make sure that they are unique.


Top
 Profile  
 
 Post subject: Re: Duplicate entry error when same person orders twice
PostPosted: Tue Mar 10, 2009 9:44 pm 
Offline
CRE Freak
User avatar

Joined: Wed Nov 01, 2006 1:00 am
Posts: 37
Location: Atlanta, GA
In the example you posted above, yes there logic to require a customer with an account matching the email to login when placing the order. However, it should not be producing a sql error. Rather, a defined error message from the language files should display on the screen.

Image

I am going to continue to look into this and hopefully have either a solution or work-around shortly.

_________________
CRE Loaded
QA Team
CRELoaded - http://creloaded.com
CRE Merchant - http://cremerchant.com
Free - (800) 609-2141


Top
 Profile  
 
 Post subject: Re: Duplicate entry error when same person orders twice
PostPosted: Wed Mar 11, 2009 7:11 pm 
Offline
CRE Freak
User avatar

Joined: Fri Aug 03, 2007 12:00 am
Posts: 47
Location: Bay Area
Thank you VecDaddy!

I have seen that same "Account already exists..." message before, and with the same system that is producing the SQL errors. This have occured in a time period between the SQL errors, indicating the system was not working, then broken, but vulnerable to a certain set of conditions.

The SQL error predominates and the "Account already..." message has only popped up rarely.

If there's anything I can do to help in troubleshooting, feel free to ask.


Top
 Profile  
 
 Post subject: Re: Duplicate entry error when same person orders twice
PostPosted: Thu Sep 09, 2010 8:02 am 
Offline
CRE Newbie

Joined: Tue Jul 06, 2010 1:57 pm
Posts: 6
We have disabled the account creation, and force users to proceed to checkout. Orders seem to process just fine (atleast we have not had any customer complaints yet) however, every now-and-then the store emails the store owner with this error report:

Code:
Query Error reported on page /Order_Info_Process.php
MySQL error: 1062 - Duplicate entry '812' for key 'PRIMARY'

insert into customers_info (customers_info_id, customers_info_number_of_logons, customers_info_date_account_created) values ('812', '0', now())


This forum post looks very similar to the problem I am experiencing, and I wonder if anyone knows the work-a-round?

Thank You,

Joe


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

Board index » Loaded Commerce Support » Bug Issues

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
It is currently Thu May 17, 2012 8:58 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

© CRE Loaded is a product of Chain Reaction Ecommerce, Inc. Usage & Privacy Policy