menu
#2469916 Invalid argument supplied for foreach()

Submitted by PocketMine-MP 3.8.4

General information

Version: 3.8.4
Git commit: a42f68d3
Plugin involvement: Direct
Report date: 2019-06-12 11:02:26 +0000 UTC

System Information

PHP version: 7.2.8
Operating system: linux
System banner: Linux f4967697f61a 4.14.12-xxxx-std-ipv6-64 #1 SMP Fri Jan 5 16:55:37 UTC 2018 x86_64

Error information

Warning: the ScoreboardsPE plugin was directly involved in this crash. Please contact the plugin author.
Message: Invalid argument supplied for foreach()
File: plugins/ScoreboardsPE_dev-17.phar/src/Miste/scoreboardspe/API/Scoreboard
Line: #129
Error level: ErrorException
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
		$entry = new ScorePacketEntry();
$entry->objectiveName = $this->objectiveName;
$entry->type = ScorePacketEntry::TYPE_FAKE_PLAYER;
$this->padding ? $entry->customName = str_pad($message, ((strlen($this->displayName) * 2) - strlen($message))) : $entry->customName = $message;
$entry->score = self::MAX_LINES - $line;
$entry->scoreboardId = ($this->scoreboardId + $line); //You can't send two lines with the same sc id
$pk->entries[] = $entry;
$this->plugin->getStore()->addEntry($this->objectiveName, ($line - 1), $entry);

foreach($this->plugin->getStore()->getViewers($this->objectiveName) as $name){
$p = $this->plugin->getServer()->getPlayer($name);
if($p !== null){
$pk = new SetScorePacket();
$pk->type = SetScorePacket::TYPE_CHANGE;
foreach($this->plugin->getStore()->getEntries($this->objectiveName) as $index => $entry){
$pk->entries[$index] = $entry;
}
$p->sendDataPacket($pk);
}
}
#0 plugins/ScoreboardsPE_dev-17.phar/src/Miste/scoreboardspe/API/Scoreboard(129): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string[39] Invalid argument supplied for foreach(), string[130] phar:///home/minecraft/multicraft/servers/server60484/plugins/ScoreboardsPE_dev-, integer 129, array[6])
#1 plugins/BetterVotingUpdated/src/Twisted/BetterVoting/VotesMonthReset(105): Miste\scoreboardspe\API\Scoreboard->setLine(integer 12, string[18] ..b..lFaction info)
#2 src/pocketmine/scheduler/TaskHandler(159): Twisted\BetterVoting\VotesMonthReset->onRun(integer 1)
#3 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 1)
#4 src/pocketmine/plugin/PluginManager(689): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 1)
#5 src/pocketmine/Server(2559): pocketmine\plugin\PluginManager->tickSchedulers(integer 1)
#6 src/pocketmine/Server(2335): pocketmine\Server->tick()
#7 src/pocketmine/Server(2195): pocketmine\Server->tickProcessor()
#8 src/pocketmine/Server(1774): pocketmine\Server->start()
#9 src/pocketmine/PocketMine(266): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[47] /home/minecraft/multicraft/servers/server60484/, string[55] /home/minecraft/multicraft/servers/server60484/plugins/)
#10 (1): require(string[107] phar:///home/minecraft/multicraft/servers/server60484/PMMP-Latest-Stable.phar/sr)

Loaded Plugins

  • Show

Server Settings

  • Show