Re: Flakey use of debug config
Dan Rossi <liveuser-zu2dZaOKXTSc5qR/[email protected]> Sun, 30 Oct 2005 23:43:43 +1100
| Newsgroups | gmane.comp.php.pear.liveuser |
|---|---|
| Message-ID | <[email protected]> |
Is this the same for both LiveUser and LiveUser Admin ? Coz this used to work for both .. 'authContainers' => array( 'DB_Local' => array( 'type' => 'MDB2', 'loginTimeout' => 0, 'expireTime' => 3600, 'idleTime' => 1800, 'allowDuplicateHandles' => true, 'passwordEncryptionMode' => 'MD5', 'storage' => array( 'connection' => $this->_ludb, 'dsn' => $this->settings['LiveUser']['dsn'], 'prefix' => 'liveuser_', 'tables' => array( 'users' => array( 'fields' => array( // 'name' => false, // 'email' => false, 'is_active' => false, ), ), ), 'fields' => array( // 'name' => 'text', // 'email' => 'text', 'is_active' => 'boolean', ), 'alias' => array( //'name' => 'name', // 'email' => 'email' 'is_active' => 'is_active', ), // 'force_seq' => false ), ) ), On 30/10/2005, at 11:30 PM, Lukas Kahwe Smith wrote: > Dan Rossi wrote: >> I updated LiveUser the other day and had to change a few things >> around to make it work, a public method of addErrorLog got removed. >> I eventually worked out you have to turn on debug for the $admin->log >> object to not be null so these errors wont occur >> Fatal error: Call to a member function addChild() on a non-object in >> with this $this->admin->log->addChild($logger); > > always a good idea to read the changelog first :-) > >> so you have to comment and uncomment that when turning debug on and >> off. > > yes .. or use an if .. > >> I now get a log window popping up, when i just want it to log to a >> file like it used to , and i also get this error when loading the >> login page for the first time, as in not a protected area which is >> redirecting to the login > > alternatively you can pass an instance of a logger inside the $debug > parameter. FYI: the default log instance we create does add the win > logger child. > >> An undefined error occurred or init() was not called >> Once i login i get that annoying log window with the error of >> "unknown error" :D whats the go ? > > you lost me now .. only errors should cause this, so I presume you > have an error to fix in your setup. > > regards, > Lukas > > > _______________________________________________ > LiveUser mailing list > [email protected] > http://mailman.21st-hq.de/mailman/listinfo/liveuser >