Xenophilicy / NaviCompass

PocketMine plugin that lets you transfer between your server network and worlds with a UI!
https://poggit.pmmp.io/p/NaviCompass
GNU General Public License v3.0
23 stars 21 forks source link

Server crash #38

Closed nGentot123J closed 2 years ago

nGentot123J commented 2 years ago

Error: yaml_parse(): scanning error encountered during parsing: found unexpected end of stream (line 171, column 1), context while scanning a quoted scalar (line 170, column 3) File: pmsrc/src/utils/Config Line: 180 Type: ErrorException

A PLUGIN WAS INVOLVED IN THIS CRASH BAD PLUGIN: NaviCompass

Code: [171] switch($this->type){ [172] case Config::PROPERTIES: [173] $config = self::parseProperties($content); [174] break; [175] case Config::JSON: [176] $config = json_decode($content, true); [177] break; [178] case Config::YAML: [179] $content = self::fixYAMLIndexes($content); [180] $config = yaml_parse($content); [181] break; [182] case Config::SERIALIZED: [183] $config = unserialize($content); [184] break; [185] case Config::ENUM: [186] $config = array_fill_keys(self::parseList($content), true); [187] break; [188] default: [189] throw new \InvalidArgumentException("Invalid config type specified"); [190] }

Backtrace:

0 (): pocketmine\errorhandler\ErrorToExceptionHandler::handle(integer 2, string[169] yaml_parse(): scanning error encountered during parsing: found unexpected end of, string[62] phar:///home/container/PocketMine-MP.phar/src/utils/Config.php, integer 180)

1 pmsrc/src/utils/Config(180): yaml_parse(string[7313] # MADE BY:.# __)

2 pmsrc/src/utils/Config(119): pocketmine\utils\Config->load(string[50] /home/container/plugin_data/NaviCompass/config.yml, integer -1, array[0])

3 pmsrc/src/plugin/PluginBase(300): pocketmine\utils\Config->__construct(string[50] /home/container/plugin_data/NaviCompass/config.yml)

4 pmsrc/src/plugin/PluginBase(281): pocketmine\plugin\PluginBase->reloadConfig()

5 plugins/NaviCompass (1).phar/src/Xenophilicy/NaviCompass/NaviCompass(73): pocketmine\plugin\PluginBase->getConfig()

6 pmsrc/src/plugin/PluginBase(137): Xenophilicy\NaviCompass\NaviCompass->onEnable()

7 pmsrc/src/plugin/PluginManager(438): pocketmine\plugin\PluginBase->onEnableStateChange(true)

8 pmsrc/src/Server(1383): pocketmine\plugin\PluginManager->enablePlugin(object Xenophilicy\NaviCompass\NaviCompass#23837)

9 pmsrc/src/Server(1009): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#23437)

cosmicnebula200 commented 2 years ago

Hey there @nGentot123J

The error is caused by an invalid config please check your config for errors, you could use YamlLint to check for any possible errors related to your config.

nGentot123J commented 2 years ago

Ohh thx @cosmicnebula200

cosmicnebula200 commented 2 years ago

You are welcome :D