menu
#9249373 Undefined variable $facMgr

Submitted by PocketMine-MP 5.5.0

General information

Version: 5.5.0
Git commit: c8d357f4
Plugin involvement: Direct
Report date: 2023-09-19 16:08:20 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 2 seconds

System Information

PHP version: 8.1.23
JIT status: Not available
Operating system: linux
System banner: Linux 7daa4b49-81b5-46e4-9e2d-a5b29a171059 5.10.0-25-amd64 #1 SMP Debian 5.10.191-1 (2023-08-16) x86_64

Error information

Warning: the mOutpost plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Undefined variable $facMgr
File: plugins/Event OutPost/src/OutpostTask
Line: #37
Type: ErrorException
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
    {
self::$nextReward--;

$file = Base::getInstance()->getOutpostData();
$config = Base::getInstance()->getConfig();

$players = Base::getInstance()->getServer()->getOnlinePlayers();
$actual = $file->get("actual", null);

if (1 > count($facMgr->getFactions())) {
return;
}

if (!is_null($actual)) {
if (self::$currentOutpost > 60) {
self::$currentOutpost = $config->get("uncapture_time");
}

if (is_null($facMgr->getFactionByName($actual))) {
$file->set("actual", null);
#0 plugins/Event OutPost/src/OutpostTask(37): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[26] Undefined variable $facMgr, string[57] /home/container/plugins/Event OutPost/src/OutpostTask.php, int 37)
#1 pmsrc/src/scheduler/TaskHandler(113): Outpost\OutpostTask->onRun()
#2 pmsrc/src/scheduler/TaskScheduler(137): pocketmine\scheduler\TaskHandler->run()
#3 pmsrc/src/plugin/PluginManager(530): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(int 1)
#4 pmsrc/src/Server(1789): pocketmine\plugin\PluginManager->tickSchedulers(int 1)
#5 pmsrc/src/Server(1678): pocketmine\Server->tick()
#6 pmsrc/src/Server(1064): pocketmine\Server->tickProcessor()
#7 pmsrc/src/PocketMine(334): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#8 pmsrc/src/PocketMine(357): pocketmine\server()
#9 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show