Re: Sporadic errors with DBI

Shugo Maeda <[email protected]> Tue, 14 Sep 2004 10:02:12 +0900
Newsgroups gmane.comp.apache.mod-ruby
Message-ID <[email protected]>
Hi,

[email protected] wrote:
> /usr/lib/ruby/1.8/date/format.rb:6: Date is not a class (TypeError)

Any mod_ruby script or ruby libraries on your site defines Date as a 
module, doesn't it?

> [Mon Sep 13 07:42:58 2004] [error] mod_ruby: ./testscript.rb:182:in `dbConnTest': undefined method `connect' for DBI:Module (NoMethodError)
> [Mon Sep 13 07:42:58 2004] [error] mod_ruby:   from ./testscript.rb:65:in `testFunc'
> [Mon Sep 13 07:42:58 2004] [error] mod_ruby:   from /path/to/webdir/index.rbx:25
> [Mon Sep 13 07:42:58 2004] [error] mod_ruby:   from /path/to/webdir/index.rbx:23:in `out'
> [Mon Sep 13 07:42:58 2004] [error] mod_ruby:   from /path/to/webdir/index.rbx:23

Can you show me your index.rbx and testscript.rb?

Shugo