Forum

Results 1 to 15 of 1496

Threaded View

  1. #11
    Join Date
    February 2013
    Posts
    47
    sorry, this is the error

    Code:
    [25-Oct-2013 13:48:23 Europe/Berlin] PHP Fatal error:  Uncaught exception 'TeamSpeak3_Adapter_ServerQuery_Exception' with message 'missing required parameter' in E:\xampp\htdocs\libraries\TeamSpeak3\Adapter\ServerQuery\Reply.php:319
    Stack trace:
    #0 E:\xampp\htdocs\libraries\TeamSpeak3\Adapter\ServerQuery\Reply.php(91): TeamSpeak3_Adapter_ServerQuery_Reply->fetchError(Object(TeamSpeak3_Helper_String))
    #1 E:\xampp\htdocs\libraries\TeamSpeak3\Adapter\ServerQuery.php(141): TeamSpeak3_Adapter_ServerQuery_Reply->__construct(Array, 'channelcreate c...', Object(TeamSpeak3_Node_Host), true)
    #2 E:\xampp\htdocs\libraries\TeamSpeak3\Node\Abstract.php(73): TeamSpeak3_Adapter_ServerQuery->request('channelcreate c...', true)
    #3 E:\xampp\htdocs\libraries\TeamSpeak3\Node\Server.php(90): TeamSpeak3_Node_Abstract->request('channelcreate c...', true)
    #4 E:\xampp\htdocs\libraries\TeamSpeak3\Node\Abstract.php(97): TeamSpeak3_Node_Server->request('channelcreate c...')
    #5 E:\xampp\htdocs\libraries\TeamSpeak3\Node\Server.php(137): TeamSpeak3_Node_Abstract->execute('channelcreate', Array) in E:\xampp\htdocs\libraries\TeamSpeak3\Adapter\ServerQuery\Reply.php on line 319
    I downloaded the new php framework, decompressed, and replaced! but does not work!


    I think the problem is if you do not fill all the fields I receive that error. how can I fix?

    Code:
    <?php
    error_reporting(E_ALL); 
    ini_set( 'display_errors','1');
    
    require_once("libraries/TeamSpeak3/TeamSpeak3.php");
    
    $ts3_VirtualServer = TeamSpeak3::factory("serverquery://serveradmin:[email protected]:10011/?server_port=9987&nickname=Channel_Bot");
    
    $nome_canale         = $_POST['ncanale'];
    $desc_canale         = $_POST['dcanale'];
    $pass_canale         = $_POST['pcanale'];
    $nome_subcanalep     = $_POST['subcanalep'];
    $nome_subcanales     = $_POST['subcanales'];
    
    
    // create a top-level channel and get its ID
    $top_cid = $ts3_VirtualServer->channelCreate(array(
      "channel_name"           => "$nome_canale",
      "channel_topic"          => "$desc_canale",
      "channel_codec"          => TeamSpeak3::CODEC_SPEEX_ULTRAWIDEBAND,
      "channel_codec_quality"  => 0x08,
      "channel_flag_permanent" => TRUE,
      "channel_password" => "$pass_canale",
    ));
    // create a sub-level channel and get its ID
    $sub_cid = $ts3_VirtualServer->channelCreate(array(
      "channel_name"           => "$nome_subcanalep",
      "channel_topic"          => "First Sub-channel $nome_canale",
      "channel_codec"          => TeamSpeak3::CODEC_SPEEX_ULTRAWIDEBAND,
      "channel_flag_permanent" => TRUE,
      "channel_password"       => "$pass_canale",
      "cpid"                   => $top_cid,
    ));
    // create a sub-level channel and get its ID
    $sub_cid = $ts3_VirtualServer->channelCreate(array(
      "channel_name"           => "$nome_subcanales",
      "channel_topic"          => "Second Sub-channel $nome_canale",
      "channel_codec"          => TeamSpeak3::CODEC_SPEEX_ULTRAWIDEBAND,
      "channel_flag_permanent" => TRUE,
      "channel_password"       => "$pass_canale",
      "cpid"                   => $top_cid,
    ));
    
    $token = $ts3_VirtualServer->channelGroupGetByName('Channel Admin')->privilegeKeyCreate($top_cid, 'Token auto');
    
    // $key is a TeamSpeak3_Helper_String object, let's print it
    echo $token;
    
       ?>
    Last edited by Death_Balgor; October 25th, 2013 at 06:13 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. PHP Framework
    By Multivit4min in forum Permission System
    Replies: 1
    Last Post: June 29th, 2015, 12:28 PM
  2. PHP Framework
    By phil998 in forum Server Support
    Replies: 0
    Last Post: February 25th, 2015, 07:27 PM
  3. TS3 PHP Framework Visualizations
    By Ronin Design in forum Tools / Web Based
    Replies: 2
    Last Post: February 22nd, 2015, 06:04 AM
  4. Extraction using the Framework
    By HarryMW in forum Tools / Web Based
    Replies: 1
    Last Post: August 3rd, 2012, 08:04 PM
  5. Teamspeak, PHP Framework?
    By mario2027 in forum General Questions
    Replies: 1
    Last Post: December 21st, 2010, 10:30 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •