• 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!

Windows Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]:

lewy1000

New Member
Joined
May 24, 2010
Messages
29
Reaction score
0
PHP:
STEP 4

Add samples to DB:
News ticker sample is already in database. New sample is not needed.
Added first news.

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1452 Cannot add or update a child row: a foreign key constraint fails (`tibia`.`players`, CONSTRAINT `players_ibfk_1` FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`) ON DELETE CASCADE)' in C:\xampp\htdocs\install.php:505 Stack trace: #0 C:\xampp\htdocs\install.php(505): PDO->query('INSERT INTO pla...') #1 {main} thrown in C:\xampp\htdocs\install.php on line 505

Hey, i have got that error... how can i fix it?

- - - Updated - - -

ok i fix that but now
Code:
Fatal error: Call to a member function query() on a non-object in C:\xampp\htdocs\install.php on line 489
 
PHP:
STEP 4

Add samples to DB:
News ticker sample is already in database. New sample is not needed.
Added first news.

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1452 Cannot add or update a child row: a foreign key constraint fails (`tibia`.`players`, CONSTRAINT `players_ibfk_1` FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`) ON DELETE CASCADE)' in C:\xampp\htdocs\install.php:505 Stack trace: #0 C:\xampp\htdocs\install.php(505): PDO->query('INSERT INTO pla...') #1 {main} thrown in C:\xampp\htdocs\install.php on line 505

Hey, i have got that error... how can i fix it?

- - - Updated - - -

ok i fix that but now
Code:
Fatal error: Call to a member function query() on a non-object in C:\xampp\htdocs\install.php on line 489
who you fix step 4
 

Similar threads

Back
Top