menu
#4583327 Error while sending QUERY packet. PID=956

Submitted by PocketMine-MP 3.15.0

General information

Version: 3.15.0
Git commit: a498b041
Plugin involvement: Direct
Report date: 2020-10-18 00:08:29 +0000 UTC

System Information

PHP version: 7.3.8
Operating system: linux
System banner: Linux mc01.24sucht.io 4.9.0-12-amd64 #1 SMP Debian 4.9.210-1+deb9u1 (2020-06-07) x86_64

Error information

Warning: the 24TimeSupportTool plugin was directly involved in this crash. Please contact the plugin author.
Message: Error while sending QUERY packet. PID=956
File: plugins/24TimeSupportTool.phar/src/SuprexDE/TimeSupportTool/provider/MySQLProvider
Line: #104
Error level: ErrorException
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
        $sql = "UPDATE supportTimes SET endedAt = NOW(), unsafe = " . ($unsafe ? "1" : "0") . " WHERE xuid = '" . $player->getXuid() . "' AND endedAt IS NULL;";
$this->getConnectionHandler()->execute($sql, $this->plugin->getConfig()->get('mysql')['database'], null);
if (!$unsafe)
$player->sendMessage($this->plugin->getPREFIX() . "Dein Support wurde beendet und gespeichert.");
}


public function playerHasOpenSupport(string $xuid)
{
return $this->getDb()->query("SELECT COUNT(*) as `activeSupports` FROM supportTimes WHERE xuid LIKE '" . $xuid ."' AND endedAt IS NULL;")->fetch_array()['activeSupports'] >= 1;
}


/**
* @return mysqli
*/
public function getDb(): mysqli
{
return $this->db;
}
#0 (): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string[41] Error while sending QUERY packet. PID=956, string[114] phar:///home/lobby/lobby-02/plugins/24TimeSupportTool.phar/src/SuprexDE/TimeSupp, integer 104, array[1])
#1 plugins/24TimeSupportTool.phar/src/SuprexDE/TimeSupportTool/provider/MySQLProvider(104): mysqli->query(string[109] SELECT COUNT(*) as `activeSupports` FROM supportTimes WHERE xuid LIKE '253545594)
#2 plugins/24TimeSupportTool.phar/src/SuprexDE/TimeSupportTool/tasks/CheckAFKTask(25): SuprexDE\TimeSupportTool\provider\MySQLProvider->playerHasOpenSupport(string[16] 2535455943403971)
#3 src/pocketmine/scheduler/TaskHandler(137): SuprexDE\TimeSupportTool\tasks\CheckAFKTask->onRun(integer 1481701)
#4 src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 1481701)
#5 src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 1481701)
#6 src/pocketmine/Server(2391): pocketmine\plugin\PluginManager->tickSchedulers(integer 1481701)
#7 src/pocketmine/Server(2154): pocketmine\Server->tick()
#8 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
#9 src/pocketmine/Server(1588): pocketmine\Server->start()
#10 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[21] /home/lobby/lobby-02/, string[29] /home/lobby/lobby-02/plugins/)
#11 src/pocketmine/PocketMine(304): pocketmine\server()
#12 (11): require(string[76] phar:///home/lobby/lobby-02/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies