menu
#4656793 file_get_contents(): failed to open stream: phar error: "resources/vanilla/required_item_list.json" is not a file in phar "C:/Users/ilhan/emperials/PocketMine-MP.phar"

Submitted by PocketMine-MP 4.0.0+dev

General information

Version: 4.0.0+dev
Git commit: af1fe7c2
Plugin involvement: None
Report date: 2020-11-21 22:10:35 +0000 UTC

System Information

PHP version: 7.4.11
Operating system: win
System banner: Windows NT VIVOBOOK 10.0 build 19042 (Windows 10) AMD64

Error information

Message: file_get_contents(): failed to open stream: phar error: "resources/vanilla/required_item_list.json" is not a file in phar "C:/Users/ilhan/emperials/PocketMine-MP.phar"
File: src/network/mcpe/convert/ItemTypeDictionary
Line: #57
Error level: ErrorException
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
	 */
private $intToStringIdMap = [];
/**
* @var int[]
* @phpstan-var array<string, int>
*/
private $stringToIntMap = [];

private static function make() : self{
$data = file_get_contents(\pocketmine\RESOURCE_PATH . '/vanilla/required_item_list.json');
if($data === false) throw new AssumptionFailedError("Missing required resource file");
$table = json_decode($data, true);
if(!is_array($table)){
throw new AssumptionFailedError("Invalid item list format");
}

$params = [];
foreach($table as $name => $entry){
if(!is_array($entry) || !is_string($name) || !isset($entry["component_based"], $entry["runtime_id"]) || !is_bool($entry["component_based"]) || !is_int($entry["runtime_id"])){
throw new AssumptionFailedError("Invalid item list format");
#0 (): pocketmine\errorhandler\ErrorToExceptionHandler::handle(integer 2, string[260] file_get_contents(phar://C:/Users/ilhan/emperials/PocketMine-MP.phar/resources//, string[98] phar://C:/Users/ilhan/emperials/PocketMine-MP.phar/src/network/mcpe/convert/Item, integer 57, array[0])
#1 src/network/mcpe/convert/ItemTypeDictionary(57): file_get_contents(string[93] phar://C:/Users/ilhan/emperials/PocketMine-MP.phar/resources//vanilla/required_i)
#2 src/utils/SingletonTrait(36): pocketmine\network\mcpe\convert\ItemTypeDictionary::make()
#3 src/network/mcpe/convert/TypeConverter(63): pocketmine\network\mcpe\convert\ItemTypeDictionary::getInstance()
#4 src/utils/SingletonTrait(31): pocketmine\network\mcpe\convert\TypeConverter->__construct()
#5 src/utils/SingletonTrait(36): pocketmine\network\mcpe\convert\TypeConverter::make()
#6 src/network/mcpe/handler/PreSpawnPacketHandler(65): pocketmine\network\mcpe\convert\TypeConverter::getInstance()
#7 src/network/mcpe/NetworkSession(298): pocketmine\network\mcpe\handler\PreSpawnPacketHandler->setUp()
#8 src/network/mcpe/NetworkSession(626): pocketmine\network\mcpe\NetworkSession->setHandler(object pocketmine\network\mcpe\handler\PreSpawnPacketHandler)
#9 src/network/mcpe/NetworkSession(619): pocketmine\network\mcpe\NetworkSession->beginSpawnSequence()
#10 src/network/mcpe/handler/ResourcePacksPacketHandler(136): pocketmine\network\mcpe\NetworkSession->pocketmine\network\mcpe\{closure}()
#11 src/network/mcpe/protocol/ResourcePackClientResponsePacket(61): pocketmine\network\mcpe\handler\ResourcePacksPacketHandler->handleResourcePackClientResponse(object pocketmine\network\mcpe\protocol\ResourcePackClientResponsePacket)
#12 src/network/mcpe/NetworkSession(377): pocketmine\network\mcpe\protocol\ResourcePackClientResponsePacket->handle(object pocketmine\network\mcpe\handler\ResourcePacksPacketHandler)
#13 src/network/mcpe/NetworkSession(336): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\ResourcePackClientResponsePacket)
#14 src/network/mcpe/raklib/RakLibInterface(178): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[7] c.`a`..)
#15 vendor/pocketmine/raklib/src/server/ipc/RakLibToUserThreadMessageReceiver(43): pocketmine\network\mcpe\raklib\RakLibInterface->handleEncapsulated(integer 0, string[16] ..."1v|.#..?`...)
#16 src/network/mcpe/raklib/RakLibInterface(113): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface)
#17 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#18 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
#19 src/Server(1523): pocketmine\snooze\SleeperHandler->sleepUntil(double 1605996634.9899)
#20 src/Server(1076): pocketmine\Server->tickProcessor()
#21 src/PocketMine(246): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[25] C:\Users\ilhan\emperials\, string[33] C:\Users\ilhan\emperials\plugins\)
#22 src/PocketMine(271): pocketmine\server()
#23 (11): require(string[69] phar://C:/Users/ilhan/emperials/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show