• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Can't make an account!

flaxe

the one and only
Joined
Jun 12, 2009
Messages
336
Reaction score
2
Location
Sweden
Hello, when I'm pressing at "submit" when I've written all the account information in "Create Account" this is the error I get:

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '' for key 'name'' in D:\xampp\htdocs\pot\OTS_Account.php:110 Stack trace: #0 D:\xampp\htdocs\pot\OTS_Account.php(110): PDO->query('INSERT INTO `ac...') #1 D:\xampp\htdocs\createaccount.php(258): OTS_Account->create(2521020, 2521020) #2 D:\xampp\htdocs\index.php(139): include('D:\xampp\htdocs...') #3 {main} thrown in D:\xampp\htdocs\pot\OTS_Account.php on line 110

This is the code at line 110:
Code:
if($number == $random)

Anyone know what I should do to fix this? Thanks!
 
Aparently the AAC is trying to insert a character with the name "" (blank) into the database, but is not allowed because the character already exist.
 
Aparently the AAC is trying to insert a character with the name "" (blank) into the database, but is not allowed because the character already exist.

And how should I fix that then? But.. when you say character, how could it be character when it happends when I'm trying to create the account :confused:
Thanks for quick answear tho.
 
Nevermind, my bad... it was the accounts table... but the same thing really... for whatever reason its trying to insert "" as the account name, and that apparently already exists, so it throws that error.
 
Oh ok, thanks. I just took a quick look in phpmyadmin and saw that an account was created, but not with the account number that I wrote. But I deleted that one and now it works to create account =) Thanks for saying that a account already existed =) I give u some rep

Thanks. Thread can be closed =)
 
Last edited:
Back
Top