ts3adminn doesnt work on PHP 5.5?

  • When i try to connect to my server i have an error:

    Code
    Notice: Undefined variable: errstr in/[..]/ts/ts3admin.class.php on line 3923


    How to reapir it? On PHP 7.0 its works fine..

    Einmal editiert, zuletzt von fauke ()

  • Hello,


    It's not my Class but you can solve this Problem like this:
    Add this at Line 3918-3919


    Code
    $errstr = '';


    Regards


  • Thanks i dont have an error now, but it still not working on PHP 5.5. I have error:
    Array ( [success] => [errors] => Array ( [0] => Error: connection failed! [1] => Server returns: ) [data] => )


    for code:

    Code
    $ts3_ip = 'xxx.xxx.xxx';
    $ts3_queryport = '10011';
    $ts3_port = 9987;
    $ts3_user = 'serveradmin';
    $ts3_pass = 'xxxxxx';
    /*----------------------*/
    require_once("ts3admin.class.php");
    $tsAdmin = new ts3admin($ts3_ip, $ts3_queryport);
        $connect = $tsAdmin->connect();
    print_r($connect);
    • Offizieller Beitrag

    Hi,

    $ts3_ip = 'xxx.xxx.xxx';


    You're missing an octet. ;)

    Code
    $ts3_ip = 'xxx.xxx.xxx.XXX';


    Are you able to connect with the telnet command?

    Code
    telnet xxx.xxx.xxx.XXX 10011


    Make sure, that your server is listening for all IP addresses (0.0.0.0). Check your instance log ([...]_0.log) for this info.


    If you're banned, this could be the reason for. ;)

    Viele Grüße,
    Sebbo

    ---

    DevOps Engineer <3

  • Your Error ist: Error: connection failed!


    Something in your Connection Data is wrong.
    Mybe your IP (xxx.xxx.xxx) is the Error. An IP has 4 characters (xxx.xxx.xxx.xxx), not 3.


    Regards

  • Dieses Thema enthält einen weiteren Beitrag, der nur für registrierte Benutzer sichtbar ist, bitte registrieren Sie sich oder melden Sie sich an um diesen lesen zu können.