Hmm. I don't know what's up here.  I am no longer getting that error but this 
one now.  I restarted Apache and closed all web browsers.  Then hit the 
same page.  I got the previous error.  I hit refresh a couple times and now I 
get this new one instead?!  Tried the same thing in Lynx on the laptop and 
got the same thing.  First hit and then refresh give the error about not finding 
the module.  The next refresh gives the error about not able to locate object 
"new".

[416]ERR: 24: Error in Perl code: Can't locate object method "new" via 
package "Apache::File" at /wwww/htdocs/init.epl line 9.

Apache/1.3.22 (Unix) mod_perl/1.26 HTML::Embperl 2.0b5 [Thu Dec 20 
15:32:45 2001]

The relevant .epl file:
[-
        $req = shift;
        # Set up database connection
        use DBI;
        $req->{dbh} = DBI->connect ($req->{website_database},$req-
>{db_user},$req->{db_pass});

        # Set up debug file
        use Apache::File;
        $req->{DBUGF} = Apache::File -> new ('>>/tmp/debug.txt') || die ("Can't 
open debug file for writing: $!");
-]


On 20 Dec 2001 at 15:14, Scott Chapman wrote:

> Gerald,
> I tried using Apache::File and get this:
> 
>         use Apache::File; # Line 6 in source code of init.epl
> 
> [416]ERR: 24: Error in Perl code: Can't locate loadable object for module 
> Apache::File in @INC (@INC contains: 
> 
> /usr/lib/perl5/5.00503/i386-linux 
> /usr/lib/perl5/5.00503 
> /usr/lib/perl5/site_perl/5.005/i386-linux 
> /usr/lib/perl5/site_perl/5.005 
> . 
> /wwww/ 
> /wwww/lib/perl
> 
> ) at /usr/lib/perl5/site_perl/5.005/i386-linux/mod_perl.pm line 65535 
> I did: "find /usr/lib/ -name File.pm" which gives back:
> 
> /usr/lib/perl5/5.00503/i386-linux/IO/File.pm
> /usr/lib/perl5/site_perl/5.005/i386-linux/Apache/File.pm
> /usr/lib/perl5/site_perl/5.005/Apache/Session/Store/File.pm
> /usr/lib/perl5/site_perl/5.005/Apache/Session/Lock/File.pm
> /usr/lib/perl5/site_perl/5.005/Apache/Session/File.pm
> 
> 
> Why isn't it seeing my Apache/File.pm module like it should?
> 
> Scott
> 
> On 20 Dec 2001 at 21:17, Gerald Richter wrote:
> 
> > >
> > > open ($req->{DBUGF}, '>>/tmp/debug.txt') || die ("Can't open debug
> > > file for writing: $!");
> > >
> > 
> > I am not sure if this syntax works at all. I would use Apache::File instead
> > (or IO::File if you don't run udner mod_perl):
> > 
> > $req->{DBUGF} = Apache::File -> new ('>>/tmp/debug.txt') || die ("Can't open
> > debug  file for writing: $!");
> > 
> > Gerald
> > 
> > P.S. If you have set optRawInput there is no need to escape < and > in the
> > source
> > 
> > 
> > -------------------------------------------------------------
> > Gerald Richter    ecos electronic communication services gmbh
> > Internetconnect * Webserver/-design/-datenbanken * Consulting
> > 
> > Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
> > E-Mail:     [EMAIL PROTECTED]         Voice:    +49 6133 925131
> > WWW:        http://www.ecos.de      Fax:      +49 6133 925152
> > -------------------------------------------------------------
> > 
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to