Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

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/ if the error is is Doc/

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

Replies are listed 'Best First'.
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 is similar to
    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?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2022-08-09 19:40 GMT
Find Nodes?
    Voting Booth?

    No recent polls found