menu
#6718058 DateInterval::__construct(): Unknown or bad format (P)

Submitted by PocketMine-MP 4.3.2

General information

Version: 4.3.2
Git commit: 755ca1af
Plugin involvement: Direct
Report date: 2022-05-14 06:17:42 +0000 UTC
Server uptime: 0 days 2 hours 44 minutes 54 seconds

System Information

PHP version: 8.0.18
Operating system: linux
System banner: Linux e7fed327-37f6-4dae-b4a3-f6617aed3886 4.15.0-135-generic #139-Ubuntu SMP Mon Jan 18 17:38:24 UTC 2021 x86_64

Error information

Warning: the PlayedTime plugin was directly involved in this crash. Please contact the plugin author.
Message: DateInterval::__construct(): Unknown or bad format (P)
File: plugins/PlayedTime_dev-3.phar/src/PlayedTimeManager
Line: #189
Error level: Exception
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
    /**
* @param Player|string $player
* @return DateInterval|null
* @throws Exception
*/
private function getTimeFromConfig(Player|string $player): DateInterval|null
{
$val = $this->getConfig()->get($this->cleanName($player), null);

return $val === null ? null : new DateInterval($val);
}

/**
* @param Player $player
* @return DateInterval|null
*/
private function calculateSessionTime(Player $player): DateInterval|null
{
if (!$this->isPlayerCached($player)) return null;

#0 plugins/PlayedTime_dev-3.phar/src/PlayedTimeManager(189): DateInterval->__construct(string[1] P)
#1 plugins/PlayedTime_dev-3.phar/src/PlayedTimeManager(216): supercrafter333\PlayedTime\PlayedTimeManager->getTimeFromConfig(string[10] DREAM18550)
#2 plugins/PlayedTime_dev-3.phar/src/PlayedTimeManager(119): supercrafter333\PlayedTime\PlayedTimeManager->calculateTotalTime(string[10] DREAM18550)
#3 plugins/PlayedTime_dev-3.phar/src/PlayedTimeManager(133): supercrafter333\PlayedTime\PlayedTimeManager->getTotalTime(string[10] DREAM18550)
#4 plugins/PlayedTime_dev-3.phar/src/PlayedTimeManager(67): supercrafter333\PlayedTime\PlayedTimeManager->saveFor(string[10] DREAM18550)
#5 plugins/PlayedTime_dev-3.phar/src/EventListener(20): supercrafter333\PlayedTime\PlayedTimeManager->removePlayerFromCache(string[10] DREAM18550)
#6 pmsrc/src/event/RegisteredListener(75): supercrafter333\PlayedTime\EventListener->onQuit(object pocketmine\event\player\PlayerQuitEvent#572628)
#7 pmsrc/src/event/Event(62): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\player\PlayerQuitEvent#572628)
#8 pmsrc/src/player/Player(2094): pocketmine\event\Event->call()
#9 pmsrc/src/network/mcpe/NetworkSession(582): pocketmine\player\Player->onPostDisconnect(string[7] timeout, NULL )
#10 pmsrc/src/network/mcpe/NetworkSession(515): pocketmine\network\mcpe\NetworkSession->pocketmine\network\mcpe\{closure}()
#11 pmsrc/src/network/mcpe/NetworkSession(584): pocketmine\network\mcpe\NetworkSession->tryDisconnect(object Closure#528942, string[7] timeout)
#12 pmsrc/src/network/mcpe/raklib/RakLibInterface(151): pocketmine\network\mcpe\NetworkSession->onClientDisconnect(string[7] timeout)
#13 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(75): pocketmine\network\mcpe\raklib\RakLibInterface->onClientDisconnect(integer 8, string[7] timeout)
#14 pmsrc/src/network/mcpe/raklib/RakLibInterface(122): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#393810)
#15 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#16 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#17 pmsrc/src/Server(1661): pocketmine\snooze\SleeperHandler->sleepUntil(double 1652509062.786)
#18 pmsrc/src/Server(1047): pocketmine\Server->tickProcessor()
#19 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#20 pmsrc/src/PocketMine(327): pocketmine\server()
#21 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show