menu
#2580693 Invalid argument supplied for foreach()

Submitted by PocketMine-MP 3.8.6

General information

Version: 3.8.6
Git commit: 1bfd6f2a
Plugin involvement: Direct
Report date: 2019-07-11 17:39:48 +0000 UTC

System Information

PHP version: 7.2.8
Operating system: linux
System banner: Linux 818cb90d5d43 4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 14:45:28 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_2.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/ScoreboardsPE_2.phar/src/Miste/scoreboardspe/API/ScoreboardStore(194): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string[39] Invalid argument supplied for foreach(), string[98] phar:///home/gs-40385/plugins/ScoreboardsPE_2.phar/src/Miste/scoreboardspe/API/S, integer 194, array[1])
#1 plugins/ScoreboardsPE_2.phar/src/Miste/scoreboardspe/EventHandler(25): Miste\scoreboardspe\API\ScoreboardStore->removePotentialViewer(string[15] AceJonathando63)
#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[17] client disconnect)
#7 vendor/pocketmine/raklib/src/server/ServerHandler(131): pocketmine\network\mcpe\RakLibInterface->closeSession(string[18] 68.33.130.99 49430, string[17] client disconnect)
#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(2348): pocketmine\snooze\SleeperHandler->sleepUntil(double 1562866788.3753)
#13 src/pocketmine/Server(2205): pocketmine\Server->tickProcessor()
#14 src/pocketmine/Server(1784): pocketmine\Server->start()
#15 src/pocketmine/PocketMine(274): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[15] /home/gs-40385/, string[23] /home/gs-40385/plugins/)
#16 (1): require(string[94] phar:///pro/bin/mcpe/pocketmine-stable-1.11.0/PocketMine-MP.phar/src/pocketmine/)

Loaded Plugins

  • Show

Server Settings

  • Show