planetteamspeak / ts3phpframework

Modern use-at-will framework that provides individual components to manage TeamSpeak 3 Server instances
https://www.planetteamspeak.com
GNU General Public License v3.0
211 stars 59 forks source link

Unhandled exception #140

Closed storm42 closed 4 years ago

storm42 commented 4 years ago

Hi, Just trying on the basic example to kick all clients from server : $ts3_VirtualServer = TeamSpeak3::factory("serverquery://xxx:xxx@xxx.xx:10011/?server_port=9987"); $arr_ClientList = $ts3_VirtualServer->clientList(); $ts3_VirtualServer->clientKick($arr_ClientList, TeamSpeak3::KICK_SERVER, "evil kick XD");

It works well, but, while executed on a web page, getting : ( ! ) Fatal error: Uncaught TeamSpeak3_Adapter_ServerQuery_Exception: invalid client type in /home/websites/test/includes/ts3phpframework-master/libraries/TeamSpeak3/Adapter/ServerQuery/Reply.php on line 316 TeamSpeak3_Adapter_ServerQuery_Exception: invalid client type in /home/websites/test/includes/ts3phpframework-master/libraries/TeamSpeak3/Adapter/ServerQuery/Reply.php on line 316

Any clue ? Thanks

storm42 commented 4 years ago

never mind, my bad try catch...