Re: Recently upgraded my Pear::Config, and after all my applications are crashing..
| From: | Justin Patrin | Date: | Mon, 10 Apr 2006 16:38:51 +0000 |
| Subject: | Re: Recently upgraded my Pear::Config, and after all my applications are crashing.. | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-23607@lists.php.net to get a copy of this message | ||
On 4/10/06, Louie Miranda <lmiranda@gmail.com> wrote:
> I am sorry, but when i doubled checked on my modules. The config was just
> installed after i have tried to upgrade. Isnt this a bug on Config? Since,
> thats the last thing i did before everything went wrong.
>
If aclass is being redefined it's almost always the user's fault,
sorry to say. Are you including config somewhere? Are the packages
you're using using config? What files are you including?
Also see: http://pear.reversefold.com/dokuwiki/doku.php?id=phpfaqs#why_does_my_script_get_included_multiple_times_with_include_once_require_once
> At a guess you are trying to include two copies of the files or you have
> > another object called Config already included within your code.
> >
>
>
> On 4/10/06, Adam Ashley <adam.ashley@ilisys.com.au> wrote:
> >
> > On Mon, 2006-04-10 at 15:49 +0800, Louie Miranda wrote:
> > > This is how i upgraded my Config..
> > >
> > > pear upgrade -a Config
> > > ..
> > > upgrade ok: channel://pear.php.net/Config-1.10.6
> > >
> > > Then all my pear::db connections got all this errors.
> > >
> > > [Mon Apr 10 15:43:22 2006] [error] PHP Fatal error: Cannot redeclare
> > class
> > > config in /usr/lib/php/Config.php on line 43
> > > [Mon Apr 10 15:43:23 2006] [error] PHP Fatal error: Cannot redeclare
> > class
> > > config in /usr/lib/php/Config.php on line 43
> > > [Mon Apr 10 15:43:24 2006] [error] PHP Fatal error: Cannot redeclare
> > class
> > > config in /usr/lib/php/Config.php on line 43
> > > [Mon Apr 10 15:43:28 2006] [error] PHP Fatal error: Cannot redeclare
> > class
> > > config in /usr/lib/php/Config.php on line 43
> > >
> > > Good thing i have a copy of the /php/ pear libary last month. And i was
> > able
> > > to get all things working again. But, im shocked that all my pear
> > modules
> > > just stopped working.
> > >
> > > What could be the problem of this?
> >
> > At a guess you are trying to include two copies of the files or you have
> > another object called Config already included within your code.
> >
> > Adam Ashley
> >
> >
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.4.1 (GNU/Linux)
> >
> > iD8DBQBEOhDAiQOxIxaQ8/ARAvRbAJ4jZXwG9d7klIQrVAeK7KGiI5kWbACcCsdR
> > DK+0oD3kZ8XnSAeHQ7Jd3u8=
> > =FkBd
> > -----END PGP SIGNATURE-----
> >
> >
> >
>
>
> --
> Louie Miranda (lmiranda@gmail.com)
> http://www.axishift.com
>
> //JSM-W
>
--
Justin Patrin