Fatal error: printHeader() [function.printHeader]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "Database" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in C:\Program Files\Apache Group\Apache2\htdocs\ECN99\Common\Functions\htmlfunctions.php on line 32 THE CODE --------- include('../Common/Classes/Database.php'); function printHeader($style='../gui/mainstyle.css', $name='ecn',$ajaxit='yes') { $sslclass; require_once('../Common/Classes/SLLists.class.php'); echo ''."\n"; echo "\n"; echo "\n"; if($ajaxit=='yes') { $sslclass = new SLLists("../javascript/"); $sslclass->printTopJS(); } echo ''."\n"; echo "\n"; echo "$title\n"; echo "\n"; echo "\n"; echo "
"; if(isset($_SESSION['dbclass'])) //the login page does not have the menu :) { $mydb=$_SESSION['dbclass']; $mydb->link(); printTextMenu($mydb->getGlobalFeatures(),"  |  "); }else { echo "Welcome to The ECN voip gateway solution thing!"; } echo "
"; }