PDA

View Full Version : PHP on windows 2003 server help line 45


cyberxn
31-03-2006, 08:41
When i run the scrip on my dedi i get this error

Fatal error: Call to undefined method teamspeakDisplayClass::getDefaultSettings() in c:\Inetpub\wwwroot\Klan\ts.php on line 45

witch is this line
$settings = $teamspeakDisplay->getDefaultSettings();

now this is version 3.. 2 kept saying the server was offline when i know it wasent
here's the Current Config

//================== BEGIN OF CONFIGURATION CODE ======================

// Set the teamspeak server IP or Hostname below (DO NOT INCLUDE THE
// PORT NUMBER):
$settings["serveraddress"] = "venom.servehttp.com";

// If your you use another port than 8767 to connect to your teamspeak
// server using a teamspeak client, then uncomment the line below and
// set the correct teamspeak port:
//$settings["serverudpport"] = 1213;

// If your teamspeak server uses another query port than 51234, then
// uncomment the line below and set the teamspeak query port of your
// server (look in the server.ini of your teamspeak server for this
// portnumber):
//$settings["serverqueryport"] = 51234;

// If you want to limit the display to only one channel including it's
// players and subchannels, uncomment the following line and set the
// exact name of the channel. This feature is case-sensitive!
//$settings["limitchannel"] = "";

// If your teamspeak server uses another set of forbidden nickname
// characters than "()[]{}" (look in your server.ini for this setting),
// then uncomment the following line and set the correct set of
// forbidden nickname characters:
//$settings["forbiddennicknamechars"] = "()[]{}";

//================== END OF CONFIGURATION CODE ========================

Im just a little confused.. and im in need of help fast

Cyrus
31-03-2006, 16:29
The error message says everything that is wrong.
You did not declare the function getDefaultSettings or the whole class is undefined.

cyberxn
31-03-2006, 19:16
how would i go about changing that...
:)

Cyrus
01-04-2006, 11:56
Did you change something in the main script? Maybe you erased some "require" or "include" statement that included a description for that class.

cyberxn
01-04-2006, 19:44
after messing with it for a lil wile i got it to work >< but now it says the Server is offline.. when its up and running 24/7
any idea on how to take care of the problem?