[pmwiki-users] Authentication Error

Ian Barton lists at manor-farm.org
Sun Sep 24 07:54:59 CDT 2006


I had a similar error in a script recently (I think it was SectionEdit). 
First check what recipes you have loaded and try commenting them out in 
config.php to see if the error goes away.

In my copy of authuser.php line 82 is:

function AuthUserConfig($pagename, $id, $pw, $pwlist) {

Looking at the rest of the function I would guess that $pwlist should be 
an array and for some reason isn't in your setup.

A horrible hack (which I don't recommend) would be to edit authuser.php 
and typecast $pwlist as an array by sticking array in front of it.

Ian.

The Editor wrote:
> I got the following warnings trying to login to my demo site using
> FAST Data. It doesn't seem to do it on my production site, but maybe I
> don't see them.  Any thoughts?
> 
> I attached below a copy of the login script.  On my home machine it
> logs in perfectly (though it doesn't grant password permissions, just
> identity based ones.  Which is fine... But would like to fix it still.
>  But first things first.
> 
> These error messages. Any clue what they mean?
> 
> Cheers,
> Caveman
> 
> 
> Warning: array_keys() [function.array-keys]: The first argument should
> be an array in /home/fastst/public_html/fastwiki/system/scripts/authuser.php
> on line 82
> 
> Warning: preg_grep() [function.preg-grep]: Second argument to
> preg_grep() should be an array in
> /home/fastst/public_html/fastwiki/system/scripts/authuser.php on line
> 82
> 
> Warning: Invalid argument supplied for foreach() in
> /home/fastst/public_html/fastwiki/system/scripts/authuser.php on line
> 82
> 
> Warning: Cannot modify header information - headers already sent by
> (output started at
> /home/fastst/public_html/fastwiki/system/scripts/authuser.php:82) in
> /home/fastst/public_html/fastwiki/system/pmwiki.php on line 870
> 
> Warning: Cannot modify header information - headers already sent by
> (output started at
> /home/fastst/public_html/fastwiki/system/scripts/authuser.php:82) in
> /home/fastst/public_html/fastwiki/system/pmwiki.php on line 871
> 
> 
> 		if ($field == "login") {
> 			$dp = $DataKey."Profiles.$_POST[member]";
> 			if (($value == "auto") and (! PageExists($dp))) {
> 				AuthUserId($pagename, $_POST['member']);
> 				$m .= "You have been successfully logged in.  ";				
> 				}
> 			$pass1 = GetData($dp,"Password");
> 			$pass2 = $_POST['passwd'];
> 			if ($pass1 == $pass2) {			
> 				AuthUserId($pagename, $_POST['member']);
> 				$m .= "You have been successfully logged in.  ";
> 				}
> 			else Warning("Incorrect member name or password.");
> 			}
> 
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users





More information about the pmwiki-users mailing list