Hi,
I purchased a software program a while back but no longer have support available for it. I reloaded a backup copy when my computer crashed but am running into many glitches. I have been able to figure out some, but I’m stuck on this one. I know very little about php, but I suspect that it has something to do with the include_path = in my php.ini file, but I am not sure. I hope I have given enough information to be able to get some help.
Thanks
D. Swenson
dswenson@coachellavalleysingles.com
Fatal error: Call to a member function on a non-object in c:\inetpub\wwwroot\index.php on line 34
This is the page with the Fatal error. index.php
<?
require_once("common.inc.php");
$usermanlib->checklogin(); ……this is line 34
loadtemplate("index.html", $pagearray);
?>
This is the common.inc.php it makes reference to $usermanlib->login();
…a few lines below.
<?
define("MainDirectoryPath", ".");
require_once(MainDirectoryPath . "/loadall.inc.php");
if($_GET["debug"] == "on")
$db->debug = true;
lots of code between etc….
then this….
if($POST["action"] == "login" || $GET["action"] == "login") {
$usermanlib->login();
}
if($POST["action"] == "logout" || $GET["action"] == "logout") {
$usermanlib->logout();
}
if($siteconfig["randomfeatured"])
RandomSelectFeatured=($siteconfig["numrandomfeatured"]);
?>
Then lastly on the loginlib.inc.php I see a reference to $usermanlib again.
<?
class usermanagement {
/**
@return boolean
@ levelrequired = "0" int
@desc Verify user session, update whosonline, and check permission to access page
/
function checklogin($levelrequired = "0") {
global $db;
global $pagearray;
etc… etc… etc…
there is still lots of code between then the last line is….
}
} // end chemail
} // end class
$usermanlib = new usermanagement;
?>
If someone could give me an idea on what to do, I would appreciate it.