Shugo-san,
I actually had changed the paths and function names in my
e-mail, since the mod_ruby list archive is up on publicly
available Web pages.
I am sending to you separately a tar archive of the code, as well
as a text file with the actual errors in it.
I have been thinking a little bit about what might be wrong. I
have a separate page which performs a similar call to the
database, and it has not thrown any errors. The major difference
in code is that on the main page I am making an HTTP request
using Net::HTTP before making the database call. Could there be
some problem with waiting for the HTTP request to return a
result? The request is to the local machine, so it does return
immediately.
Also, as I mentioned, this problem seems much worse when the Ruby
scripts are executed as 'includes' in .shtml or .php files.
Just a thought.
I sincerely appreciate the assistance.
Matthew
On Tue, Sep 14, 2004 at 10:02:12AM +0900, the entity known as Shugo Maeda wrote:
> Hi,
>
> mde@... 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
>