I have a mod_perl module that is trying to connect to a mysql DB via DBI.  
The connect string is not dying/erroring out.  I do have an "... or die" 
clause after it.  Yet on the next line when I try to prepare my select 
statement I get this in the error log:

[Sun Apr 28 10:40:24 2002] [error] Can't call method "prepare" on an 
undefined value at /etc/httpd/lib/perl/MOC/Display.pm line 42.

I turned on DBI Trace and get this as well...

    DBI 1.21-nothread dispatch trace level set to 1
    Note: perl is running without the recommended perl -w option
    -> DBI->connect(DBI:mysql:makeout:192.168.1.102, moc, ****, 
HASH(0x81bf670))
    -> DBI->install_driver(mysql) for linux perl=5.006001 pid=31443 ruid=48 
euid=48
       install_driver: DBD::mysql version 2.1014 loaded from 
/usr/lib/perl5/site_perl/5.6.1/i386-linux/DBD/mysql.pm
    <- install_driver= DBI::dr=HASH(0x810f8cc)
    <- connect= DBI::db=HASH(0x81f5900) at DBI.pm line 471
    <- STORE('RaiseError' 1 ...)= 1 at DBI.pm line 513
    <- STORE('PrintError' 1 ...)= 1 at DBI.pm line 513
    <- STORE('AutoCommit' 1 ...)= 1 at DBI.pm line 513
    <- connect= DBI::db=HASH(0x81f5900)
DBH=$VAR1 = undef;
[Sun Apr 28 10:40:24 2002] [error] Can't call method "prepare" on an 
undefined value at /etc/httpd/lib/perl/MOC/Display.pm line 42.

    <- DESTROY= undef


The DBH=$VAR1  line is a Data::Dumper print statement to STDERR.  Any 
thoughts or suggestions on how to attempt the debug process?

Thanks,

Mike

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.

Reply via email to