[SOLVED]Re: [PEAR] Re: Basic? problem with logger not solved

From: Date: Mon, 22 Aug 2005 13:12:37 +0000
Subject: [SOLVED]Re: [PEAR] Re: Basic? problem with logger not solved
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20517@lists.php.net to get a copy of this message
Hello to all, finally I solved my problem. It was a path-problem. There are some - older - pear-packages installed on my providers php-path. What I did not know before. I set my path to "my-providers-path : my-pear-path". For example, when I instantiated a Win-Logger: $logger = &Log::singleton('win', 'LogWindow', 'ident', $conf); I got *Fatal error*: Call to undefined function: upto() in *my-pear-path/Log/win.php* on line *78 The script finds log.php on my providers path, does not find win.php there, so finds it on my path, tries to instantiate the subclass Log_win and calls the superclasses upto-method, which exists in log.php on my-pear-path, but not in the old version of my providers. Best regards and have a nice day Sabine * Sabine schrieb:
Hello again, now I upgraded to PEAR 1.3.6. No difference. The Log-package depends on PHP Extension sqlite. But only if you use the subclass sqlite? The documentation says so. Sabine Sabine schrieb:
i've tried myself this example with Log 1.8.7, PEAR 1.3.6 and got no fatal error. What version of Log and PEAR did you used ?
For the first thing, now I know it's not a problem of my code. Log 1.8.7, PEAR 1.3.5, PHP 4.3.10 I just installed all the pear stuff during the last few days. Text_Password and Mail_queue worked fine. The testscript is in the same directory as those for the other packages and has the same include to define the pear-path. The Log-Scripts are at their appropiate places, I deleted and reinstalled the package . The object is instantiated. Now I'll upgrade to Pear 1.3.6 and try again. Best regards Sabine


« previous php.pear.general (#20517) next »