menu
#7556616 SQLSTATE[HY000]: General error: 8 attempt to write a readonly database

Submitted by PocketMine-MP 4.9.0

General information

Version: 4.9.0
Git commit: 785dc712
Plugin involvement: Direct
Report date: 2022-09-22 21:05:11 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 4 seconds

System Information

PHP version: 8.0.22
JIT status: Disabled
Operating system: win
System banner: Windows NT ATLAS-80208EQ11 10.0 build 19042 (Windows 10) AMD64

Error information

Warning: the FactionMaster plugin was directly involved in this crash. Please contact the plugin author.
Message: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database
File: plugins/FactionMaster.phar/src/Manager/MigrationManager
Line: #263
Error level: PDOException
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
						$dflt_value = substr($columnData["dflt_value"] == null ? "" : $columnData["dflt_value"], 1, strlen($columnData["dflt_value"] == null ? "" : $columnData["dflt_value"]) - 2);
foreach (self::$configDbToCheck as $conf) {
$value = $conf["CONFIG_INST"]->get($conf["CONFIG_NAME"]);
if ($columnData["name"] == $conf["COLUMN_NAME"] && $dflt_value != $value) {
self::$main->getLogger()->notice("Changing the configuration of '" . $conf["CONFIG_NAME"] . "' detected, change the value for $value");
$query = $pdo->prepare("SELECT * FROM " . $configDB["TABLE_NAME"]);
$query->execute();
$result = $query->fetchAll(PDO::FETCH_ASSOC);
$query = $pdo->prepare("DROP TABLE " . $configDB["TABLE_NAME"]);
$query->execute();
(new $configDB["TABLE_CLASS"]($pdo))->init();
foreach ($result as $lign) {
$query = $pdo->prepare("INSERT INTO " . $configDB["TABLE_NAME"] . " (" . QueryBuildeur::buildInsert($lign) . ") VALUES (" . QueryBuildeur::buildInsert($lign, QueryBuildeur::PREPARE_INSERT_MODE) . ")");
$query->execute($lign);
}
}
}
}
}
break;
#0 plugins/FactionMaster.phar/src/Manager/MigrationManager(263): PDOStatement->execute()
#1 plugins/FactionMaster.phar/src/FactionMaster(137): ShockedPlot7560\FactionMaster\Manager\MigrationManager::updateConfigDb()
#2 pmsrc/src/plugin/PluginBase(117): ShockedPlot7560\FactionMaster\FactionMaster->onEnable()
#3 pmsrc/src/plugin/PluginManager(448): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#4 pmsrc/src/Server(1421): pocketmine\plugin\PluginManager->enablePlugin(object ShockedPlot7560\FactionMaster\FactionMaster#22936)
#5 pmsrc/src/Server(1026): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#21901)
#6 pmsrc/src/PocketMine(305): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[44] C:\Users\GabrielPlay XD\Desktop\RewardCraft\, string[52] C:\Users\GabrielPlay XD\Desktop\RewardCraft\plugins\)
#7 pmsrc/src/PocketMine(328): pocketmine\server()
#8 pmsrc(11): require(string[88] phar://C:/Users/GabrielPlay XD/Desktop/RewardCraft/PocketMine-MP.phar/src/Pocket)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show