Warning: setcookie() expects parameter 3 to be long, string
given in c:\program files\easyphp\www\ipm\functions.php on
line 2607
When we login as an admin we get the above error and it
expects us to login while entering / re-entering each link
on the same login.
As the third argument for the setcookie function needs a long instead of the string given, we feed it a zero.
The fix for this problem is in Line 2607 of functions.php
repl
setcookie("uid", $user[id], "", "", "", $SSL);
with
setcookie("uid", $user[id], "0", "", "", $SSL);
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Warning: setcookie() expects parameter 3 to be long, string
given in c:\program files\easyphp\www\ipm\functions.php on
line 2607
When we login as an admin we get the above error and it
expects us to login while entering / re-entering each link
on the same login.
As the third argument for the setcookie function needs a long instead of the string given, we feed it a zero.
The fix for this problem is in Line 2607 of functions.php
repl
setcookie("uid", $user[id], "", "", "", $SSL);
with
setcookie("uid", $user[id], "0", "", "", $SSL);
I gor the same message after upgrading from 4.1.2 to PHP 4.2.0
PM