Muqsit / ChestShop

ChestShop for PocketMine-MP (pmmp)
https://poggit.pmmp.io/ci/Muqsit/ChestShop/ChestShop
68 stars 34 forks source link

Crash on startup #109

Closed MrBlasyMSK closed 2 years ago

MrBlasyMSK commented 2 years ago
PocketMine-MP Crash Dump Thu Mar 17 21:26:34 UTC 2022

Error: Class "muqsit\invmenu\InvMenuHandler" not found
File: plugins/ChestShop-master/src/muqsit/chestshop/Loader
Line: 43
Type: Error

THIS CRASH WAS CAUSED BY A PLUGIN
BAD PLUGIN: ChestShop

Code:
[34] 
[35]        ButtonFactory::init($this);
[36]        CategoryConfig::init($this);
[37]        EconomyManager::init($this);
[38] 
[39]        $this->database->load($this->chest_shop);
[40]    }
[41] 
[42]    private function initVirions() : void{
[43]        if(!InvMenuHandler::isRegistered()){
[44]            InvMenuHandler::register($this);
[45]        }
[46]    }
[47] 
[48]    protected function onDisable() : void{
[49]        $this->database->close();
[50]    }
[51] 
[52]    public function getConfirmationUi() : ?ConfirmationUI{
[53]        return $this->confirmation_ui;

Backtrace:
#0 plugins/ChestShop-master/src/muqsit/chestshop/Loader(29): muqsit\chestshop\Loader->initVirions()
#1 pmsrc/src/plugin/PluginBase(137): muqsit\chestshop\Loader->onEnable()
#2 pmsrc/src/plugin/PluginManager(437): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#3 pmsrc/src/Server(1385): pocketmine\plugin\PluginManager->enablePlugin(object muqsit\chestshop\Loader#114248)
#4 pmsrc/src/Server(1011): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#24903)
#5 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#6 pmsrc/src/PocketMine(327): pocketmine\server()
#7 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

PocketMine-MP version: 4.2.3 [Protocol 486]
Git commit: 6c1c0c867e178f8da8b266e962ca13f4b4280ab4
uname -a: Linux 40988d2c-8e2a-4b5a-ab32-2bc6e7d3056e 5.4.0-100-generic #113-Ubuntu SMP Thu Feb 3 18:43:29 UTC 2022 x86_64
PHP Version: 8.0.16
Zend version: 4.0.16
OS: Linux, linux
Composer libraries: 
- adhocore/json-comment 1.1.2@fc2f76979f0a44a5f5bc2a2b600d0762fe0e78e7
- brick/math 0.9.3@ca57d18f028f84f777b2168cd1911b0dee2343ae
- daverandom/callback-validator unknown@unknown
- fgrosse/phpasn1 v2.4.0@eef488991d53e58e60c9554b09b1201ca5ba9296
- netresearch/jsonmapper v4.0.0@8bbc021a8edb2e4a7ea2f8ad4fa9ec9dce2fcb8d
- pocketmine/bedrock-data 1.6.0+bedrock-1.18.10@e98c511584a7bd58a95986374d2df4b04c6a2ba0
- pocketmine/bedrock-protocol 8.0.1+bedrock-1.18.10@a740f6095b35278c0e0dac6db84a5e4d2456b113
- pocketmine/binaryutils 0.2.4@5ac7eea91afbad8dc498f5ce34ce6297d5e6ea9a
- pocketmine/callback-validator 1.0.3@64787469766bcaa7e5885242e85c23c25e8c55a2
- pocketmine/classloader 0.2.0@49ea303993efdfb39cd302e2156d50aa78209e78
- pocketmine/color 0.2.0@09be6ea6d76f2e33d6813c39d29c22c46c17e1d2
- pocketmine/errorhandler 0.6.0@dae214a04348b911e8219ebf125ff1c5589cc878
- pocketmine/locale-data 2.4.3@4d0b081f1a79407e087968ea76aaf330db6ea2b5
- pocketmine/log 0.4.0@e6c912c0f9055c81d23108ec2d179b96f404c043
- pocketmine/log-pthreads 0.4.0@61f709e8cf36bcc24e4efe02acded680a1ce23cd
- pocketmine/math 0.4.2@aacc3759a508a69dfa5bc4dfa770ab733c5c94bf
- pocketmine/nbt 0.3.2@3e0d9ef6b6c5fb45e3745a121296e75631b3eefe
- pocketmine/pocketmine-mp 4.2.3@6c1c0c867e178f8da8b266e962ca13f4b4280ab4
- pocketmine/raklib 0.14.3@4798576fec0364266dce23b368a7fec5e5de7927
- pocketmine/raklib-ipc 0.1.1@922a6444b0c6c7daaa5aa5a832107e1ec4738aed
- pocketmine/snooze 0.3.1@0ac8fc2a781c419a1f64ebca4d5835028f59e29b
- ramsey/collection 1.2.2@cccc74ee5e328031b15640b51056ee8d3bb66c0a
- ramsey/uuid 4.2.3@fc9bb7fb5388691fd7373cd44dcb4d63bbcf24df
- rhumsaa/uuid unknown@unknown
- symfony/polyfill-ctype v1.25.0@30885182c981ab175d4d034db0f6f469898070ab
- symfony/polyfill-php80 v1.25.0@4407588e0d3f1f52efb65fbe92babe41f37fe50c
- symfony/polyfill-php81 v1.25.0@5de4ba2d41b15f9bd0e19b2ab9674135813ec98f
- webmozart/assert 1.10.0@6964c76c7804814a842473e0c8fd15bab0f18e25
- webmozart/path-util 2.3.0@d939f7edc24c9a1bb9c0dee5cb05d8e859490725
MrBlasyMSK commented 2 years ago

Dev #61

Muqsit commented 2 years ago

plugins/ChestShop-master/ Download the .phar directly from poggit (https://poggit.pmmp.io/r/167550/ChestShop_dev-61.phar). If you really want to run this plugin from source, follow this guide.

MrBlasyMSK commented 2 years ago

plugins/ChestShop-master/ Download the .phar directly from poggit (https://poggit.pmmp.io/r/167550/ChestShop_dev-61.phar). If you really want to run this plugin from source, follow this guide.

It keep getting Crash with Invmenu virion installed. Dev165 of invmenu

PocketMine-MP Crash Dump Thu Mar 17 22:35:01 UTC 2022

Error: Class "poggit\libasynql\libasynql" not found
File: plugins/ChestShop-master/src/muqsit/chestshop/database/Database
Line: 31
Type: Error

THIS CRASH WAS CAUSED BY A PLUGIN
BAD PLUGIN: ChestShop

Code:
[22]        ItemSerializer::init();
[23] 
[24]        $loader->saveResource("database.yml");
[25] 
[26]        $config = new Config($loader->getDataFolder() . "database.yml", Config::YAML);
[27]        if(strtolower($config->getNested("database.type")) === "mysql"){
[28]            throw new InvalidArgumentException("{$loader->getName()} currently doesn't support MySQL.");
[29]        }
[30] 
[31]        $this->connector = libasynql::create($loader, $config->get("database"), ["sqlite" => "db/sqlite.sql", "mysql" => "db/mysql.sql"]);
[32] 
[33]        foreach((new \ReflectionClass(DatabaseStmts::class))->getConstants() as $constant => $value){
[34]            if(strpos($constant, "INIT_") === 0){
[35]                $this->connector->executeGeneric($value);
[36]            }
[37]        }
[38] 
[39]        $this->connector->waitAll();
[40]    }
[41] 

Backtrace:
#0 plugins/ChestShop-master/src/muqsit/chestshop/Loader(31): muqsit\chestshop\database\Database->__construct(object muqsit\chestshop\Loader#28311)
#1 pmsrc/src/plugin/PluginBase(137): muqsit\chestshop\Loader->onEnable()
#2 pmsrc/src/plugin/PluginManager(437): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#3 pmsrc/src/Server(1385): pocketmine\plugin\PluginManager->enablePlugin(object muqsit\chestshop\Loader#28311)
#4 pmsrc/src/Server(1011): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#24901)
#5 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#6 pmsrc/src/PocketMine(327): pocketmine\server()
#7 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

PocketMine-MP version: 4.2.3 [Protocol 486]
Git commit: 6c1c0c867e178f8da8b266e962ca13f4b4280ab4
uname -a: Linux 40988d2c-8e2a-4b5a-ab32-2bc6e7d3056e 5.4.0-100-generic #113-Ubuntu SMP Thu Feb 3 18:43:29 UTC 2022 x86_64
PHP Version: 8.0.16
Zend version: 4.0.16
OS: Linux, linux
Composer libraries: 
- adhocore/json-comment 1.1.2@fc2f76979f0a44a5f5bc2a2b600d0762fe0e78e7
- brick/math 0.9.3@ca57d18f028f84f777b2168cd1911b0dee2343ae
- daverandom/callback-validator unknown@unknown
- fgrosse/phpasn1 v2.4.0@eef488991d53e58e60c9554b09b1201ca5ba9296
- netresearch/jsonmapper v4.0.0@8bbc021a8edb2e4a7ea2f8ad4fa9ec9dce2fcb8d
- pocketmine/bedrock-data 1.6.0+bedrock-1.18.10@e98c511584a7bd58a95986374d2df4b04c6a2ba0
- pocketmine/bedrock-protocol 8.0.1+bedrock-1.18.10@a740f6095b35278c0e0dac6db84a5e4d2456b113
- pocketmine/binaryutils 0.2.4@5ac7eea91afbad8dc498f5ce34ce6297d5e6ea9a
- pocketmine/callback-validator 1.0.3@64787469766bcaa7e5885242e85c23c25e8c55a2
- pocketmine/classloader 0.2.0@49ea303993efdfb39cd302e2156d50aa78209e78
- pocketmine/color 0.2.0@09be6ea6d76f2e33d6813c39d29c22c46c17e1d2
- pocketmine/errorhandler 0.6.0@dae214a04348b911e8219ebf125ff1c5589cc878
- pocketmine/locale-data 2.4.3@4d0b081f1a79407e087968ea76aaf330db6ea2b5
- pocketmine/log 0.4.0@e6c912c0f9055c81d23108ec2d179b96f404c043
- pocketmine/log-pthreads 0.4.0@61f709e8cf36bcc24e4efe02acded680a1ce23cd
- pocketmine/math 0.4.2@aacc3759a508a69dfa5bc4dfa770ab733c5c94bf
- pocketmine/nbt 0.3.2@3e0d9ef6b6c5fb45e3745a121296e75631b3eefe
- pocketmine/pocketmine-mp 4.2.3@6c1c0c867e178f8da8b266e962ca13f4b4280ab4
- pocketmine/raklib 0.14.3@4798576fec0364266dce23b368a7fec5e5de7927
- pocketmine/raklib-ipc 0.1.1@922a6444b0c6c7daaa5aa5a832107e1ec4738aed
- pocketmine/snooze 0.3.1@0ac8fc2a781c419a1f64ebca4d5835028f59e29b
- ramsey/collection 1.2.2@cccc74ee5e328031b15640b51056ee8d3bb66c0a
- ramsey/uuid 4.2.3@fc9bb7fb5388691fd7373cd44dcb4d63bbcf24df
- rhumsaa/uuid unknown@unknown
- symfony/polyfill-ctype v1.25.0@30885182c981ab175d4d034db0f6f469898070ab
- symfony/polyfill-php80 v1.25.0@4407588e0d3f1f52efb65fbe92babe41f37fe50c
- symfony/polyfill-php81 v1.25.0@5de4ba2d41b15f9bd0e19b2ab9674135813ec98f
- webmozart/assert 1.10.0@6964c76c7804814a842473e0c8fd15bab0f18e25
- webmozart/path-util 2.3.0@d939f7edc24c9a1bb9c0dee5cb05d8e859490725
MrBlasyMSK commented 2 years ago

Oh wait is libasynql mb

Muqsit commented 2 years ago

Yeah, if you're running from source, you need to install all libraries of the right version that this plugin uses: https://github.com/Muqsit/ChestShop/blob/0695aeb73bc3a27492466487d8250ca2fbdb4d4d/.poggit.yml#L8-L14

You really shouldn't be doing this unless you're making changes to the source code, its easier to just download the phar from poggit and not have to do all of this otherwise.

MrBlasyMSK commented 2 years ago

Yeah, if you're running from source, you need to install all libraries of the right version that this plugin uses:

https://github.com/Muqsit/ChestShop/blob/0695aeb73bc3a27492466487d8250ca2fbdb4d4d/.poggit.yml#L8-L14

You really shouldn't be doing this unless you're making changes to the source code, its easier to just download the phar from poggit and not have to do all of this otherwise.

It's for a good cause, now you'll see and thx for the help