-
Notifications
You must be signed in to change notification settings - Fork 62
Closed
Description
Im try to Upgrade to Version 1.2.1 with PHP 8.1 and now i get the following error:
#message: "convert error"
#code: 1540
#file: "G:\derrabot\vendor\planetteamspeak\ts3-php-framework\src\Adapter\ServerQuery\Reply.php"
#line: 311
#raw_code: 1540
#raw_mesg: "convert error"
#return_code: null
For channel->getInfo()
channel->getInfo() will throw the error with bool $extend = true when switch to bool $extend = false the error will not thrown
trace: {▼
G:\derrabot\vendor\planetteamspeak\ts3-php-framework\src\Adapter\ServerQuery\Reply.php:311 {▼
PlanetTeamSpeak\TeamSpeak3Framework\Adapter\ServerQuery\Reply->fetchError(StringHelper $err): void …
›
› throw new ServerQueryException($this->getErrorProperty("msg") . $suffix, $this->getErrorProperty("id"), $this->getErrorProperty("return_code"));
› }
}
G:\derrabot\vendor\planetteamspeak\ts3-php-framework\src\Adapter\ServerQuery\Reply.php:100 {▼
PlanetTeamSpeak\TeamSpeak3Framework\Adapter\ServerQuery\Reply->__construct(array $rpl, string $cmd = '', Host $con = null, bool $exp = true) …
›
› $this->fetchError(array_pop($rpl));
› $this->fetchReply($rpl);
arguments: {▼
$err: PlanetTeamSpeak\TeamSpeak3Framework\Helper\StringHelper {#2005 …}
}
}
G:\derrabot\vendor\planetteamspeak\ts3-php-framework\src\Adapter\ServerQuery.php:154 {▼
PlanetTeamSpeak\TeamSpeak3Framework\Adapter\ServerQuery->request(string $cmd, bool $throw = true): Reply …
›
› $reply = new Reply($rpl, $cmd, $this->getHost(), $throw);
›
arguments: {▼
$rpl: []
$cmd: "channelinfo cid=㌸"
$con: PlanetTeamSpeak\TeamSpeak3Framework\Node\Host {#1482 …}
$exp: true
}
}
G:\derrabot\vendor\planetteamspeak\ts3-php-framework\src\Node\Node.php:88 {▼
PlanetTeamSpeak\TeamSpeak3Framework\Node\Node->request(string $cmd, bool $throw = true): Reply …
› {
› return $this->getParent()->request($cmd, $throw);
› }
arguments: {▼
$cmd: "channelinfo cid=㌸"
$throw: true
}
}
G:\derrabot\vendor\planetteamspeak\ts3-php-framework\src\Node\Server.php:99 {▼
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server->request(string $cmd, bool $throw = true): Reply …
›
› return $this->getParent()->request($cmd, $throw);
› }
arguments: {▼
$cmd: "channelinfo cid=㌸"
$throw: true
}
}
G:\derrabot\vendor\planetteamspeak\ts3-php-framework\src\Node\Node.php:88 {▼
PlanetTeamSpeak\TeamSpeak3Framework\Node\Node->request(string $cmd, bool $throw = true): Reply …
› {
› return $this->getParent()->request($cmd, $throw);
› }
arguments: {▼
$cmd: "channelinfo cid=㌸"
$throw: true
}
}
G:\derrabot\vendor\planetteamspeak\ts3-php-framework\src\Node\Node.php:114 {▼
PlanetTeamSpeak\TeamSpeak3Framework\Node\Node->execute($cmd, array $params = []): Reply …
› {
› return $this->request($this->prepare($cmd, $params));
› }
arguments: {▼
$cmd: "channelinfo cid=㌸"
}
}
G:\derrabot\vendor\planetteamspeak\ts3-php-framework\src\Node\Channel.php:541 {▼
PlanetTeamSpeak\TeamSpeak3Framework\Node\Channel->fetchNodeInfo() …
› {
› $this->nodeInfo = array_merge($this->nodeInfo, $this->execute("channelinfo", ["cid" => $this->getId()])->toList());
› }
arguments: {▼
$cmd: "channelinfo"
$params: array:1 [ …1]
}
}
G:\derrabot\vendor\planetteamspeak\ts3-php-framework\src\Node\Node.php:286 {▼
PlanetTeamSpeak\TeamSpeak3Framework\Node\Node->getInfo(bool $extend = true, bool $convert = false): array …
› if ($extend) {
› $this->fetchNodeInfo();
› }
}
For ts3_VirtualServer->clientInfoDb()
trace: {▼
G:\derrabot\vendor\planetteamspeak\ts3-php-framework\src\Adapter\ServerQuery\Reply.php:311 {▼
PlanetTeamSpeak\TeamSpeak3Framework\Adapter\ServerQuery\Reply->fetchError(StringHelper $err): void …
›
› throw new ServerQueryException($this->getErrorProperty("msg") . $suffix, $this->getErrorProperty("id"), $this->getErrorProperty("return_code"));
› }
}
G:\derrabot\vendor\planetteamspeak\ts3-php-framework\src\Adapter\ServerQuery\Reply.php:100 {▼
PlanetTeamSpeak\TeamSpeak3Framework\Adapter\ServerQuery\Reply->__construct(array $rpl, string $cmd = '', Host $con = null, bool $exp = true) …
›
› $this->fetchError(array_pop($rpl));
› $this->fetchReply($rpl);
arguments: {▼
$err: PlanetTeamSpeak\TeamSpeak3Framework\Helper\StringHelper {#2326 …}
}
}
G:\derrabot\vendor\planetteamspeak\ts3-php-framework\src\Adapter\ServerQuery.php:154 {▼
PlanetTeamSpeak\TeamSpeak3Framework\Adapter\ServerQuery->request(string $cmd, bool $throw = true): Reply …
›
› $reply = new Reply($rpl, $cmd, $this->getHost(), $throw);
›
arguments: {▼
$rpl: []
$cmd: "clientdbinfo cldbid=ㄱ"
$con: PlanetTeamSpeak\TeamSpeak3Framework\Node\Host {#1482 …}
$exp: true
}
}
G:\derrabot\vendor\planetteamspeak\ts3-php-framework\src\Node\Node.php:88 {▼
PlanetTeamSpeak\TeamSpeak3Framework\Node\Node->request(string $cmd, bool $throw = true): Reply …
› {
› return $this->getParent()->request($cmd, $throw);
› }
arguments: {▼
$cmd: "clientdbinfo cldbid=ㄱ"
$throw: true
}
}
G:\derrabot\vendor\planetteamspeak\ts3-php-framework\src\Node\Server.php:99 {▼
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server->request(string $cmd, bool $throw = true): Reply …
›
› return $this->getParent()->request($cmd, $throw);
› }
arguments: {▼
$cmd: "clientdbinfo cldbid=ㄱ"
$throw: true
}
}
G:\derrabot\vendor\planetteamspeak\ts3-php-framework\src\Node\Node.php:114 {▼
PlanetTeamSpeak\TeamSpeak3Framework\Node\Node->execute($cmd, array $params = []): Reply …
› {
› return $this->request($this->prepare($cmd, $params));
› }
arguments: {▼
$cmd: "clientdbinfo cldbid=ㄱ"
}
}
G:\derrabot\vendor\planetteamspeak\ts3-php-framework\src\Node\Server.php:715 {▼
PlanetTeamSpeak\TeamSpeak3Framework\Node\Server->clientInfoDb(int $cldbid): array …
› {
› return $this->execute("clientdbinfo", ["cldbid" => $cldbid])->toList();
› }
arguments: {▼
$cmd: "clientdbinfo"
$params: array:1 [ …1]
}
}
G:\derrabot\app\Http\Controllers\ts3Config\Ts3ConfigController.php:245 {▼
App\Http\Controllers\ts3Config\Ts3ConfigController->ts3ServerInitializing($serverID): array …
› //get userinfo by db id
› $userDbInfo = $ts3_VirtualServer->clientInfoDb($cldbid);
› //store info
arguments: {▼
$cldbid: 11
}
}
Metadata
Metadata
Assignees
Labels
No labels