#102 Undefined array key 1
Submitted by PocketMine-MP 5.9.1+dev.2029
General information
Version: | 5.9.1+dev.2029 |
---|---|
Git commit: | 4a91f2e2 |
Plugin involvement: | Direct |
Report date: | 2024-05-12 23:59:32 +0000 UTC |
Server uptime: | 11 days 9 hours 13 minutes 24 seconds |
System Information
PHP version: | 8.2.9 |
---|---|
JIT status: | Not available |
Operating system: | linux |
System banner: | Linux anmine.ru 5.10.0-28-amd64 #1 SMP Debian 5.10.209-2 (2024-01-31) x86_64 |
Error information
Warning: the Hub plugin was directly involved in this crash. Please contact the plugin author.
Thread: | AsyncWorker#0 |
---|---|
Message: | Undefined array key 1 |
File: | plugins/Hub.phar/src/corndan/Hub/classes/QueryClass |
Line: | #59 |
Type: | ErrorException |
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
if (substr($data, 17, 16) !== $OFFLINE_MESSAGE_DATA_ID) {
$this->errors[] = "Magic bytes do not match.";
return;
}
$data = substr($data, 35);
$data = explode(';', $data);
$this->info = [
'game' => $data[0],
'host' => $data[1],
'protocol' => $data[2],
'version' => $data[3],
'online' => $data[4],
'slots' => $data[5],
//'Unknown2' => $data[6], // TODO: What is this?
'map' => $data[7],
'gamemode' => $data[8],
//'Unknown3' => $data[9], // TODO: What is this?
];
$this->status = true;
#0 /home/anmine/servers/hub/plugins/Hub.phar/src/corndan/Hub/classes/QueryClass(59): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[21] Undefined array key 1, string[87] phar:///home/anmine/servers/hub/plugins/Hub.phar/src/corndan/Hub/classes/QueryCl, int 59)
#1 /home/anmine/servers/hub/plugins/Hub.phar/src/corndan/Hub/HubMain(105): corndan\Hub\classes\QueryClass->__construct(string[13] ananasmine.ru, int 19140)
#2 pmsrc/src/scheduler/AsyncTask(83): pocketmine\scheduler\AsyncTask@anonymous�phar:///home/anmine/servers/hub/plugins/Hub.phar/src/corndan/Hub/HubMain.php:95$23c->onRun()
#3 (): pocketmine\scheduler\AsyncTask->run()
Loaded Plugins
-
Show
Server Settings
-
Show
Installed Composer Dependencies
-
Show
Installed PHP Extensions
-
Show