Re: LiveUser ... some problems
| From: | Markus Wagner | Date: | Thu, 30 Dec 2004 10:14:06 +0000 |
| Subject: | Re: LiveUser ... some problems | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-16514@lists.php.net to get a copy of this message | ||
Alexander Flatter wrote:
Hi ...
I have some problems with LiveUser. To learn more about this package,
I looked at some of the examples, but none matched with my settings.
I tried a simple example [1] and I'm not able to debug it. In case you
need a sql dump, there it is [2]. For users who read this mail later
in the archive: I used 'perm_db_simple.sql' and 'Auth_DB.sql' from the
LiveUser-Package. Output is [3]. Are you able to reproduce this error?
Is it my fault?
Thank you!
......
'permContainer' => array(
'type' => 'Simple',
'storage' => array(
'DB' => array(
'dsn' => $cfg['mysql']['dsn'],
'prefix' => 'liveuser_'
),
),
),
);
$admin =& LiveUser_Admin::factory($conf);
if ($admin == false) die(LiveUser::getErrors());
echo "Debug 1<br />\n";
var_dump($admin->setAdminContainers());
echo "Debug 2<br />\n";
$admin->addUser('User', 'Password');
?>
[2] http://aflatter.interdv.de/tmp/pear-general.LiveUser.sql
[3] Output
Debug 1
Warning: Illegal offset type in /var/www/aflatter/pear/PEAR/ErrorStack.php on line 915
bool(true)
Debug 2
I had the same problem, and after lots of debugging:
Because of the settings, the LiveUser_admin-package is searching for
DB.php in the Directory Admin\Perm\Storage\ where only MDB2.php exist. I
read an mail that the DB.php will be released in the next minor update.
regards,
Markus
--
Markus Wagner
mw210@gmx.at