menu
#5777514 "resource_stack" key should contain a list of pack names

Submitted by PocketMine-MP 4.0.6

General information

Version: 4.0.6
Git commit: f7d25f25
Plugin involvement: None
Report date: 2022-01-14 23:39:09 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 0 seconds

System Information

PHP version: 8.0.13
Operating system: linux
System banner: Linux 52bc0efe9175 5.4.0-73-generic #82-Ubuntu SMP Wed Apr 14 17:39:42 UTC 2021 x86_64

Error information

Message: "resource_stack" key should contain a list of pack names
File: pmsrc/src/resourcepacks/ResourcePackManager
Line: #82
Error level: InvalidArgumentException
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92

$resourcePacksConfig = new Config($resourcePacksYml, Config::YAML, []);

$this->serverForceResources = (bool) $resourcePacksConfig->get("force_resources", false);

$logger->info("Loading resource packs...");

$resourceStack = $resourcePacksConfig->get("resource_stack", []);
if(!is_array($resourceStack)){
throw new \InvalidArgumentException("\"resource_stack\" key should contain a list of pack names");
}

foreach($resourceStack as $pos => $pack){
if(!is_string($pack) && !is_int($pack) && !is_float($pack)){
$logger->critical("Found invalid entry in resource pack list at offset $pos of type " . gettype($pack));
continue;
}
$pack = (string) $pack;
try{
$packPath = Path::join($this->path, $pack);
#0 pmsrc/src/Server(965): pocketmine\resourcepacks\ResourcePackManager->__construct(string[22] /server/resource_packs, object pocketmine\utils\MainLogger#2)
#1 pmsrc/src/PocketMine(303): pocketmine\Server->__construct(object BaseClassLoader#3, object pocketmine\utils\MainLogger#2, string[8] /server/, string[16] /server/plugins/)
#2 pmsrc/src/PocketMine(326): pocketmine\server()
#3 pmsrc(11): require(string[45] phar:///server/server.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show