[pmwiki-users] setcookie() expects parameter 2 to be string

OBUTEX / Hladůvka admin at obutex.com
Fri Feb 24 02:23:46 CST 2006


When opening Read protected Site/Homepage before the user is loged in
the page Site/Homepage is corrupted with following warnings.
The same behavior is after user logs out and logs in again.
*
Warning*: setcookie() expects parameter 2 to be string, array given in 
*D:\Abyss Web Server\htdocs\wikicrm\local\config.php* on line *209*

*Warning*: Cannot modify header information - headers already sent by 
(output started at D:\Abyss Web 
Server\htdocs\wikicrm\local\config.php:209) in *D:\Abyss Web 
Server\htdocs\wikicrm\pmwiki.php* on line *807

*This is line 209 of local config.php:
## If there's no Author yet, use the verified identity.
    if (@$_SESSION['authid'] && !$_COOKIE['author']) {
        $Author = $_SESSION['authid'];
        setcookie('author',$Author,0,'/');
    }

How to fix it ?

using:

WinXPP,version 2.1.beta26*
*

-- 
OBUTEX s.r.o
Ing.Jiří Hladůvka
Zlatovská 22
911 01 Trenčín

tel.: +421 (0)32 6587000
mailto:admin at obutex.com

http://www.obutex.com






More information about the pmwiki-users mailing list