Re: Apache::Reload and CDBI won't play together

[prev] [thread] [next] [Date index for 2004/07/02]

From: Perrin Harkins
Subject: Re: Apache::Reload and CDBI won't play together
Date: 20:31 on 02 Jul 2004
On Fri, 2004-07-02 at 16:01, Alexander Gräfe wrote:
> I've tried to set up Apache::Reload on my development server, so I don't
> have to restart apache everytime I modify one of the modules.
> Unfortunately, as soon as I modify one of my CDBI modules, I get
> Internal Server Errors and the following in my error log:
> 
> (Beotechnic::Gebiet being the module I modified)
> 
> [Fri Jul  2 21:42:54 2004] Gebiet.pm: knowhow method already exists in Beotechnic::Gebiet
> [Fri Jul  2 21:42:54 2004] Gebiet.pm:  at /usr/lib/perl5/site_perl/5.8.0/Class/DBI/Relationship/HasMany.pm line 13

Class::DBI prevents you from overwriting already declared methods.  To
fix this, you would need to hack Apache::Reload to clear the symbol
table of your package just before reloading it, or hack Class::DBI to
ignore overwriting subs.

- Perrin

Apache::Reload and CDBI won't play together
Alexander =?iso-8859-1?Q?Gr=E4fe?= 20:01 on 02 Jul 2004

Re: Apache::Reload and CDBI won't play together
Perrin Harkins 20:31 on 02 Jul 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52