Hi,
This is due to changes in the PHP version that you have on your server. In later versions, this function has been depreciated.
I presume that you are not using the latest version of the calendar script as this error has been fixed.
To fix this error you need to open the ac-admin > admin-logout.php file and replace the whole contents which should look something like this:
- Code: Select all
<?php
session_start();
function session_clear() {
// if session exists, unregister all variables that exist and destroy session
$exists = "no";
$session_array = explode(";",session_encode());
for ($x = 0; $x < count($session_array); $x++) {
$name = substr($session_array[$x], 0, strpos($session_array[$x],"|"));
if (session_is_registered($name)) {
session_unregister('$name');
$exists = "yes";
}
}
if ($exists != "no") {
session_destroy();
}
}
session_clear();
if(!session_is_registered(session_name())) {
header("Location: index.php");
}else{
echo"<h1 style=\"color:red;\">NOT Logged Out</h1>";
echo"Please contact the system administrator.";
}
?>
with this code:
- Code: Select all
<?php
// Initialize the session.
session_start();
// Unset all of the session variables.
$_SESSION = array();
// destroy session cookie
if (ini_get("session.use_cookies")) {
$params = session_get_cookie_params();
setcookie(session_name(), '', time() - 42000,
$params["path"], $params["domain"],
$params["secure"], $params["httponly"]
);
}
// Finally, destroy the session.
session_destroy();
// redirect to admin home page
header("Location: index.php");
?>
Making that change should fix the issue.
Chris