I just loaded phphelpdesk up on Apache 2.0.52/PHP v4.3.10/MySQL 4.1.8, and get this message whenever I go to "view tickets"
Warning: setcookie() expects parameter 3 to be long, string given in C:\XAMPP\xampp\htdocs\phphelpdesk\includes\cookie.inc.php on line 8
Warning: setcookie() expects parameter 3 to be long, string given in C:\XAMPP\xampp\htdocs\phphelpdesk\includes\cookie.inc.php on line 9
Warning: setcookie() expects parameter 3 to be long, string given in C:\XAMPP\xampp\htdocs\phphelpdesk\includes\cookie.inc.php on line 10
Warning: setcookie() expects parameter 3 to be long, string given in C:\XAMPP\xampp\htdocs\phphelpdesk\includes\cookie.inc.php on line 11
Warning: setcookie() expects parameter 3 to be long, string given in C:\XAMPP\xampp\htdocs\phphelpdesk\includes\cookie.inc.php on line 12
my config.inc.php looks like this:
<?php
// Modified by Andrew Walker (ajwalker@home.com)
$time = mktime()+$g_cookietimeout;
$date = date("l, d-M-y H:i:s", ($time));
The problem is setcookie is looking for data of type 'long' where as the variables set to it are strings. That is why you are getting an error. I have php5. This is how i fixed the problem. I assume the original coder had a version of php that doesn't have a problem with the data format.
I just loaded phphelpdesk up on Apache 2.0.52/PHP v4.3.10/MySQL 4.1.8, and get this message whenever I go to "view tickets"
Warning: setcookie() expects parameter 3 to be long, string given in C:\XAMPP\xampp\htdocs\phphelpdesk\includes\cookie.inc.php on line 8
Warning: setcookie() expects parameter 3 to be long, string given in C:\XAMPP\xampp\htdocs\phphelpdesk\includes\cookie.inc.php on line 9
Warning: setcookie() expects parameter 3 to be long, string given in C:\XAMPP\xampp\htdocs\phphelpdesk\includes\cookie.inc.php on line 10
Warning: setcookie() expects parameter 3 to be long, string given in C:\XAMPP\xampp\htdocs\phphelpdesk\includes\cookie.inc.php on line 11
Warning: setcookie() expects parameter 3 to be long, string given in C:\XAMPP\xampp\htdocs\phphelpdesk\includes\cookie.inc.php on line 12
my config.inc.php looks like this:
<?php
// Modified by Andrew Walker (ajwalker@home.com)
$time = mktime()+$g_cookietimeout;
$date = date("l, d-M-y H:i:s", ($time));
if (isset($authentication)) {
setcookie("status", $status, $date);
setcookie("user", $user, $date);
setcookie("group", $group, $date);
setcookie("authentication", $authentication, $date);
setcookie("laston", $laston, $date);
}
else {
setcookie("status", "Logged In", $date);
setcookie("user", $txtUsername, $date);
setcookie("group", $row[4], $date);
setcookie("authentication", "YES", $date);
setcookie("laston", $row[6], $date);
}
?>
if I ignore the errors, and attempt to ckick on a ticket to view, I get kiecked back out to the logon screen.
HELP!!??
aexley@coordinatedhealth.com
The problem is setcookie is looking for data of type 'long' where as the variables set to it are strings. That is why you are getting an error. I have php5. This is how i fixed the problem. I assume the original coder had a version of php that doesn't have a problem with the data format.
$time = (mktime()+ $g_cookietimeout);
$time = $time * 0;
$date = date("l, d-M-y H:i:s", ($time));
if (isset($authentication)) {
setcookie("status", $status, $time);
setcookie("user", $user, $time);
setcookie("group", $group, $time);
setcookie("authentication", $authentication, $time);
setcookie("laston", $laston, $time);
}
else {
setcookie("status", "Logged In", $time);
setcookie("user", $txtUsername, $time);
setcookie("group", $row[4], $time);
setcookie("authentication", "YES", $time);
setcookie("laston", $row[6], $time);
}
?>