• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Compiling 0.4DEV with guild bug.

Radium

Frozen-Hell.com
Joined
Nov 20, 2010
Messages
248
Reaction score
11
Location
England
Code:
[28/1/2011 1:15:29] mysql_real_query(): INSERT INTO `guild_invites` (`player_id`, `guild_id`) VALUES (1914, 293) - MYSQL ERROR: Cannot add or update a child row: a foreign key constraint fails (`tfs3`.`guild_invites`, CONSTRAINT `guild_invites_ibfk_2` FOREIGN KEY (`guild_id`) REFERENCES `guilds` (`id`) ON DELETE CASCADE) (1452)

I have compiled with 0.4 Dev and i am getting this error whilst people are trying to invite players to guild. Do you know what the problem is?
 
XML:
CREATE TABLE `guild_invites`
(
	`player_id` INT NOT NULL DEFAULT 0,
	`guild_id` INT NOT NULL DEFAULT 0,
	UNIQUE (`player_id`, `guild_id`),
	FOREIGN KEY (`player_id`) REFERENCES `players`(`id`) ON DELETE CASCADE,
	FOREIGN KEY (`guild_id`) REFERENCES `guilds`(`id`) ON DELETE CASCADE
) ENGINE = InnoDB;

repp if it helped
 
Back
Top