menu
#7305001 Call to a member function fetch_array() on bool

Submitted by PocketMine-MP 4.6.0

General information

Version: 4.6.0
Git commit: 3ccd288a
Plugin involvement: Direct
Report date: 2022-08-06 02:22:51 +0000 UTC
Server uptime: 0 days 16 hours 55 minutes 34 seconds

System Information

PHP version: 8.0.18
Operating system: linux
System banner: Linux ubuntu-s-2vcpu-2gb-amd-sfo3-01 5.15.0-43-generic #46-Ubuntu SMP Tue Jul 12 10:30:17 UTC 2022 x86_64

Error information

Warning: the DiverHCF plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function fetch_array() on bool
File: plugins/Diver_4_10.phar/src/Diver/commands/moderation/PexCommand
Line: #53
Error level: Error
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
				if(!is_string($args[1])||!is_string($args[2])){
$sender->sendMessage(str_replace(["&"], ["ยง"], Loader::getConfiguration("messages")->get("player_not_is_string")));
return;
}
if(!in_array($args[2], $this->listRanks)){
$sender->sendMessage(TE::RED."Rank {$args[2]} not exists!");
return;
}
$queryTo = $connection->query("SELECT * FROM players_data_ranks WHERE player_name = '$args[1]';");
$result = $queryTo->fetch_array(MYSQLI_ASSOC);
if(empty($result)){
$connection->query("INSERT INTO players_data_ranks(player_name, rank_id) VALUES ('$args[1]', '$args[2]');");
}else{
$connection->query("UPDATE players_data_ranks SET rank_id = '$args[2]' WHERE player_name = '$args[1]';");
}
break;
case "remove":
if(!$sender->hasPermission("pex.command.use")){
$sender->sendMessage(TE::RED."You have not permissions to use this command");
return;
#0 pmsrc/src/command/SimpleCommandMap(205): Diver\commands\moderation\PexCommand->execute(object Diver\player\Player#196413, string[4] rank, array[3])
#1 pmsrc/src/Server(1446): pocketmine\command\SimpleCommandMap->dispatch(object Diver\player\Player#196413, string[27] rank set tagxxjoakoxx Whale)
#2 pmsrc/src/player/Player(1410): pocketmine\Server->dispatchCommand(object Diver\player\Player#196413, string[27] rank set tagxxjoakoxx Whale)
#3 pmsrc/src/network/mcpe/handler/InGamePacketHandler(737): pocketmine\player\Player->chat(string[28] /rank set tagxxjoakoxx Whale)
#4 pmsrc/vendor/pocketmine/bedrock-protocol/src/CommandRequestPacket(51): pocketmine\network\mcpe\handler\InGamePacketHandler->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket#207924)
#5 pmsrc/src/network/mcpe/NetworkSession(392): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#186630)
#6 pmsrc/src/network/mcpe/NetworkSession(355): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket#207924, string[49] M./rank set tagxxjoakoxx Whale..I....m.89U.......)
#7 pmsrc/src/network/mcpe/raklib/RakLibInterface(182): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[96] 3.../J..V(N-Q(IL....O....P..H.Ie8...........S.v....`2.....#.RN.G...o(.;.. [email protected])
#8 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 7, string[105] .%08)....\dI..F.-.i.[.]...".{..6.....:/.q'..<.Q....#m..vHp..`..n.."...[D....H.8^)
#9 pmsrc/src/network/mcpe/raklib/RakLibInterface(112): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#104322)
#10 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#11 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#12 pmsrc/src/Server(1703): pocketmine\snooze\SleeperHandler->sleepUntil(float 1659752571.0602)
#13 pmsrc/src/Server(1063): pocketmine\Server->tickProcessor()
#14 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#3, object pocketmine\utils\MainLogger#2, string[10] /root/Hcf/, string[18] /root/Hcf/plugins/)
#15 pmsrc/src/PocketMine(327): pocketmine\server()
#16 pmsrc(11): require(string[54] phar:///root/Hcf/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show