[phplib] create user problem From: Clemens Hermann (haribeau <email protected>)
Date: 06/22/01

Hi,

I am using the latest version of phplib on FreeBSD
4.3/apache/mod_php3/MySQL.
I wanted do use Example_Challenge_Crypt_Auth. I instantiated the class in
local.inc and tried to use new_user_md5.php3 to administer the userbase.
I use an instance of the perm class with three levels (admin, editor,
user).
I can create accounts and they can be used to login. The only problem
is: The perm is not set correctly, I see "Array" in the database
instead of the permission. In new_user_md5.php3 in the level column I
see my three levels as option but if I chose one and click Change I get
the following:
User Administration

Database error: Invalid SQL: update auth_user_md5 set
username='clemens', password='2e771fe4f43544532dbc49c9c9a45e81f',
perms='Array' where uid="
MySQL Error: 1054 (Unknown column 'uid' in 'where clause')
Session halted.

The table auth_user_md5 is present as provided in the distribution.

Any hints?

tia

/ch

-- 
"Contrary to popular belief, Unix is user friendly.
It just happens to be selective about who it makes friends with."

--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>