menu
#7304234 AdvancedServer\session\Session::transfer(): Argument #1 ($server) must be of type AdvancedServer\server\Server, null given, called in phar:///root/pocketmine/plugins/AdvancedServer_v2.0.0.phar/src/AdvancedServer/session/Session.php on line 84

Submitted by PocketMine-MP 4.6.1

General information

Version: 4.6.1
Git commit: b20e0453
Plugin involvement: Direct
Report date: 2022-08-05 22:47:33 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 42 seconds

System Information

PHP version: 8.0.19
Operating system: linux
System banner: Linux ubuntu-s-2vcpu-2gb-intel-nyc1-01 5.4.0-122-generic #138-Ubuntu SMP Wed Jun 22 15:00:31 UTC 2022 x86_64

Error information

Warning: the AdvancedServer plugin was directly involved in this crash. Please contact the plugin author.
Message: AdvancedServer\session\Session::transfer(): Argument #1 ($server) must be of type AdvancedServer\server\Server, null given, called in phar:///root/pocketmine/plugins/AdvancedServer_v2.0.0.phar/src/AdvancedServer/session/Session.php on line 84
File: plugins/AdvancedServer_v2.0.0.phar/src/AdvancedServer/session/Session
Line: #63
Error level: TypeError
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
        } catch(\Exception $exception){
Loader::getInstance()->getLogger()->error($exception->getMessage());
}
}

/**
* @param ServerManager $server
* @return void
*/
public function transfer(ServerManager $server) : void {
$serverQuery = $server->query()->connect();
if($serverQuery === null){
$this->getPlayerNonNull()->sendMessage(TextHelper::replace("&cServer is currently offline"));
return;
}
if($server->getProxyName() !== null){
$this->transfer_to_proxy($server->getProxyName());
}else{
$this->getPlayerNonNull()->transfer($server->getAddress(), $server->getPort());
}
#0 plugins/AdvancedServer_v2.0.0.phar/src/AdvancedServer/session/Session(84): AdvancedServer\session\Session->transfer(null)
#1 plugins/AdvancedServer_v2.0.0.phar/src/AdvancedServer/api/form/IForm(47): AdvancedServer\session\Session->AdvancedServer\session\{closure}(object pocketmine\player\Player#101974, int 0)
#2 pmsrc/src/player/Player(2011): AdvancedServer\api\form\IForm->handleResponse(object pocketmine\player\Player#101974, int 0)
#3 pmsrc/src/network/mcpe/handler/InGamePacketHandler(870): pocketmine\player\Player->onFormSubmit(int 1, int 0)
#4 pmsrc/vendor/pocketmine/bedrock-protocol/src/ModalFormResponsePacket(46): pocketmine\network\mcpe\handler\InGamePacketHandler->handleModalFormResponse(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket#101346)
#5 pmsrc/src/network/mcpe/NetworkSession(394): pocketmine\network\mcpe\protocol\ModalFormResponsePacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#121822)
#6 pmsrc/src/network/mcpe/NetworkSession(357): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket#101346, string[5] e..0.)
#7 pmsrc/src/network/mcpe/raklib/RakLibInterface(182): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[8] cMed2...)
#8 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 1, string[17] .)O}.....K...=c4.)
#9 pmsrc/src/network/mcpe/raklib/RakLibInterface(112): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#28538)
#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(1703): pocketmine\snooze\SleeperHandler->sleepUntil(float 1659739653.1718)
#13 pmsrc/src/Server(1063): pocketmine\Server->tickProcessor()
#14 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#3, object pocketmine\utils\MainLogger#2, string[17] /root/pocketmine/, string[25] /root/pocketmine/plugins/)
#15 pmsrc/src/PocketMine(327): pocketmine\server()
#16 pmsrc(11): require(string[61] phar:///root/pocketmine/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show