Problem with Local Records plugin

ManiaControl, the completely new designed and easy to use controller managing all your Maniaplanet server.

Moderators: Jocy, Wabbitface, steeffeen, NADEO

Post Reply
wazerti
Posts: 131
Joined: 05 Nov 2012, 15:41

Problem with Local Records plugin

Post by wazerti »

Hello,

I'm configuring a dedicated server with ManiaControl, everything worked fine, ManiaControl runs on the server but I have a problem when I want to add the Local Record plugins. :?
I always get this error :

Code: Select all

[06-Dec-2018 12:44:19 UTC] [ManiaControl ERROR]: Nom du champ 'checkpoints' déjà utilisé
File&Line: C:\Users\******\Server\ManiaControl-0.301\plugins\MCTeam\LocalRecordsPlugin.php: 192
[06-Dec-2018 12:44:19 UTC] Quitting ManiaControl after Fatal Error.
[06-Dec-2018 12:44:19 UTC] Quitting ManiaControl!
When I do not use this plugin ManiaControl works perfectly...

Thank you
hyxtiplay
Posts: 2
Joined: 13 Dec 2018, 19:10

Re: Problem with Local Records plugin

Post by hyxtiplay »

Hey wazerti,

I tried a lot of thing,

Then i tried something that works (miraculously), so this is what i've done :

1) Open the file ...\ManiaControl-0.301\plugins\MCTeam\LocalRecordsPlugin.php
2) Go to this line :

Code: Select all

		$mysqli->query("ALTER TABLE `" . self::TABLE_RECORDS . "` ADD `checkpoints` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL");
		if ($mysqli->error) {
			if (!strstr($mysqli->error, 'Duplicate')) {
				trigger_error($mysqli->error, E_USER_ERROR);
			}
		}
3) Now remove the " ! " on this line :

Code: Select all

			if (!strstr($mysqli->error, 'Duplicate')) {
So now you should have this :

Code: Select all

		$mysqli->query("ALTER TABLE `" . self::TABLE_RECORDS . "` ADD `checkpoints` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL");
		if ($mysqli->error) {
			if (strstr($mysqli->error, 'Duplicate')) {
				trigger_error($mysqli->error, E_USER_ERROR);
			}
		}
4) Save
5) Enjoy (tell me if it works for you or not, i hope yes ^^)

Bye ! :thumbsup:
Post Reply

Return to “ManiaControl”

Who is online

Users browsing this forum: No registered users and 1 guest