I really like PHP, but I miss the debugging abilities of PERL.
--------------------------------------------------------------------------------include_once ("kwoon.php");
$newKwoon = new kwoon();
$retval = $newKwoon->kwoonVerify($kwoonname, $password, $activation);
// test for retval
if (strlen($retval) > 1) {
$myoutput = new output();
// display error page
$myoutput->dispError($retval);
exit;
}
$newKwoon->kwoonByName($kwoonname);
//The infamous line 119 below
$newKwoon->kwoonActivate($kwoonname);
Running this results in the last line ($newKwoon->kwoonActivate) giving this error
Fatal error: Call to a member function on a non-object in /home/virtual/dragonslist/home/httpd/html/fun/game/signup.php on line 119
How can $newKwoon, that has been initialized and used twice already before this line, suddently become a non-object?
Maybe I just don't understand the error message