Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: mod_perl @INC/use base trouble

by Gilimanjaro (Hermit)
on Aug 13, 2004 at 10:55 UTC ( [id://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?

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 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://382608]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-24 13:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found