menu
#2387356 Argument 1 passed to jojoe77777\FormAPI\CustomForm::addLabel() must be of the type string, null given

Submitted by PocketMine-MP 3.8.1

General information

Version: 3.8.1
Git commit: 7521160f
Plugin involvement: Direct
Report date: 2019-05-15 16:56:44 +0000 UTC

System Information

PHP version: 7.2.16
Operating system: linux
System banner: Linux PufferMC 4.4.0-145-generic #171-Ubuntu SMP Tue Mar 26 12:43:40 UTC 2019 x86_64

Error information

Warning: the FormAPI plugin was directly involved in this crash. Please contact the plugin author.
Message: Argument 1 passed to jojoe77777\FormAPI\CustomForm::addLabel() must be of the type string, null given
File: plugins/FormAPI.phar/src/jojoe77777/FormAPI/CustomForm
Line: #49
Error level: TypeError
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
     */
public function getTitle() : string {
return $this->data["title"];
}

/**
* @param string $text
* @param string|null $label
*/
public function addLabel(string $text, ?string $label = null) : void {
$this->addContent(["type" => "label", "text" => $text]);
$this->labelMap[] = $label ?? count($this->labelMap);
}

/**
* @param string $text
* @param bool|null $default
* @param string|null $label
*/
public function addToggle(string $text, bool $default = null, ?string $label = null) : void {
#0 plugins/SlivockyCore_v2.1.3.phar/src/Slivocky/core/UIBoards/PlayerSettings(56): jojoe77777\FormAPI\CustomForm->addLabel(NULL )
#1 plugins/SlivockyCore_v2.1.3.phar/src/Slivocky/core/LobbyCore(550): Slivocky\core\UIBoards\PlayerSettings->sendForm(synapsepm\Player object)
#2 src/pocketmine/command/PluginCommand(58): Slivocky\core\LobbyCore->onCommand(synapsepm\Player object, pocketmine\command\PluginCommand object, string settings, array Array())
#3 src/pocketmine/command/SimpleCommandMap(270): pocketmine\command\PluginCommand->execute(synapsepm\Player object, string settings, array Array())
#4 src/pocketmine/Server(2020): pocketmine\command\SimpleCommandMap->dispatch(synapsepm\Player object, string settings)
#5 src/pocketmine/Player(2222): pocketmine\Server->dispatchCommand(synapsepm\Player object, string settings)
#6 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(239): pocketmine\Player->chat(string /settings)
#7 src/pocketmine/network/mcpe/protocol/CommandRequestPacket(54): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleCommandRequest(pocketmine\network\mcpe\protocol\CommandRequestPacket object)
#8 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
#9 src/pocketmine/Player(3115): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\CommandRequestPacket object)
#10 plugins/SynapsePM_dev-9.phar/src/synapsepm/Player(90): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\CommandRequestPacket object)
#11 plugins/SynapsePM_dev-9.phar/src/synapsepm/Synapse(285): synapsepm\Player->handleDataPacket(pocketmine\network\mcpe\protocol\CommandRequestPacket object)
#12 plugins/SynapsePM_dev-9.phar/src/synapsepm/network/SynapseInterface(93): synapsepm\Synapse->handleDataPacket(synapsepm\network\protocol\spp\RedirectPacket object)
#13 plugins/SynapsePM_dev-9.phar/src/synapsepm/network/SynapseInterface(62): synapsepm\network\SynapseInterface->handlePacket(string .D:..$&.....<..m...M./settings.oF..hNM+.A]O..v...)
#14 plugins/SynapsePM_dev-9.phar/src/synapsepm/Synapse(155): synapsepm\network\SynapseInterface->process()
#15 plugins/SynapsePM_dev-9.phar/src/synapsepm/Synapse(82): synapsepm\Synapse->tick()
#16 src/pocketmine/scheduler/TaskHandler(159): [email protected]�phar:///var/lib/pufferd/servers/cb5ad588-c2a2-476c-bab9-e0035599537b/plugins/SynapsePM_dev-9.phar/src/synapsepm/Synapse.php0x7f586997f8f9->onRun(integer 740)
#17 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 740)
#18 src/pocketmine/plugin/PluginManager(688): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 740)
#19 src/pocketmine/Server(2559): pocketmine\plugin\PluginManager->tickSchedulers(integer 740)
#20 src/pocketmine/Server(2335): pocketmine\Server->tick()
#21 src/pocketmine/Server(2196): pocketmine\Server->tickProcessor()
#22 src/pocketmine/Server(1775): pocketmine\Server->start()
#23 src/pocketmine/PocketMine(258): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /var/lib/pufferd/servers/cb5ad588-c2a2-476c-bab9-e0035599537b/, string /var/lib/pufferd/servers/cb5ad588-c2a2-476c-bab9-e0035599537b/plugins/)
#24 (1): require(string phar:///var/lib/pufferd/servers/cb5ad588-c2a2-476c-bab9-e0035599537b/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show