menu
#4774967 SQLite3Stmt::execute(): Unable to execute statement: attempt to write a readonly database

Submitted by PocketMine-MP 3.17.4

General information

Version: 3.17.4
Git commit: 2e9117d1
Plugin involvement: Direct
Report date: 2021-02-23 02:06:56 +0000 UTC
Server uptime: 0 days 0 hours 1 minutes 24 seconds

System Information

PHP version: 7.3.21
Operating system: linux
System banner: Linux 9cbb395f-56c2-40d4-a538-e9fcac97ac66 4.15.0-135-generic #139-Ubuntu SMP Mon Jan 18 17:38:24 UTC 2021 x86_64

Error information

Warning: the Unknown plugin was directly involved in this crash. Please contact the plugin author.
Message: SQLite3Stmt::execute(): Unable to execute statement: attempt to write a readonly database
File: plugins/Diver.phar/src/VitalHCF/Factions
Line: #347
Error level: ErrorException
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357

/**
* @param String $factionName
* @param Int $strength
*/
public static function setStrength(String $factionName, Int $strength){
$data = Loader::getProvider()->getDataBase()->prepare("INSERT OR REPLACE INTO strength(factionName, dtr) VALUES (:factionName, :dtr);");
$data->bindValue(":factionName", $factionName);
$data->bindValue(":dtr", $strength);
$data->execute();
}

/**
* @param String $factionName
* @return Int|null
*/
public static function getBalance(String $factionName) : ?Int {
$data = Loader::getProvider()->getDataBase()->query("SELECT * FROM balance WHERE factionName = '$factionName';");
$result = $data->fetchArray(SQLITE3_ASSOC);
if(empty($result)){
#0 (): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string[89] SQLite3Stmt::execute(): Unable to execute statement: attempt to write a readonly, string[67] phar:///home/container/plugins/Diver.phar/src/VitalHCF/Factions.php, integer 347, array[3])
#1 plugins/Diver.phar/src/VitalHCF/Factions(347): SQLite3Stmt->execute()
#2 plugins/Diver.phar/src/VitalHCF/Task/event/FactionTask(41): VitalHCF\Factions::setStrength(string[9] Team_Blue, integer 5)
#3 plugins/Diver.phar/src/VitalHCF/Task/event/FactionTask(25): VitalHCF\Task\event\FactionTask->verificationFactions()
#4 pmsrc/src/pocketmine/scheduler/TaskHandler(137): VitalHCF\Task\event\FactionTask->onRun(integer 1681)
#5 pmsrc/src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 1681)
#6 pmsrc/src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 1681)
#7 pmsrc/src/pocketmine/Server(2390): pocketmine\plugin\PluginManager->tickSchedulers(integer 1681)
#8 pmsrc/src/pocketmine/Server(2153): pocketmine\Server->tick()
#9 pmsrc/src/pocketmine/Server(1993): pocketmine\Server->tickProcessor()
#10 pmsrc/src/pocketmine/Server(1587): pocketmine\Server->start()
#11 pmsrc/src/pocketmine/PocketMine(286): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#12 pmsrc/src/pocketmine/PocketMine(316): pocketmine\server()
#13 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show