menu
#6720159 Trying to access array offset on value of type null

Submitted by PocketMine-MP 4.2.0

General information

Version: 4.2.0
Git commit: 44818e6d
Plugin involvement: Direct
Report date: 2022-05-14 10:03:33 +0000 UTC
Server uptime: 0 days 0 hours 22 minutes 56 seconds

System Information

PHP version: 8.0.13
Operating system: linux
System banner: Linux bf7b04d9d8bc 5.10.0-14-amd64 #1 SMP Debian 5.10.113-1 (2022-04-29) x86_64

Error information

Warning: the Auth plugin was directly involved in this crash. Please contact the plugin author.
Message: Trying to access array offset on value of type null
File: plugins/Auth-master.phar/src/Auth/Auth
Line: #122
Error level: ErrorException
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
	  }
э}*/




public function loginUI(Player $player){
$api = $this->getServer()->getPluginManager()->getPlugin("FormAPI");
$form = $api->createSimpleForm(function ($player, $data){
- $id = $data[0]; + $id = $data;
if($id == 0){
$player->close("Вам нужно войти в аккаунт", "Вам нужно войти в аккаунт");
}
if($id == 1){




$api = $this->getServer()->getPluginManager()->getPlugin("FormAPI");
$form = $api->createCustomForm(function ($player, $data){
#0 plugins/Auth-master.phar/src/Auth/Auth(122): pocketmine\errorhandler\ErrorToExceptionHandler::handle(integer 2, string[51] Trying to access array offset on value of type null, string[59] phar:///srv/data/plugins/Auth-master.phar/src/Auth/Auth.php, integer 122)
#1 plugins/FormAPI-4.0.phar/src/jojoe77777/FormAPI/Form(46): Auth\Auth->Auth\{closure}(object pocketmine\player\Player#133112, NULL )
#2 pmsrc/src/player/Player(1985): jojoe77777\FormAPI\Form->handleResponse(object pocketmine\player\Player#133112, NULL )
#3 pmsrc/src/network/mcpe/handler/InGamePacketHandler(892): pocketmine\player\Player->onFormSubmit(integer 0, NULL )
#4 pmsrc/vendor/pocketmine/bedrock-protocol/src/ModalFormResponsePacket(46): pocketmine\network\mcpe\handler\InGamePacketHandler->handleModalFormResponse(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket#99205)
#5 pmsrc/src/network/mcpe/NetworkSession(395): pocketmine\network\mcpe\protocol\ModalFormResponsePacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#99339)
#6 pmsrc/src/network/mcpe/NetworkSession(358): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket#99205, string[8] e..null.)
#7 pmsrc/src/network/mcpe/raklib/RakLibInterface(192): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[11] .He`.+.....)
#8 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(integer 0, string[20] .V....?...y..yQ.K...)
#9 pmsrc/src/network/mcpe/raklib/RakLibInterface(122): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#27737)
#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 1652522613.5971)
#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[10] /srv/data/, string[18] /srv/data/plugins/)
#15 pmsrc/src/PocketMine(327): pocketmine\server()
#16 pmsrc(11): require(string[54] phar:///srv/data/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show