menu
#10302492 Undefined array key "blood_effect"

Submitted by PocketMine-MP 5.11.0

General information

Version: 5.11.0
Git commit: ce8fecc6
Plugin involvement: Direct
Report date: 2024-02-12 18:40:12 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 28 seconds

System Information

PHP version: 8.2.13
JIT status: Not available
Operating system: linux
System banner: Linux e8f0921d-8fc2-490c-a6a9-68235c23cbce 5.15.0-70-generic #77-Ubuntu SMP Tue Mar 21 14:02:37 UTC 2023 x86_64

Error information

Warning: the Practice plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Undefined array key "blood_effect"
File: plugins/Practice/src/bitpvp/practice/object/profile/Profile
Line: #203
Type: ErrorException
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
            } else {
$data = $rows[0];

$this->getSettingData()->getSetting('scoreboard')->setEnabled((bool) $data['scoreboard']);
$this->getSettingData()->getSetting('cps_counter')->setEnabled((bool) $data['cps_counter']);
$this->getSettingData()->getSetting('auto_respawn')->setEnabled((bool) $data['auto_respawn']);
$this->getSettingData()->getSetting('auto_sprint')->setEnabled((bool) $data['auto_sprint']);
$this->getSettingData()->getSetting('hidden_non_opponent')->setEnabled((bool) $data['hidden_non_opponent']);
$this->getSettingData()->getSetting('smooth_pearl')->setEnabled((bool) $data['smooth_pearl']);
$this->getSettingData()->getSetting('blood_effect')->setEnabled((bool) $data['blood_effect']);
$this->getSettingData()->getSetting('lighting_effect')->setEnabled((bool) $data['lighting_effect']);
}

