menu
#2468868 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 07:58:43 +0000 UTC

System Information

PHP version: 7.2.16
Operating system: mac
System banner: Darwin jimmy.modem 18.2.0 Darwin Kernel Version 18.2.0: Fri Oct 5 19:40:55 PDT 2018; root:xnu-4903.221.2~1/RELEASE_X86_64 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/Scoreboards.phar/src/Miste/scoreboardspe/API/ScoreboardStore
Line: #194
Error level: ErrorException
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
		$this->scoreboards[$newName] = $this->scoreboards[$oldName];
unset($this->scoreboards[$oldName]);
}

/**
* @param string $playerName
*/

public function removePotentialViewer(string $playerName) : void{
foreach($this->viewers as $name => $data){
if(in_array($playerName, $data)){
if(($key = array_search($playerName, $data)) !== false){
unset($this->viewers[$name][$key]);
}
}
}
}

/**
* @param string $displayName
#0 plugins/Scoreboards.phar/src/Miste/scoreboardspe/API/ScoreboardStore(194): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string[39] Invalid argument supplied for foreach(), string[98] phar:///Users/tariqnejati/plugins/Scoreboards.phar/src/Miste/scoreboardspe/API/S, integer 194, array[1])
#1 plugins/Scoreboards.phar/src/Miste/scoreboardspe/EventHandler(25): Miste\scoreboardspe\API\ScoreboardStore->removePotentialViewer(string[12] vexerplayzmc)
#2 src/pocketmine/plugin/MethodEventExecutor(38): Miste\scoreboardspe\EventHandler->onQuitEvent(object pocketmine\event\player\PlayerQuitEvent)
#3 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(object Miste\scoreboardspe\EventHandler, object pocketmine\event\player\PlayerQuitEvent)
#4 src/pocketmine/event/Event(99): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\player\PlayerQuitEvent)
#5 src/pocketmine/Player(3496): pocketmine\event\Event->call()
#6 src/pocketmine/network/mcpe/RakLibInterface(122): pocketmine\Player->close(object pocketmine\lang\TranslationContainer, string[7] timeout)
#7 vendor/pocketmine/raklib/src/server/ServerHandler(131): pocketmine\network\mcpe\RakLibInterface->closeSession(string[18] 192.168.0.15 52681, string[7] timeout)
#8 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()
#9 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
#10 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
#11 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
#12 src/pocketmine/Server(2338): pocketmine\snooze\SleeperHandler->sleepUntil(double 1560326323.6264)
#13 src/pocketmine/Server(2195): pocketmine\Server->tickProcessor()
#14 src/pocketmine/Server(1774): pocketmine\Server->start()
#15 src/pocketmine/PocketMine(266): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[19] /Users/tariqnejati/, string[27] /Users/tariqnejati/plugins/)
#16 (1): require(string[74] phar:///Users/tariqnejati/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show