menu
#4656917 Trying to access array offset on value of type bool

Submitted by PocketMine-MP 3.16.0

General information

Version: 3.16.0
Git commit: d2f68836
Plugin involvement: Direct
Report date: 2020-11-22 01:42:03 +0000 UTC

System Information

PHP version: 7.4.11
Operating system: linux
System banner: Linux 118-27-31-26 5.4.0-53-generic #59-Ubuntu SMP Wed Oct 21 09:38:44 UTC 2020 x86_64

Error information

Warning: the MiningLevelSystem plugin was directly involved in this crash. Please contact the plugin author.
Message: Trying to access array offset on value of type bool
File: plugins/MiningLevelSystem.phar/src/Deceitya/MiningLevel/Database/SQLiteDatabase
Line: #58
Error level: ErrorException
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
     * @param string $name
* @return integer|null
*/
public function getLevel(string $name): ?int
{
$stmt = $this->db->prepare("SELECT level FROM mining WHERE name = :name");
$stmt->bindValue(':name', $name, SQLITE3_TEXT);
$result = $stmt->execute()->fetchArray(SQLITE3_ASSOC);

return $result['level'];
}

/**
* @param string $name
* @param integer $level
* @return void
*/
public function setLevel(string $name, int $level)
{
$stmt = $this->db->prepare("UPDATE mining SET level = :level WHERE name = :name");
#0 plugins/MiningLevelSystem.phar/src/Deceitya/MiningLevel/Database/SQLiteDatabase(58): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[51] Trying to access array offset on value of type bool, string[100] phar:///opt/pmmp/plugins/MiningLevelSystem.phar/src/Deceitya/MiningLevel/Databas, integer 58, array[3])
#1 plugins/MiningLevelSystem.phar/src/Deceitya/MiningLevel/MiningLevelAPI(71): Deceitya\MiningLevel\Database\SQLiteDatabase->getLevel(string[9] kuro83060)
#2 plugins/scoreBoardPlugin_v1.0.0.phar/src/noahasu/score/ScoreBoard(39): Deceitya\MiningLevel\MiningLevelAPI->getLevel(string[9] kuro83060)
#3 src/pocketmine/scheduler/TaskHandler(137): noahasu\score\ScoreBoard->onRun(integer 431)
#4 src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 431)
#5 src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 431)
#6 src/pocketmine/Server(2391): pocketmine\plugin\PluginManager->tickSchedulers(integer 431)
#7 src/pocketmine/Server(2154): pocketmine\Server->tick()
#8 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
#9 src/pocketmine/Server(1588): pocketmine\Server->start()
#10 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[10] /opt/pmmp/, string[18] /opt/pmmp/plugins/)
#11 src/pocketmine/PocketMine(304): pocketmine\server()
#12 (11): require(string[65] phar:///opt/pmmp/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show