menu
#2907440 Cannot use object of type stdClass as array

Submitted by PocketMine-MP 3.9.4

General information

Version: 3.9.4
Git commit: 1be6783c
Plugin involvement: Direct
Report date: 2019-10-09 23:45:06 +0000 UTC

System Information

PHP version: 7.3.8
Operating system: linux
System banner: Linux g1 4.5.0-0.bpo.2-amd64 #1 SMP Debian 4.5.4-1~bpo8+1 (2016-05-13) 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.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[34] /home/gsp_2563/g4.hmserv.eu-19133/, string[42] /home/gsp_2563/g4.hmserv.eu-19133/plugins/)
#6 src/pocketmine/PocketMine(299): pocketmine\server()
#7 (1): require(string[89] phar:///home/gsp_2563/g4.hmserv.eu-19133/PocketMine-MP.phar/src/pocketmine/Pocke)

Loaded Plugins

  • Show

Server Settings

  • Show