Hi all,
I've ran into a problem.
Everything was working fine before, but yesterday the following started happening:
When a user completes checkout through ubercart (ie, buys a product and ubercart creates a user), a bunch of errors come up:
<?php
# user warning: Duplicate entry '' for key 2 query: INSERT INTO users (uid, created) VALUES (304, 1215821978) in C:\!yuriy\www\sitename\includes\database.mysql.inc on line 172.
# user warning: Duplicate entry '0' for key 1 query: INSERT INTO trialrole (uid, trial, created) VALUES (0, 0, 1215821980) in C:\!yuriy\www\sitename\includes\database.mysql.inc on line 172.
# user warning: Duplicate entry '' for key 2 query: INSERT INTO users (uid, created) VALUES (305, 1215821980) in C:\!yuriy\www\sitename\includes\database.mysql.inc on line 172.
# user warning: Duplicate entry '0' for key 1 query: INSERT INTO trialrole (uid, trial, created) VALUES (0, 0, 1215821981) in C:\!yuriy\www\sitename\includes\database.mysql.inc on line 172.
# warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\!yuriy\www\sitename\modules\mimemail\mimemail.module on line 247.
?>This does not happen when a user simply registers, which leads me to believe this is something within Ubercart. Now, this copy has been hacked to bits, but I didn't make any major modifications to the site yesterday (when this problem happened), and definitely didn't touch anything to do with user registration, so there is a chance that this is a bug or misconfiguration of some sort.
Now, a bit about the errors...
First and third - no idea what it is.
Second and fourth - from a custom module which has been working fine for a few months of development. Query occurs during the 'insert' case of the hook_user() function.
Fifth - no local SMTP server, so you can ignore this one.
Also, the account and order DO get created properly, user gets logged in, etc.
I doubt anyone will be able to pinpoint a solution, but maybe a general idea of where to look for the problem?
Thanks!




... Great... 

Joined: 05/05/2008