Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
TR CreditAttribution: TR commentedDid you look at the existing issues?
#2131767: uc_store_email_to_username uses case-sensitive comparison to look for existing usernames and #2143347: PayPal stuck in Pending due to IPN received twice from PayPal seem very similar.
Comment #2
kruser CreditAttribution: kruser commentedIt 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.
Comment #3
longwaveWhat payment method are you using?
Comment #4
TR CreditAttribution: TR commentedIt'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.
Comment #5
kruser CreditAttribution: kruser commentedone site is using authorize.net, the other is using uc_linkpoint_api