menu
#271 Too few arguments to function anmine\system\pdo\PDO::__construct(), 0 passed in phar:///tmp/PocketMine-MP-phar-cache.0/PMMPpFgZoR.tar/src/utils/SingletonTrait.php on line 31 and exactly 1 expected

Submitted by PocketMine-MP 5.22.1+dev.2082

General information

Version: 5.22.1+dev.2082
Git commit: 422f7837
Plugin involvement: Direct
Report date: 2024-12-21 20:25:00 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 2 seconds

System Information

PHP version: 8.3.4
JIT status: Not available
Operating system: linux
System banner: Linux anmine.ru 5.10.0-32-amd64 #1 SMP Debian 5.10.223-1 (2024-08-10) x86_64

Error information

Warning: the AnSystem plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Too few arguments to function anmine\system\pdo\PDO::__construct(), 0 passed in phar:///tmp/PocketMine-MP-phar-cache.0/PMMPpFgZoR.tar/src/utils/SingletonTrait.php on line 31 and exactly 1 expected
File: plugins/AnSystem/src/anmine/system/pdo/PDO
Line: #22
Type: ArgumentCountError
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

class PDO
{
use SingletonTrait;

private PDOCredentials $credentials;
private PDOConnection $connection;
private Logger $logger;

public function __construct(private readonly SystemLoader $loader)
{
$this->logger = $this->loader->getLogger();
$config = new Config($this->loader->getDataFolder() . "database.yml", Config::YAML);
$this->credentials = new PDOCredentials(
$config->get("hostname"),
$config->get("username"),
$config->get("password"),
$config->get("database"),
$config->get("port", 3306)
);
#0 pmsrc/src/utils/SingletonTrait(31): anmine\system\pdo\PDO->__construct()
#1 pmsrc/src/utils/SingletonTrait(36): anmine\system\pdo\PDO::make()
#2 plugins/AnSystem/src/anmine/system/SystemLoader(14): anmine\system\pdo\PDO::getInstance()
#3 pmsrc/src/plugin/PluginBase(119): anmine\system\SystemLoader->onEnable()
#4 pmsrc/src/plugin/PluginManager(463): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#5 pmsrc/src/Server(1472): pocketmine\plugin\PluginManager->enablePlugin(object anmine\system\SystemLoader#51239)
#6 pmsrc/src/Server(1078): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#55887)
#7 pmsrc/src/PocketMine(355): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#2, object pocketmine\utils\MainLogger#6, string[27] /home/anupdate/servers/s99/, string[35] /home/anupdate/servers/s99/plugins/)
#8 pmsrc/src/PocketMine(378): pocketmine\server()
#9 /home/anupdate/servers/s99/InCore.phar(168): require(string[72] phar:///tmp/PocketMine-MP-phar-cache.0/PMMPpFgZoR.tar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show