Re: Flakey use of debug config
Dan Rossi <liveuser-zu2dZaOKXTSc5qR/[email protected]> Sun, 30 Oct 2005 23:39:19 +1100
| Newsgroups | gmane.comp.php.pear.liveuser |
|---|---|
| Message-ID | <[email protected]> |
added this in my config seems to be fine :P
'debug'=>$logger,
And yeh somewhere down the line my configs dont match up, its trying to
load perm simple which is not my option, but a message of unknown error
is unhelpful :D
array(1) { [0]=> &array(7) { ["code"]=> int(-1) ["params"]=>
array(1) { ["msg"]=> string(39) "Could not instanciate storage
container" } ["package"]=> string(8) "LiveUser" ["level"]=>
string(9) "exception" ["time"]=> float(1130675863.68) ["context"]=>
array(4) { ["file"]=> string(55)
"/Volumes/DATA/www/classes/PEAR/LiveUser/Perm/Simple.php" ["line"]=>
int(156) ["function"]=> string(4) "init" ["class"]=> string(20)
"LiveUser_Perm_Simple" } ["message"]=> string(13) "Unknown error" }
}
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
>