menu
#7862776 Too few arguments to function DevTools\FolderPluginLoader::getPluginDescription(), 0 passed in C:\Users\slee0\Documents\Servers\PMMP\plugins\vOneblock\src\Commands\Developer\BugCommand.php on line 35 and exactly 1 expected

Submitted by PocketMine-MP 4.10.0

General information

Version: 4.10.0
Git commit: 0d5287bf
Plugin involvement: Direct
Report date: 2022-11-24 15:05:24 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 19 seconds

System Information

PHP version: 8.0.19
JIT status: Disabled
Operating system: win
System banner: Windows NT CALEBS 10.0 build 22000 (Windows 10) AMD64

Error information

Warning: the DevTools plugin was directly involved in this crash. Please contact the plugin author.
Message: Too few arguments to function DevTools\FolderPluginLoader::getPluginDescription(), 0 passed in C:\Users\slee0\Documents\Servers\PMMP\plugins\vOneblock\src\Commands\Developer\BugCommand.php on line 35 and exactly 1 expected
File: plugins/PocketMine-DevTools.phar/src/FolderPluginLoader
Line: #54
Error level: ArgumentCountError
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
		$description = $this->getPluginDescription($file);
if($description !== null){
$this->loader->addPath($description->getSrcNamespacePrefix(), "$file/src");
}
}

/**
* Gets the PluginDescription from the file
*/
public function getPluginDescription(string $file) : ?PluginDescription{
if(is_dir($file) and file_exists($file . "/plugin.yml")){
$yaml = @file_get_contents($file . "/plugin.yml");
if($yaml != ""){
return new PluginDescription($yaml);
}
}

return null;
}

#0 plugins/vOneblock/src/Commands/Developer/BugCommand(35): DevTools\FolderPluginLoader->getPluginDescription()
#1 plugins/vOneblock/src/Forms/Form(32): Versai\OneBlock\Commands\Developer\BugCommand->Versai\OneBlock\Commands\Developer\{closure}(object pocketmine\player\Player#88579, array[2])
#2 pmsrc/src/player/Player(2038): Versai\OneBlock\Forms\Form->handleResponse(object pocketmine\player\Player#88579, array[2])
#3 pmsrc/src/network/mcpe/handler/InGamePacketHandler(892): pocketmine\player\Player->onFormSubmit(int 0, array[2])
#4 pmsrc/vendor/pocketmine/bedrock-protocol/src/ModalFormResponsePacket(63): pocketmine\network\mcpe\handler\InGamePacketHandler->handleModalFormResponse(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket#117390)
#5 pmsrc/src/network/mcpe/NetworkSession(410): pocketmine\network\mcpe\protocol\ModalFormResponsePacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#115428)
#6 pmsrc/src/network/mcpe/NetworkSession(373): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket#117390, string[29] e...[null,"This is a test"]..)
#7 pmsrc/src/network/mcpe/raklib/RakLibInterface(182): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[30] .Me`...+...Q...,V..D......X...)
#8 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[39] ..o.9~...\yB.U.".Z$......8.....)Q|Gv.i.)
#9 pmsrc/src/network/mcpe/raklib/RakLibInterface(112): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#24901)
#10 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#11 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#12 pmsrc/src/Server(1707): pocketmine\snooze\SleeperHandler->sleepUntil(float 1669302324.6879)
#13 pmsrc/src/Server(1065): pocketmine\Server->tickProcessor()
#14 pmsrc/src/PocketMine(305): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[38] C:\Users\slee0\Documents\Servers\PMMP\, string[46] C:\Users\slee0\Documents\Servers\PMMP\plugins\)
#15 pmsrc/src/PocketMine(328): pocketmine\server()
#16 pmsrc(11): require(string[82] phar://C:/Users/slee0/Documents/Servers/PMMP/PocketMine-MP.phar/src/PocketMine.p)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show