From: Chad Perrin Date: 2008-11-17T14:06:13+09:00 Subject: Re: Why does tmail stop my CGI script form working? --k1lZvvs/B4yU6o8G Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 17, 2008 at 01:45:05PM +0900, Chad Perrin wrote: > On Mon, Nov 17, 2008 at 01:16:25PM +0900, Ryan Davis wrote: > >=20 > > On Nov 16, 2008, at 20:05 , Chad Perrin wrote: > >=20 > > >So, basically, the script just seems to be broken from the moment I > > >require the TMail library, but it breaks "silently" so I don't get any > > >errors -- but everything up to that point seems to work just fine > > >(including other require statements, before or after the content type > > >line). > >=20 > > what does the web server's error log say? I doubt it dies silently. =20 > > you're prolly just not looking in the right spot. >=20 > I guess I should have been clearer: >=20 > It fails without any error that shows up in the browser. Since it's > shared hosting, and I'm unable to even *see* an Apache log anywhere, I > figure I must not have direct access to the web server logs. >=20 > I've tried wrapping the require statement in some exception handling > code, too, and that doesn't seem to give me anything useful either. Whoops -- I had a typo in my exception handling code. I've fixed it, so it looks like this: begin require 'tmail' rescue Exception =3D> e puts "#{e.class} : #{e}" end =2E . . and the output in the browser now looks like this: LoadError : no such file to load -- tmail =2E . . but, as I said before, it works from the shell, so I know tmail is on the system and accessible. --=20 Chad Perrin [ content licensed PDL: http://pdl.apotheon.org ] Quoth Sterling Camden: "The Church doesn't want people calling for inquisitions." --k1lZvvs/B4yU6o8G Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkkg/J4ACgkQ9mn/Pj01uKWlEQCeLSyhjZDOhVD24V2VbO/2LBau pbkAoNhBFzJ2cCiWVIwNLAVV+fhiNcHR =IGUO -----END PGP SIGNATURE----- --k1lZvvs/B4yU6o8G--