Closed xKidor closed 5 years ago
2019-03-13 19:52:34 <Server thread/Critical> ErrorException: "Invalid argument supplied for foreach()" (EXCEPTION) in "plugins/EnchantShopUI (1).phar/src/UnknownOre/EnchantUI/Main" at line 51 2019-03-13 19:52:34 <Server thread/Debug> #0 plugins/EnchantShopUI (1).phar/src/UnknownOre/EnchantUI/Main(51): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string Invalid argument supplied for foreach(), string phar:///storage/emulated/0/PocketMine-MP/plugins/EnchantShopUI (1).phar/src/UnknownOre/EnchantUI/Main.php, integer 51, array Array()) 2019-03-13 19:52:34 <Server thread/Debug> #1 plugins/EnchantShopUI (1).phar/src/UnknownOre/EnchantUI/Commands/ShopCommand(42): UnknownOre\EnchantUI\Main->listForm(pocketmine\Player object) 2019-03-13 19:52:34 <Server thread/Debug> #2 src/pocketmine/command/SimpleCommandMap(280): UnknownOre\EnchantUI\Commands\ShopCommand->execute(pocketmine\Player object, string eshop, array Array()) 2019-03-13 19:52:34 <Server thread/Debug> #3 src/pocketmine/Server(2159): pocketmine\command\SimpleCommandMap->dispatch(pocketmine\Player object, string eshop) 2019-03-13 19:52:34 <Server thread/Debug> #4 src/pocketmine/Player(3255): pocketmine\Server->dispatchCommand(pocketmine\Player object, string eshop) 2019-03-13 19:52:34 <Server thread/Debug> #5 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(268): pocketmine\Player->handleCommandRequest(pocketmine\network\mcpe\protocol\CommandRequestPacket object) 2019-03-13 19:52:34 <Server thread/Debug> #6 src/pocketmine/network/mcpe/protocol/CommandRequestPacket(54): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleCommandRequest(pocketmine\network\mcpe\protocol\CommandRequestPacket object) 2019-03-13 19:52:34 <Server thread/Debug> #7 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(114): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object) 2019-03-13 19:52:34 <Server thread/Debug> #8 src/pocketmine/network/mcpe/protocol/BatchPacket(123): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\CommandRequestPacket object) 2019-03-13 19:52:34 <Server thread/Debug> #9 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(114): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object) 2019-03-13 19:52:34 <Server thread/Debug> #10 src/pocketmine/Player(3336): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object) 2019-03-13 19:52:34 <Server thread/Debug> #11 src/pocketmine/network/mcpe/RakLibInterface(170): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object) 2019-03-13 19:52:34 <Server thread/Debug> #12 vendor/pocketmine/raklib/src/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 192.168.0.102 40309, raklib\protocol\EncapsulatedPacket object, integer 0) 2019-03-13 19:52:34 <Server thread/Debug> #13 src/pocketmine/network/mcpe/RakLibInterface(110): raklib\server\ServerHandler->handlePacket() 2019-03-13 19:52:34 <Server thread/Debug> #14 src/pocketmine/network/mcpe/RakLibInterface(100): pocketmine\network\mcpe\RakLibInterface->process() 2019-03-13 19:52:34 <Server thread/Debug> #15 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe{closure}() 2019-03-13 19:52:34 <Server thread/Debug> #16 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications() 2019-03-13 19:52:34 <Server thread/Debug> #17 src/pocketmine/Server(2480): pocketmine\snooze\SleeperHandler->sleepUntil(double 1552506754.7246) 2019-03-13 19:52:34 <Server thread/Debug> #18 src/pocketmine/Server(2338): pocketmine\Server->tickProcessor() 2019-03-13 19:52:34 <Server thread/Debug> #19 src/pocketmine/Server(1906): pocketmine\Server->start() 2019-03-13 19:52:34 <Server thread/Debug> #20 src/pocketmine/PocketMine(250): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /storage/emulated/0/PocketMine-MP/, string /storage/emulated/0/PocketMine-MP/plugins/) 2019-03-13 19:52:34 <Server thread/Debug> #21 (1): require_once(string phar:///storage/emulated/0/PocketMine-MP/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
it looks like your config is wrong can you show me your config file?
I use the default config.
@xKidor is the plugin version 0.4?
Yes! You have DISCORD?
2019-03-13 19:52:34 <Server thread/Critical> ErrorException: "Invalid argument supplied for foreach()" (EXCEPTION) in "plugins/EnchantShopUI (1).phar/src/UnknownOre/EnchantUI/Main" at line 51 2019-03-13 19:52:34 <Server thread/Debug> #0 plugins/EnchantShopUI (1).phar/src/UnknownOre/EnchantUI/Main(51): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string Invalid argument supplied for foreach(), string phar:///storage/emulated/0/PocketMine-MP/plugins/EnchantShopUI (1).phar/src/UnknownOre/EnchantUI/Main.php, integer 51, array Array()) 2019-03-13 19:52:34 <Server thread/Debug> #1 plugins/EnchantShopUI (1).phar/src/UnknownOre/EnchantUI/Commands/ShopCommand(42): UnknownOre\EnchantUI\Main->listForm(pocketmine\Player object) 2019-03-13 19:52:34 <Server thread/Debug> #2 src/pocketmine/command/SimpleCommandMap(280): UnknownOre\EnchantUI\Commands\ShopCommand->execute(pocketmine\Player object, string eshop, array Array()) 2019-03-13 19:52:34 <Server thread/Debug> #3 src/pocketmine/Server(2159): pocketmine\command\SimpleCommandMap->dispatch(pocketmine\Player object, string eshop) 2019-03-13 19:52:34 <Server thread/Debug> #4 src/pocketmine/Player(3255): pocketmine\Server->dispatchCommand(pocketmine\Player object, string eshop) 2019-03-13 19:52:34 <Server thread/Debug> #5 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(268): pocketmine\Player->handleCommandRequest(pocketmine\network\mcpe\protocol\CommandRequestPacket object) 2019-03-13 19:52:34 <Server thread/Debug> #6 src/pocketmine/network/mcpe/protocol/CommandRequestPacket(54): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleCommandRequest(pocketmine\network\mcpe\protocol\CommandRequestPacket object) 2019-03-13 19:52:34 <Server thread/Debug> #7 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(114): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object) 2019-03-13 19:52:34 <Server thread/Debug> #8 src/pocketmine/network/mcpe/protocol/BatchPacket(123): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\CommandRequestPacket object) 2019-03-13 19:52:34 <Server thread/Debug> #9 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(114): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object) 2019-03-13 19:52:34 <Server thread/Debug> #10 src/pocketmine/Player(3336): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object) 2019-03-13 19:52:34 <Server thread/Debug> #11 src/pocketmine/network/mcpe/RakLibInterface(170): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object) 2019-03-13 19:52:34 <Server thread/Debug> #12 vendor/pocketmine/raklib/src/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 192.168.0.102 40309, raklib\protocol\EncapsulatedPacket object, integer 0) 2019-03-13 19:52:34 <Server thread/Debug> #13 src/pocketmine/network/mcpe/RakLibInterface(110): raklib\server\ServerHandler->handlePacket() 2019-03-13 19:52:34 <Server thread/Debug> #14 src/pocketmine/network/mcpe/RakLibInterface(100): pocketmine\network\mcpe\RakLibInterface->process() 2019-03-13 19:52:34 <Server thread/Debug> #15 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe{closure}() 2019-03-13 19:52:34 <Server thread/Debug> #16 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications() 2019-03-13 19:52:34 <Server thread/Debug> #17 src/pocketmine/Server(2480): pocketmine\snooze\SleeperHandler->sleepUntil(double 1552506754.7246) 2019-03-13 19:52:34 <Server thread/Debug> #18 src/pocketmine/Server(2338): pocketmine\Server->tickProcessor() 2019-03-13 19:52:34 <Server thread/Debug> #19 src/pocketmine/Server(1906): pocketmine\Server->start() 2019-03-13 19:52:34 <Server thread/Debug> #20 src/pocketmine/PocketMine(250): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /storage/emulated/0/PocketMine-MP/, string /storage/emulated/0/PocketMine-MP/plugins/) 2019-03-13 19:52:34 <Server thread/Debug> #21 (1): require_once(string phar:///storage/emulated/0/PocketMine-MP/PocketMine-MP.phar/src/pocketmine/PocketMine.php)