Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: mod_perl @INC/use base trouble

by Gilimanjaro (Hermit)
on Aug 13, 2004 at 10:55 UTC ( #382608=note: print w/ replies, xml ) Need Help??


in reply to mod_perl @INC/use base trouble

Ehm... Why are you posting Doc/NodeVersion.pm if the error is is Doc/User.pm?

The error sais Doc::User doesn't define a ->table method... Does it?


Comment on Re: mod_perl @INC/use base trouble
Re^2: mod_perl @INC/use base trouble
by Jaap (Curate) on Aug 13, 2004 at 11:13 UTC
    Hmmm... you sure are awake.
    The User.pm is similar to NodeVersion.pm:
    package Doc::User; use base 'Doc::DBI'; __PACKAGE__->table('users'); __PACKAGE__->columns(All => qw/uid email employee/); __PACKAGE__->has_many(accessrights => 'Doc::AccessRight'); __PACKAGE__->autoupdate(1); 1;
      Try adding an explicit
      use Doc::DBI;
      before your 'use base'. If I remember correctly some perl/base versions just modified @ISA with 'use base', while newer ones actually use'd it when it wasn't loaded yet.

      Your mod_perl was probably compiled with an older perl version than the command line version you're running. If so, you'll want to fix that or the version difference will pop up on a regular basis to bite your rearend...
        That did not help either. I am now asking the sysadmin to change the perl executable to the same i am using on the command line. Although both are 5.6.1

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://382608]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2014-08-21 11:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (134 votes), past polls