Code: Select all
include_once(".../includes/basicfunctions.php");
include_once(".../includes/sessionfunctions.php");
include_once(".../includes/validationclasses.php");
if($_POST['action'] == "preview"){
$event = new event($_POST);
if($preview = $event->view()){
session_register('post');
$_SESSION['post'] = $event;
$msg = "Submit Post?";
$preview = urlencode($preview);
}
else{
$msg = "Could not post. Please contact administrator.";
logerror("Could not preview post. event->preview()");
}
}
else{
$event = $_SESSION['post'];
if($event->post()){
$msg = "Post successful";
}
else{
$msg = "Could not post. Please contact administrator. ";
logerror("Could not post. event->post()");
}
}
header("Location: $rootdir/edit/calendarevents.php?msg=$msg&preview=$preview");Code: Select all
Fatal error: main() [function.main]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "event" 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:\wamp\www\postprogram\forms\postcalendar.php on line 21feyd | please use
Code: Select all
tags when posting php code.[/color]