menu
#7034492 Fallback language is not provided. You must provides a fallback language(eng)

Submitted by PocketMine-MP 4.5.2+dev

General information

Version: 4.5.2+dev
Git commit: caa4b78a
Plugin involvement: Direct
Report date: 2022-06-23 12:05:09 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 3 seconds

System Information

PHP version: 8.0.12
Operating system: win
System banner: Windows NT DESKTOP-B39257E 10.0 build 19044 (Windows 10) AMD64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Fallback language is not provided. You must provides a fallback language(eng)
File: F:/workspace/_weAthena/virions/libmultilingual-main/src/kim/present/libmultilingual/Translator
Line: #69
Error level: RuntimeException
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
    public function __construct(
array $languages = [],
?Language $fallbackLanguage = null
){
foreach($languages as $language){
$this->languages[strtolower($language->getLocale())] = $language;
}

if($fallbackLanguage === null && !isset($this->languages[PMLanguage::FALLBACK_LANGUAGE])){
throw new RuntimeException("Fallback language is not provided. You must provides a fallback language(" . PMLanguage::FALLBACK_LANGUAGE . ")");
}

$this->fallbackLanguage = $fallbackLanguage ?? $this->languages[PMLanguage::FALLBACK_LANGUAGE];
}

/**
* @param string $str original string
* @param array<string|Stringable|number> $params translate parameters
* @param string|object|null $locale translate language locale or translate target. if null, translate by default language
*
#0 plugins/PrefixAPI/src/skh6075/api/prefix/PrefixAPI(52): kim\present\libmultilingual\Translator->__construct(array[1])
#1 pmsrc/src/plugin/PluginBase(117): skh6075\api\prefix\PrefixAPI->onEnable()
#2 pmsrc/src/plugin/PluginManager(448): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#3 pmsrc/src/Server(1419): pocketmine\plugin\PluginManager->enablePlugin(object skh6075\api\prefix\PrefixAPI#25858)
#4 pmsrc/src/Server(1024): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#25744)
#5 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[23] F:\workspace\_weAthena\, string[31] F:\workspace\_weAthena\plugins\)
#6 pmsrc/src/PocketMine(327): pocketmine\server()

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show