On two separate sites, I'm seeing "random" orders getting a UID/Customer number of '0', and no emails are sent when the order is placed. The order is placed and CC is charged successfully. In the error log I see a Duplicate user error for an existing username, which is confusing because I tested the frontend and it appears to validate usernames upon checkout.

Duplicate entry 'Laura' for key 'name' query: INSERT INTO users (name, pass, mail, init, status, created) VALUES ('Laura', 'password', 'name@name.org', 'name@name.org', 1, 1389195406) in /home/www/public_html/modules/user/user.module on line 328.

Any idea how to fix/prevent this from happening?

Comments

TR’s picture

Status: Active » Postponed (maintainer needs more info)
kruser’s picture

It looked that those issues, but they don't seem to apply. We aren't using Paypal and I checked the username cases in the db and in this example the existing record for username Laura was identical to the query and there were no extra spaces.

longwave’s picture

What payment method are you using?

TR’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

It's likely whatever payment method you're using has the same problem described in #2143347: PayPal stuck in Pending due to IPN received twice from PayPal. Please participate in that issue to help fix this. Without knowing your payment method or getting further information from you, there's not much else we can say here.

kruser’s picture

one site is using authorize.net, the other is using uc_linkpoint_api