menu
#3077494 Cannot use object of type stdClass as array

Submitted by PocketMine-MP 3.9.3

General information

Version: 3.9.3
Git commit: 18a1bfe4
Plugin involvement: Direct
Report date: 2019-11-07 20:00:01 +0000 UTC

System Information

PHP version: 7.3.11
Operating system: linux
System banner: Linux server17166 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 x86_64

Error information

Warning: the PocketVote plugin was directly involved in this crash. Please contact the plugin author.
Message: Cannot use object of type stdClass as array
File: plugins/PocketVote-PocketMine (1).phar/src/ProjectInfinity/PocketVote/task/TopVoterTask
Line: #57
Error level: Error
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67

public function onCompletion(Server $server): void {
if(!$this->hasResult()) {
$server->getLogger()->error('[PocketVote] TopVoterTask - Failed to retrieve top voters. Try again later.');
return;
}

$result = $this->getResult();

if(!$result['success'] && isset($result['error'])) {
$server->getLogger()->error('[PocketVote] TopVoterTask - An error occurred while contacting the PocketVote servers, please try again later.');
$server->getLogger()->error('[PocketVote] curl error occurred during TopVoterTask: '.$result['error']);
return;
}

if(!$result['success']) {
$server->getLogger()->error('[PocketVote] TopVoterTask - An error occurred while contacting the PocketVote servers, please try again later.');
return;
}

#0 src/pocketmine/scheduler/AsyncPool(320): ProjectInfinity\PocketVote\task\TopVoterTask->onCompletion(object pocketmine\Server)
#1 src/pocketmine/Server(2573): pocketmine\scheduler\AsyncPool->collectTasks()
#2 src/pocketmine/Server(2345): pocketmine\Server->tick()
#3 src/pocketmine/Server(2205): pocketmine\Server->tickProcessor()
#4 src/pocketmine/Server(1784): pocketmine\Server->start()
#5 src/pocketmine/PocketMine(275): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[12] /root/HubPE/, string[20] /root/HubPE/plugins/)
#6 src/pocketmine/PocketMine(299): pocketmine\server()
#7 (1): require(string[67] phar:///root/HubPE/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show