menu
#3550543 file_get_contents(): failed to open stream: No such file or directory

Submitted by PocketMine-MP 3.11.4+dev

General information

Version: 3.11.4+dev
Git commit: 07cf4eb7
Plugin involvement: None
Report date: 2020-01-14 06:43:35 +0000 UTC

System Information

PHP version: 7.3.13
Operating system: win
System banner: Windows NT LAPTOP-3LLUOMSB 10.0 build 18362 (Windows 10) AMD64

Error information

Message: file_get_contents(): failed to open stream: No such file or directory
File: src/pocketmine/item/Item
Line: #129
Error level: ErrorException
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
	}


/** @var Item[] */
private static $creative = [];

public static function initCreativeItems(){
self::clearCreativeItems();

$creativeItems = json_decode(file_get_contents(\pocketmine\RESOURCE_PATH . "vanilla" . DIRECTORY_SEPARATOR . "creativeitems.json"), true);

foreach($creativeItems as $data){
$item = Item::jsonDeserialize($data);
if($item->getName() === "Unknown"){
continue;
}
self::addCreativeItem($item);
}
}

#0 (): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string[128] file_get_contents(C:\saba\src\pocketmine/resources/vanilla\creativeitems.json): , string[36] C:\saba\src\pocketmine\item\Item.php, integer 129, array[0])
#1 src/pocketmine/item/Item(129): file_get_contents(string[59] C:\saba\src\pocketmine/resources/vanilla\creativeitems.json)
#2 src/pocketmine/Server(1703): pocketmine\item\Item::initCreativeItems()
#3 src/pocketmine/PocketMine(274): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[8] C:\saba\, string[16] C:\saba\plugins\)
#4 src/pocketmine/PocketMine(297): pocketmine\server()

Loaded Plugins

  • Show

Server Settings

  • Show