#1 2017-02-11 21:55:25

bud
maestro
Reputation: +1835
Location: shangri la
Registered: 2012-07-07
Posts: 3,941
Website
Windows 7 Firefox 51.0

teamspeak plugin

I have some problem with a teamspeak plugin and i wonder if someone can decode this error

Fatal error: Uncaught exception 'TeamSpeak3_Transport_Exception' with message 'php_network_getaddresses: getaddrinfo failed: Name or service not known' in /home/bforg/public_html/e107_plugins/teamspeak3_menu/libraries/TeamSpeak3/Transport/TCP.php:54 Stack trace: #0 /home/bforg/public_html/e107_plugins/teamspeak3_menu/libraries/TeamSpeak3/Transport/TCP.php(108): TeamSpeak3_Transport_TCP->connect() #1 /home/bforg/public_html/e107_plugins/teamspeak3_menu/libraries/TeamSpeak3/Adapter/ServerQuery.php(76): TeamSpeak3_Transport_TCP->readLine() #2 /home/bforg/public_html/e107_plugins/teamspeak3_menu/libraries/TeamSpeak3/Adapter/Abstract.php(60): TeamSpeak3_Adapter_ServerQuery->syn() #3 /home/bforg/public_html/e107_plugins/teamspeak3_menu/libraries/TeamSpeak3/TeamSpeak3.php(286): TeamSpeak3_Adapter_Abstract->__construct(Array) #4 /home/bforg/public_html/e107_plugins/teamspeak3_menu/help.php(23): TeamSpeak3::factory('serverquery://s...') #5 /home/bforg/public_html/e107_handlers/shortcode_handler.php(173) : eval()'d code(36): includ in /home/bforg/public_html/e107_plugins/teamspeak3_menu/libraries/TeamSpeak3/Transport/TCP.php on line 54

Offline

    Positive reputation 0   Negative reputation 0

#2 2017-02-12 21:22:34

Archer!
Player
Canada
Reputation: +55
Location: Vancouver Island
Registered: 2015-07-19
Posts: 191
Ubuntu Firefox 51.0

Re: teamspeak plugin

Do you have shell access on your server?  What happens when you try and resolve your teamspeak server address from the command line or from a test php script? Looks like the name/address to your teamspeak server can not be resolved or is not set correctly in your configuration.

http://man7.org/linux/man-pages/man3/getaddrinfo.3.html

EAI_NONAME
              The node or service is not known; or both node and service are
              NULL; or AI_NUMERICSERV was specified in hints.ai_flags and
              service was not a numeric port-number string.

Last edited by Archer! (2017-02-12 21:25:59)

Offline

    Positive reputation 0   Negative reputation 0

#3 2017-02-13 04:18:55

Archer!
Player
Canada
Reputation: +55
Location: Vancouver Island
Registered: 2015-07-19
Posts: 191
Ubuntu Firefox 51.0

Re: teamspeak plugin

This is where it is failing:
https://github.com/Moc/teamspeak3/blob/ … CP.php#L50

Check your host and port settings.

This function is returning false.  You need to find out why.

http://php.net/manual/en/function.strea … client.php

Offline

    Positive reputation 0   Negative reputation 0

#4 2017-02-13 07:35:48

bud
maestro
Reputation: +1835
Location: shangri la
Registered: 2012-07-07
Posts: 3,941
Website
Windows 7 Firefox 51.0

Re: teamspeak plugin

Thanks, i wasnt really expecting any reply smile I should have detailed the problem better, i run the teamspeak server on a Centos 6 system where im root, ports are open for public.

I also have a e107 csm Version 1.0.4 (edit: host with C-panel) and now when i looked closer at the problem it doesnt seem to create the database table when i install the plugin, i think it may be effed, it has been hacked and repaired some times through the years so maybe it time to give it up and look for something more robust.

http://pasteboard.co/xK28tXAmR.jpg

Last edited by bud (2017-02-13 07:46:00)

Offline

    Positive reputation 0   Negative reputation 0

#5 2017-02-13 17:44:44

Archer!
Player
Canada
Reputation: +55
Location: Vancouver Island
Registered: 2015-07-19
Posts: 191
Ubuntu Firefox 51.0

Re: teamspeak plugin

Are the teamspeak and e107 on the same box?

If the database table for the plugin is missing, this could be the problem.

This is the database table, you could check to see if the table is there:
https://github.com/Moc/teamspeak3/blob/ … k3_sql.php

If the table is missing, run the above query and then populate the table.  If it is there, then what are the contents of it?

Offline

    Positive reputation 0   Negative reputation 0

#6 2017-02-14 12:26:37

bud
maestro
Reputation: +1835
Location: shangri la
Registered: 2012-07-07
Posts: 3,941
Website
Windows 7 Firefox 51.0

Re: teamspeak plugin

TS is on separate server, csm is on a webhost (havent found any good open source alternative for C-panel, and a licence costs more than the webhost does), i tried with the code in your link but no go, i also tried softaculous with the V2 Bootstrap and the auto download plugin function, but it gave same error there to witch makes me wondering a bit about the quality of that plugin. smile
-
fault.jpg

So instead of running circles around this forever i decided to use a "img" that pulls data from tsviewer.com instead. Its close enough for what i need it for so all good i think.

1096332.png

Last edited by bud (2017-02-14 12:30:35)

Offline

    Positive reputation 0   Negative reputation 0

Board footer