menu
#4775290 Error while sending STMT_PREPARE packet. PID=1680

Submitted by PocketMine-MP 3.17.5

General information

Version: 3.17.5
Git commit: 3a0c8dd5
Plugin involvement: Direct
Report date: 2021-02-23 06:23:23 +0000 UTC
Server uptime: 2 days 19 hours 19 minutes 25 seconds

System Information

PHP version: 7.3.19
Operating system: win
System banner: Windows NT DENNIS-PC 10.0 build 19041 (Windows 10) AMD64

Error information

Warning: the BanSystem plugin was directly involved in this crash. Please contact the plugin author.
Message: Error while sending STMT_PREPARE packet. PID=1680
File: plugins/BanSystem.phar/src/HimmelKreis4865/BanSystem/MySQLProvider
Line: #93
Error level: ErrorException
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
			return;
}
$stmt = $this->mysql->prepare("UPDATE bansystem_saves SET xuid = ? WHERE username = ?");
$stmt->bind_param("ss", $xuid, $playername);
$stmt->execute();
}

public function getBannedInformations(string $playername, string $xuid) :?array
{
$stmt = $this->mysql->prepare("SELECT * FROM bansystem WHERE username = ? or xuid = ?");
$stmt->bind_param("ss", $playername, $xuid);
$result = $stmt->execute();
if ($result === false) return null;
$result = $stmt->get_result();
if ($result === false) return null;
if ($result->num_rows === 0) return null;
if ($val = $result->fetch_array()) {
if (!isset($val[3])) return null;
return $val;
}
#0 (): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string[49] Error while sending STMT_PREPARE packet. PID=1680, string[129] phar://C:/Users/Dennis/Desktop/PocketMine-MP-minigames-hub/plugins/BanSystem.pha, integer 93, array[2])
#1 plugins/BanSystem.phar/src/HimmelKreis4865/BanSystem/MySQLProvider(93): mysqli->prepare(string[54] SELECT * FROM bansystem WHERE username = ? or xuid = ?)
#2 plugins/BanSystem.phar/src/HimmelKreis4865/BanSystem/MySQLRefreshTask(11): HimmelKreis4865\BanSystem\MySQLProvider->getBannedInformations(string[9] test_user, string[4] sdfg)
#3 pmsrc/src/pocketmine/scheduler/TaskHandler(137): HimmelKreis4865\BanSystem\MySQLRefreshTask->onRun(integer 4847168)
#4 pmsrc/src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 4847168)
#5 pmsrc/src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 4847168)
#6 pmsrc/src/pocketmine/Server(2390): pocketmine\plugin\PluginManager->tickSchedulers(integer 4847168)
#7 pmsrc/src/pocketmine/Server(2153): pocketmine\Server->tick()
#8 pmsrc/src/pocketmine/Server(1993): pocketmine\Server->tickProcessor()
#9 pmsrc/src/pocketmine/Server(1587): pocketmine\Server->start()
#10 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[52] C:\Users\Dennis\Desktop\PocketMine-MP-minigames-hub\, string[60] C:\Users\Dennis\Desktop\PocketMine-MP-minigames-hub\plugins\)
#11 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
#12 pmsrc(11): require(string[107] phar://C:/Users/Dennis/Desktop/PocketMine-MP-minigames-hub/PocketMine-MP.phar/sr)

Loaded Plugins

  • Show

Server Settings

  • Show