SQLDataStorer::getInstance()->getPlayerStats($player->getXuid(), function (array $rows, array $columns) use ($player): void {
if (count($rows) === 0) {
SQLDataStorer::getInstance()->insertPlayerStats($player->getXuid(), $player->getName(), $this->getClassifyData()->getClassify()->getName(), $this->getPlayerData()->getNick());
} else {
$data = $rows[0];
$this->getPlayerData()
->setNick((string) $data['nick'])
#0 plugins/Practice/src/bitpvp/practice/object/profile/Profile(203): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[34] Undefined array key "blood_effect", string[79] /home/container/plugins/Practice/src/bitpvp/practice/object/profile/Profile.php, int 203)
#1 plugins/EssentialBans/src/poggit/libasynql/base/DataConnectorImpl(174): bitpvp\practice\object\profile\Profile->bitpvp\practice\object\profile\{closure}(array[1], array[8])
#2 plugins/EssentialBans/src/poggit/libasynql/base/DataConnectorImpl(181): poggit\libasynql\base\DataConnectorImpl::poggit\libasynql\base\{closure}(object poggit\libasynql\result\SqlSelectResult#66680)
#3 plugins/EssentialBans/src/poggit/libasynql/base/DataConnectorImpl(239): poggit\libasynql\base\DataConnectorImpl::poggit\libasynql\base\{closure}(array[1])
#4 plugins/EssentialBans/src/poggit/libasynql/base/SqlThreadPool(116): poggit\libasynql\base\DataConnectorImpl->poggit\libasynql\base\{closure}(array[1])
#5 plugins/EssentialBans/src/poggit/libasynql/base/DataConnectorImpl(322): poggit\libasynql\base\SqlThreadPool->readResults(array[1], null)
#6 plugins/EssentialBans/src/poggit/libasynql/base/SqlThreadPool(64): poggit\libasynql\base\DataConnectorImpl->checkResults()
#7 pmsrc/src/TimeTrackingSleeperHandler(58): poggit\libasynql\base\SqlThreadPool->poggit\libasynql\base\{closure}()
#8 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\TimeTrackingSleeperHandler->pocketmine\{closure}()
#9 pmsrc/src/TimeTrackingSleeperHandler(77): pocketmine\snooze\SleeperHandler->processNotifications()
#10 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(79): pocketmine\TimeTrackingSleeperHandler->processNotifications()
#11 pmsrc/src/Server(1699): pocketmine\snooze\SleeperHandler->sleepUntil(float 1707763212.9406)
#12 (): --- below is the original stack trace ---()
#13 plugins/EssentialBans/src/poggit/libasynql/base/DataConnectorImpl(223): poggit\libasynql\base\DataConnectorImpl->executeImplRaw(array[1], array[1], array[1], object Closure#66932, null)
#14 plugins/EssentialBans/src/poggit/libasynql/base/DataConnectorImpl(180): poggit\libasynql\base\DataConnectorImpl->executeImpl(string[19] get.player.settings, array[1], int 3, object Closure#66932, null)
#15 plugins/EssentialBans/src/poggit/libasynql/base/DataConnectorImpl(172): poggit\libasynql\base\DataConnectorImpl->executeImplLast(string[19] get.player.settings, array[1], int 3, object Closure#185158, null)
#16 plugins/Practice/src/bitpvp/practice/datasource/SQLDataStorer(58): poggit\libasynql\base\DataConnectorImpl->executeSelect(string[19] get.player.settings, array[1], object Closure#66939)
#17 plugins/Practice/src/bitpvp/practice/object/profile/Profile(191): bitpvp\practice\datasource\SQLDataStorer->getPlayerSettings(string[16] 2535429319803235, object Closure#66939)
#18 plugins/Practice/src/bitpvp/practice/MainHandler(367): bitpvp\practice\object\profile\Profile->join()
#19 pmsrc/src/event/RegisteredListener(61): bitpvp\practice\MainHandler->handleJoin(object pocketmine\event\player\PlayerJoinEvent#185162)
#20 pmsrc/src/event/Event(63): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\player\PlayerJoinEvent#185162)
#21 pmsrc/src/player/Player(891): pocketmine\event\Event->call()
#22 pmsrc/src/network/mcpe/NetworkSession(872): pocketmine\player\Player->doFirstSpawn()
#23 pmsrc/src/network/mcpe/handler/SpawnResponsePacketHandler(37): pocketmine\network\mcpe\NetworkSession->onClientSpawnResponse()
#24 pmsrc/vendor/pocketmine/bedrock-protocol/src/SetLocalPlayerAsInitializedPacket(42): pocketmine\network\mcpe\handler\SpawnResponsePacketHandler->handleSetLocalPlayerAsInitialized(object pocketmine\network\mcpe\protocol\SetLocalPlayerAsInitializedPacket#67710)
#25 pmsrc/src/network/mcpe/NetworkSession(462): pocketmine\network\mcpe\protocol\SetLocalPlayerAsInitializedPacket->handle(object pocketmine\network\mcpe\handler\SpawnResponsePacketHandler#92332)
#26 pmsrc/src/network/mcpe/NetworkSession(400): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\SetLocalPlayerAsInitializedPacket#67710, string[2] q.)
#27 pmsrc/src/network/mcpe/raklib/RakLibInterface(219): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[47] .c*d.............l.9..9......744p011..xz...e@..)
#28 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(40): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[56] ..k.........nN...{.....aCV%.np......Q0.....5.V.)."iV.#4.)
#29 pmsrc/src/network/mcpe/raklib/RakLibInterface(111): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#198462)
#30 pmsrc/src/TimeTrackingSleeperHandler(58): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#31 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\TimeTrackingSleeperHandler->pocketmine\{closure}()
#32 pmsrc/src/TimeTrackingSleeperHandler(77): pocketmine\snooze\SleeperHandler->processNotifications()
#33 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(79): pocketmine\TimeTrackingSleeperHandler->processNotifications()
#34 pmsrc/src/Server(1699): pocketmine\snooze\SleeperHandler->sleepUntil(float 1707763212.5906)
#35 pmsrc/src/Server(1067): pocketmine\Server->tickProcessor()
#36 pmsrc/src/PocketMine(341): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#37 pmsrc/src/PocketMine(364): pocketmine\server()
#38 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show