Error: Failed to load config /home/echoes/plugin_data/theRankShop/ranks.yml: Expected array for base type, but got null
File: pmsrc/src/utils/Config
Line: 205
Type: pocketmine\utils\ConfigLoadException
A PLUGIN WAS INVOLVED IN THIS CRASH
BAD PLUGIN: theRankShop
Code:
[196] }
[197] break;
[198] case Config::ENUM:
[199] $config = array_fill_keys(self::parseList($content), true);
[200] break;
[201] default:
[202] throw new \InvalidArgumentException("Invalid config type specified");
[203] }
[204] if(!is_array($config)){
[205] throw new ConfigLoadException("Failed to load config $this->file: Expected array for base type, but got " . get_debug_type($config));
[206] }
[207] $this->config = $config;
[208] if($this->fillDefaults($default, $this->config) > 0){
[209] $this->save();
[210] }
[211] }
[212] }
[213]
[214] /*
[215] Returns the path of the config.
Error: Failed to load config /home/echoes/plugin_data/theRankShop/ranks.yml: Expected array for base type, but got null File: pmsrc/src/utils/Config Line: 205 Type: pocketmine\utils\ConfigLoadException
A PLUGIN WAS INVOLVED IN THIS CRASH BAD PLUGIN: theRankShop
Code: [196] } [197] break; [198] case Config::ENUM: [199] $config = array_fill_keys(self::parseList($content), true); [200] break; [201] default: [202] throw new \InvalidArgumentException("Invalid config type specified"); [203] } [204] if(!is_array($config)){ [205] throw new ConfigLoadException("Failed to load config $this->file: Expected array for base type, but got " . get_debug_type($config)); [206] } [207] $this->config = $config; [208] if($this->fillDefaults($default, $this->config) > 0){ [209] $this->save(); [210] } [211] } [212] } [213] [214] /* [215] Returns the path of the config.
Backtrace:
0 pmsrc/src/utils/Config(121): pocketmine\utils\Config->load(string[46] /home/echoes/plugin_data/theRankShop/ranks.yml, integer 2, array[0])
1 plugins/theRankShop_dev-27.phar/src/supercrafter333/theRankShop/theRankShop(133): pocketmine\utils\Config->__construct(string[46] /home/echoes/plugin_data/theRankShop/ranks.yml, integer 2)
2 plugins/theRankShop_dev-27.phar/src/supercrafter333/theRankShop/Manager/RankMgr(21): supercrafter333\theRankShop\theRankShop::getRankCfg()
3 plugins/theRankShop_dev-27.phar/src/supercrafter333/theRankShop/Forms/theRankShopDefaultForms(70): supercrafter333\theRankShop\Manager\RankMgr::getAllRanksInConfig()
4 plugins/theRankShop_dev-27.phar/src/supercrafter333/theRankShop/Commands/theRankShopCommand(51): supercrafter333\theRankShop\Forms\theRankShopDefaultForms->openMenuForm()
5 pmsrc/src/command/SimpleCommandMap(220): supercrafter333\theRankShop\Commands\theRankShopCommand->execute(object ipad54\netherblocks\player\Player#94331, string[8] rankshop, array[0])
6 pmsrc/src/Server(1408): pocketmine\command\SimpleCommandMap->dispatch(object ipad54\netherblocks\player\Player#94331, string[8] rankshop)
7 pmsrc/src/player/Player(1383): pocketmine\Server->dispatchCommand(object ipad54\netherblocks\player\Player#94331, string[8] rankshop)
8 pmsrc/src/network/mcpe/handler/InGamePacketHandler(754): pocketmine\player\Player->chat(string[9] /rankshop)
9 pmsrc/vendor/pocketmine/bedrock-protocol/src/CommandRequestPacket(51): pocketmine\network\mcpe\handler\InGamePacketHandler->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket#137605)
10 pmsrc/src/network/mcpe/NetworkSession(397): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#134976)
11 pmsrc/src/network/mcpe/NetworkSession(360): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket#137605, string[30] M./rankshop..F...G^B..x.1E....)
12 pmsrc/src/network/mcpe/raklib/RakLibInterface(192): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[33] ..../J...../`..v...{..e......S...)
13 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(integer 0, string[42] .|...@....[...=:..w.....]0.],zwq..2{....P,)
14 pmsrc/src/network/mcpe/raklib/RakLibInterface(122): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#99052)
15 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib{closure}()
16 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
17 pmsrc/src/Server(1660): pocketmine\snooze\SleeperHandler->sleepUntil(double 1648143527.6473)
18 pmsrc/src/Server(1046): pocketmine\Server->tickProcessor()
19 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#3, object pocketmine\utils\MainLogger#2, string[13] /home/echoes/, string[21] /home/echoes/plugins/)
20 pmsrc/src/PocketMine(327): pocketmine\server()
21 pmsrc(11): require(string[57] phar:///home/echoes/PocketMine-MP.phar/src/PocketMine.php)
PocketMine-MP version: 4.2.4 [Protocol 486] Git commit: 05a5e5eac126064583af2e892cb9b3cc0b0a88b6 uname -a: Linux vps630912 4.15.0-167-generic #175-Ubuntu SMP Wed Jan 5 01:56:07 UTC 2022 x86_64 PHP Version: 8.0.16 Zend version: 4.0.16 OS: Linux, linux Composer libraries: