menu
#2907275 file_get_contents(): failed to open stream: phar error: Cannot open phar archive "/home/planetpe/serverNEW/plugins/UtilCommands_v1.0.phar" for reading

Submitted by PocketMine-MP 3.9.3

General information

Version: 3.9.3
Git commit: 18a1bfe4
Plugin involvement: Direct
Report date: 2019-10-09 21:56:15 +0000 UTC

System Information

PHP version: 7.3.6
Operating system: linux
System banner: Linux planet 4.15.0-54-generic #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 x86_64

Error information

Warning: the DevTools plugin was directly involved in this crash. Please contact the plugin author.
Message: file_get_contents(): failed to open stream: phar error: Cannot open phar archive "/home/planetpe/serverNEW/plugins/UtilCommands_v1.0.phar" for reading
File: plugins/PocketMine-DevTools.phar/src/DevTools/commands/ExtractPluginCommand
Line: #91
Error level: ErrorException
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96

$reflection = new \ReflectionClass(PluginBase::class);
$file = $reflection->getProperty("file");
$file->setAccessible(true);
$pharPath = str_replace("\\", "/", rtrim($file->getValue($plugin), "\\/"));

foreach(new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($pharPath)) as $fInfo){
$path = $fInfo->getPathname();
@mkdir(dirname($folderPath . str_replace($pharPath, "", $path)), 0755, true);
file_put_contents($folderPath . str_replace($pharPath, "", $path), file_get_contents($path));
}
$sender->sendMessage("Source plugin " . $description->getName() . " v" . $description->getVersion() . " has been created on " . $folderPath);
return true;
}
}
#0 (): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string[223] file_get_contents(phar:///home/planetpe/serverNEW/plugins/UtilCommands_v1.0.phar, string[111] phar:///home/planetpe/serverNEW/plugins/PocketMine-DevTools.phar/src/DevTools/co, integer 91, array[12])
#1 plugins/PocketMine-DevTools.phar/src/DevTools/commands/ExtractPluginCommand(91): file_get_contents(string[73] phar:///home/planetpe/serverNEW/plugins/UtilCommands_v1.0.phar/plugin.yml)
#2 src/pocketmine/command/SimpleCommandMap(270): DevTools\commands\ExtractPluginCommand->execute(object pocketmine\command\ConsoleCommandSender, string[13] extractplugin, array[1])
#3 src/pocketmine/Server(2029): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\command\ConsoleCommandSender, string[26] extractplugin UtilCommands)
#4 src/pocketmine/Server(1616): pocketmine\Server->dispatchCommand(object pocketmine\command\ConsoleCommandSender, string[26] extractplugin UtilCommands)
#5 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\Server->pocketmine\{closure}()
#6 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
#7 src/pocketmine/Server(2348): pocketmine\snooze\SleeperHandler->sleepUntil(double 1570658175.5108)
#8 src/pocketmine/Server(2205): pocketmine\Server->tickProcessor()
#9 src/pocketmine/Server(1784): pocketmine\Server->start()
#10 src/pocketmine/PocketMine(275): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[25] /home/planetpe/serverNEW/, string[33] /home/planetpe/serverNEW/plugins/)
#11 src/pocketmine/PocketMine(299): pocketmine\server()
#12 (1): require(string[80] phar:///home/planetpe/serverNEW/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show