menu
#5039268 Missing required variable claimed

Submitted by PocketMine-MP 3.22.0

General information

Version: 3.22.0
Git commit: c32c2146
Plugin involvement: Direct
Report date: 2021-07-22 09:35:11 +0000 UTC
Server uptime: 0 days 2 hours 46 minutes 37 seconds

System Information

PHP version: 7.4.18
Operating system: linux
System banner: Linux ns555571 5.8.0-59-generic #66-Ubuntu SMP Thu Jun 17 00:46:01 UTC 2021 x86_64

Error information

Warning: the libasynql plugin was directly involved in this crash. Please contact the plugin author.
Message: Missing required variable claimed
File: plugins/ignore.libasynql.phar/src/poggit/libasynql/generic/GenericStatementImpl
Line: #180
Error level: InvalidArgumentException
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
				throw new InvalidArgumentException("The variable {$variable->getName()} is not used anywhere in the query! Check for typos.");
}
}
}

public function format(array $vars, ?string $placeHolder, ?array &$outArgs) : string{
$outArgs = [];
foreach($this->variables as $variable){
if(!$variable->isOptional() && !array_key_exists($variable->getName(), $vars)){
throw new InvalidArgumentException("Missing required variable {$variable->getName()}");
}
}

$query = "";

$lastPos = 0;
foreach($this->varPositions as $pos => $name){
$query .= mb_substr($this->query, $lastPos, $pos - $lastPos);
$value = $vars[$name] ?? $this->variables[$name]->getDefault();
try{
#0 plugins/ignore.libasynql.phar/src/poggit/libasynql/base/DataConnectorImpl(176): poggit\libasynql\generic\GenericStatementImpl->format(array[3], NULL , array[0])
#1 plugins/ignore.libasynql.phar/src/poggit/libasynql/base/DataConnectorImpl(125): poggit\libasynql\base\DataConnectorImpl->executeImpl(string[17] islands.updateKit, array[3], integer 1, object Closure, NULL )
#2 plugins/SkyBlock.phar/src/PrimeGames/SkyBlock/island/provider/IslandProvider(88): poggit\libasynql\base\DataConnectorImpl->executeChange(string[17] islands.updateKit, array[3], object Closure)
#3 plugins/SkyBlock.phar/src/PrimeGames/SkyBlock/island/provider/IslandProvider(145): PrimeGames\SkyBlock\island\provider\IslandProvider->updateKits(object PrimeGames\SkyBlock\island\Island)
#4 plugins/ignore.libasynql.phar/src/poggit/libasynql/base/DataConnectorImpl(127): PrimeGames\SkyBlock\island\provider\IslandProvider->PrimeGames\SkyBlock\island\provider\{closure}(integer 1)
#5 plugins/ignore.libasynql.phar/src/poggit/libasynql/base/DataConnectorImpl(189): poggit\libasynql\base\DataConnectorImpl->poggit\libasynql\base\{closure}(object poggit\libasynql\result\SqlChangeResult)
#6 plugins/ignore.libasynql.phar/src/poggit/libasynql/base/SqlThreadPool(112): poggit\libasynql\base\DataConnectorImpl->poggit\libasynql\base\{closure}(object poggit\libasynql\result\SqlChangeResult)
#7 plugins/ignore.libasynql.phar/src/poggit/libasynql/base/DataConnectorImpl(268): poggit\libasynql\base\SqlThreadPool->readResults(array[3])
#8 plugins/ignore.libasynql.phar/src/poggit/libasynql/base/SqlThreadPool(65): poggit\libasynql\base\DataConnectorImpl->checkResults()
#9 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): poggit\libasynql\base\SqlThreadPool->poggit\libasynql\base\{closure}()
#10 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications()
#11 pmsrc/src/pocketmine/Server(2155): pocketmine\snooze\SleeperHandler->sleepUntil(double 1626946511.2658)
#12 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
#13 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
#14 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[35] /home/betaservers/servers/skyblock/, string[43] /home/betaservers/servers/skyblock/plugins/)
#15 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
#16 pmsrc(11): require(string[90] phar:///home/betaservers/servers/skyblock/PocketMine-MP.phar/src/pocketmine/Pock)

Loaded Plugins

  • Show

Server Settings

  • Show