Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error #11

Closed
PushkarOP opened this issue Mar 13, 2022 · 1 comment
Closed

Error #11

PushkarOP opened this issue Mar 13, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@PushkarOP
Copy link

PocketMine-MP Crash Dump Sun Mar 13 04:40:58 UTC 2022

Error: Undefined array key "host"
File: plugins/ServerTools_dev-46.phar/src/matcracker/ServerTools/forms/cloning/BaseFTPForm
Line: 40
Type: ErrorException

THIS CRASH WAS CAUSED BY A PLUGIN
BAD PLUGIN: ServerTools

Code:
[31] use pocketmine\player\Player;
[32] use pocketmine\utils\TextFormat;
[33] use function is_numeric;
[34]
[35] final class BaseFTPForm extends CustomForm{
[36]
[37] public function __construct(string $title){
[38] parent::__construct(
[39] static function(Player $player, $data) : void{
[40] $host = (string) $data["host"];
[41]
[42] if(!is_numeric($data["port"])){
[43] $player->sendMessage(Main::formatMessage(TextFormat::RED . "You must insert a numeric value to the field "Port""));
[44]
[45] return;
[46] }
[47]
[48] $port = (int) $data["port"];
[49] if($port < 0 || $port > 65535){
[50] $player->sendMessage(Main::formatMessage(TextFormat::RED . "Invalid port range! It must be between 0 and 65535."));

Backtrace:
#0 plugins/ServerTools_dev-46.phar/src/matcracker/ServerTools/forms/cloning/BaseFTPForm(40): pocketmine\errorhandler\ErrorToExceptionHandler::handle(integer 2, string[26] Undefined array key "host", string[111] phar:///home/container/plugins/ServerTools_dev-46.phar/src/matcracker/ServerTool, integer 40)
#1 plugins/ServerTools_dev-46.phar/src/matcracker/ServerTools/libs/matcracker/FormLib/BaseForm(78): matcracker\ServerTools\forms\cloning\BaseFTPForm::matcracker\ServerTools\forms\cloning{closure}(object Stats\Segundo#925018, array[7])
#2 pmsrc/src/player/Player(1985): matcracker\ServerTools\libs\matcracker\FormLib\BaseForm->handleResponse(object Stats\Segundo#925018, array[7])
#3 pmsrc/src/network/mcpe/handler/InGamePacketHandler(888): pocketmine\player\Player->onFormSubmit(integer 2, array[7])
#4 pmsrc/vendor/pocketmine/bedrock-protocol/src/ModalFormResponsePacket(46): pocketmine\network\mcpe\handler\InGamePacketHandler->handleModalFormResponse(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket#923578)
#5 pmsrc/src/network/mcpe/NetworkSession(397): pocketmine\network\mcpe\protocol\ModalFormResponsePacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#923616)
#6 pmsrc/src/network/mcpe/NetworkSession(360): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket#923578, string[89] e.V[null,"b-fde-18.sparkedhost.us","2022","epu0e4nj.1c7e9337","5Le6[(3W1bsxIP",")
#7 pmsrc/src/network/mcpe/raklib/RakLibInterface(192): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[133] .Le...+...QJ.MKI.5..+.H,.NM../..+-V.Q2202.R.....&[email protected]..p..........)
#8 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(integer 0, string[142] .....)..bX........].k...|l...]...IB........W..#`MY....]..g(oU.......?.+L..|..(5E)
#9 pmsrc/src/network/mcpe/raklib/RakLibInterface(122): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#900261)
#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(1660): pocketmine\snooze\SleeperHandler->sleepUntil(double 1647146458.6643)
#13 pmsrc/src/Server(1046): pocketmine\Server->tickProcessor()
#14 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#15 pmsrc/src/PocketMine(327): pocketmine\server()
#16 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

@PushkarOP
Copy link
Author

I entered everything correct

@matcracker matcracker added the bug Something isn't working label Mar 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants