This is a bug, which I had for the 2nd time now, and it seems to come with the new 3.2 update (as I never had this bug before).

Here is the deal:

On my website I have an anonymous checkout. http://achtungdiekurve.net/cart/add/e-p2_q1-ipremiumyear?destination=car... . People can fill in their email and username. If they fill in a new email, but with a username that already exists, it will go on with the checkout, but when the payment is received, it won't create the new account, because the username is already taken by another email address. An error is thrown, and that's it.

So, this needs a more graceful solution.

Regards,

Geert

Comments

longwave’s picture

What is the full error message from the error that is thrown?

GBurg’s picture

The following error:

PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'jasper123' for key 'name': INSERT INTO {users} (uid, name, pass, mail, created, status, init) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6); Array ( [:db_insert_placeholder_0] => 158585 [:db_insert_placeholder_1] => jasper123 [:db_insert_placeholder_2] => $S$DQSfYiX.4ui0KDLUr3Dph/b5fdMCi/9otsANQkgtvVhjKwbMLVD3 [:db_insert_placeholder_3] => AN EMAIL ADDRESS [:db_insert_placeholder_4] => 1347380897 [:db_insert_placeholder_5] => 1 [:db_insert_placeholder_6] => AN EMAIL ADDRESS ) in drupal_write_record() (line 7036 of /public_html/includes/common.inc).

on /uc_paypal/ipn/[ipn-number]

longwave’s picture