menu
#7304381 Undefined array key 4

Submitted by PocketMine-MP 4.6.0

General information

Version: 4.6.0
Git commit: 3ccd288a
Plugin involvement: Direct
Report date: 2022-08-05 23:37:07 +0000 UTC
Server uptime: 0 days 0 hours 40 minutes 5 seconds

System Information

PHP version: 8.0.19
Operating system: linux
System banner: Linux ecb4aaf4c18e 5.4.0-104-generic #118-Ubuntu SMP Wed Mar 2 19:02:41 UTC 2022 x86_64

Error information

Warning: the CustomShopUI plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined array key 4
File: plugins/CustomShopUI.phar/src/AlexPads/CustomShopUI/Main
Line: #211
Error level: ErrorException
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
                    $this->SubItems($player, $categorys, $cfg, $ans);
}
}
});
$msg = new Config($this->getDataFolder() . "messages.yml", Config::YAML);
$form->setTitle($msg->getNested("Titles.Items"));
if ($this->getConfig()->get("Items_ExitButton") === true) {
$form->addButton($msg->getNested("Messages.ExitButton"),0,"textures/ui/ps4_dpad_right");
}
$items = $cfg[$categorys];
if (!isset($items["Sub"])) {
foreach ($items["Items"] as $cate => $item) {
$list = explode(":", $item);
if ($list[5] == "Default") {
$name = ItemFactory::getInstance()->get((int)$list[0], (int)$list[1], 1)->getName();
} else {
$name = $list[5];
}
if ($list[0] == "cmd") {
$msg2 = str_replace("{price}", "$list[2]", $msg->getNested("Messages.Each"));
#0 plugins/CustomShopUI.phar/src/AlexPads/CustomShopUI/Main(211): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[21] Undefined array key 4, string[75] phar:///server/plugins/CustomShopUI.phar/src/AlexPads/CustomShopUI/Main.php, int 211)
#1 plugins/CustomShopUI.phar/src/AlexPads/CustomShopUI/Main(130): AlexPads\CustomShopUI\Main->Items(object pocketmine\player\Player#118172, int 4, array[6], string[4] shop)
#2 plugins/CustomShopUI.phar/src/AlexPads/CustomShopUI/libs/Vecnavium/FormsUI/Form(46): AlexPads\CustomShopUI\Main->AlexPads\CustomShopUI\{closure}(object pocketmine\player\Player#118172, int 5)
#3 pmsrc/src/player/Player(2011): AlexPads\CustomShopUI\libs\Vecnavium\FormsUI\Form->handleResponse(object pocketmine\player\Player#118172, int 5)
#4 pmsrc/src/network/mcpe/handler/InGamePacketHandler(871): pocketmine\player\Player->onFormSubmit(int 156, int 5)
#5 pmsrc/vendor/pocketmine/bedrock-protocol/src/ModalFormResponsePacket(46): pocketmine\network\mcpe\handler\InGamePacketHandler->handleModalFormResponse(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket#123060)
#6 pmsrc/src/network/mcpe/NetworkSession(392): pocketmine\network\mcpe\protocol\ModalFormResponsePacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#118943)
#7 pmsrc/src/network/mcpe/NetworkSession(355): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket#123060, string[6] e...5.)
#8 pmsrc/src/network/mcpe/raklib/RakLibInterface(182): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[9] cK...d...)
#9 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[18] .o.c.B............)
#10 pmsrc/src/network/mcpe/raklib/RakLibInterface(112): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#33508)
#11 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#12 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#13 pmsrc/src/Server(1703): pocketmine\snooze\SleeperHandler->sleepUntil(float 1659742627.7317)
#14 pmsrc/src/Server(1063): pocketmine\Server->tickProcessor()
#15 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#3, object pocketmine\utils\MainLogger#2, string[8] /server/, string[16] /server/plugins/)
#16 pmsrc/src/PocketMine(327): pocketmine\server()
#17 pmsrc(11): require(string[45] phar:///server/server.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show