You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Viljo Marrandi <vi...@inspiral.net> on 2003/02/12 15:58:14 UTC

Server returns nothing

Hello,

I have a mod_perl + Template-Toolkit driven web-site with some 20+ perl
modules. Apache is 1.3.26, mod_perl is 1.26 and TT is 2.08.

Problem is, sometimes happens that I get absolutely no response from
server, browser just says that 'Document contains no data' and even
server accesslog doesn't show anything. All requests go to some kind of
black hole. I can get rid of it, by not using one module. And
interesting thing is that when I start to use it again, server responds
normally.

I've checked this module as much as I could, but to me it seems like every
other normal module. I have no idea what could cause this. I used
diagnostics and warnings and got rid of all warnings.

If I used diagnostics first and it showed some warnings, then I saw that
server tried to show (compile, however you should say that) this page for
serveral times (maybe browser tried to fetch it many times...). And all I
saw was just errors from diagnostics, all loggings messages I have in code
were ignores.

Has anyone seen something like this before and can direct me on this
debugging task? What should I try next? There are no syntactical errors,
only logical, seems to me.

Thanks in advance,
Viljo


Re: Server returns nothing (solved)

Posted by Viljo Marrandi <vi...@inspiral.net>.
Yes, even warnings was used.

Viljo


On Fri, 14 Feb 2003, Stas Bekman wrote:

> Viljo Marrandi wrote:
> > Hello,
> >
> > Yes, use strict; was in all modules, this makes it even more interesting,
> > doesn't it?
>
> use warnings; ?
>
>
>
> __________________________________________________________________
> Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
> http://stason.org/     mod_perl Guide ---> http://perl.apache.org
> mailto:stas@stason.org http://use.perl.org http://apacheweek.com
> http://modperlbook.org http://apache.org   http://ticketmaster.com
>

Re: Server returns nothing (solved)

Posted by Stas Bekman <st...@stason.org>.
Viljo Marrandi wrote:
> Hello,
> 
> Yes, use strict; was in all modules, this makes it even more interesting,
> doesn't it?

use warnings; ?



__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Re: Server returns nothing (solved)

Posted by Ged Haywood <ge...@www2.jubileegroup.co.uk>.
Hi there,

On Thu, 13 Feb 2003, Viljo Marrandi wrote:

> On Thu, 13 Feb 2003, Ged Haywood wrote:
> 
> > Hi there,
> >
> > On Thu, 13 Feb 2003, Viljo Marrandi wrote:
> >
> > > DBIx::Recordset::Fetchsizewarn = 0;
> > >
> > > while the correct is:
> > >
> > > $DBIx::Recordset::Fetchsizewarn = 0;
> > >
> > > Only one missing $ ! Can anyone explain why server acted so weirdly
> > > beacuse of this error? Why it didn't show anything at all in error_log?
> >
> > Did you
> >
> > use strict;
> 
> Yes, use strict; was in all modules, this makes it even more interesting,
> doesn't it?

Hmmm.  This tells me that what we think is happening in your machine
isn't what is really happening.  (But it's often that way.:)
I think you will either have to take out that character and debug it,
or else forget all about it and get on with the rest of the project...

:)

73,
Ged.


Re: Server returns nothing (solved)

Posted by Viljo Marrandi <vi...@inspiral.net>.
Hello,

Yes, use strict; was in all modules, this makes it even more interesting,
doesn't it?

Viljo


On Thu, 13 Feb 2003, Ged Haywood wrote:

> Hi there,
>
> On Thu, 13 Feb 2003, Viljo Marrandi wrote:
>
> > My code checks $tt->error() and it didn't show anything. But I found the
> > problem, it still was perl and it was very, very stupid mistake. In that
> > weird module I defined:
> >
> > DBIx::Recordset::Fetchsizewarn = 0;
> >
> > while the correct is:
> >
> > $DBIx::Recordset::Fetchsizewarn = 0;
> >
> > Only one missing $ ! Can anyone explain why server acted so weirdly
> > beacuse of this error? Why it didn't show anything at all in error_log?
>
> Did you
>
> use strict;
>
> ?
>
> 73,
> Ged.
>
>

Re: Server returns nothing (solved)

Posted by Ged Haywood <ge...@www2.jubileegroup.co.uk>.
Hi there,

On Thu, 13 Feb 2003, Viljo Marrandi wrote:

> My code checks $tt->error() and it didn't show anything. But I found the
> problem, it still was perl and it was very, very stupid mistake. In that
> weird module I defined:
> 
> DBIx::Recordset::Fetchsizewarn = 0;
> 
> while the correct is:
> 
> $DBIx::Recordset::Fetchsizewarn = 0;
> 
> Only one missing $ ! Can anyone explain why server acted so weirdly
> beacuse of this error? Why it didn't show anything at all in error_log?

Did you

use strict;

?

73,
Ged.



Re: Server returns nothing (solved)

Posted by Viljo Marrandi <vi...@inspiral.net>.
Hello,

My code checks $tt->error() and it didn't show anything. But I found the
problem, it still was perl and it was very, very stupid mistake. In that
weird module I defined:

DBIx::Recordset::Fetchsizewarn = 0;

while the correct is:

$DBIx::Recordset::Fetchsizewarn = 0;

Only one missing $ ! Can anyone explain why server acted so weirdly
beacuse of this error? Why it didn't show anything at all in error_log? At
least next time I know...

Best regards,
Viljo

On Wed, 12 Feb 2003 cowsgoesm00@yahoo.co.uk wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Then it's probably a template error, check $tth->error()'s value,
> after the process()ing. also you might wanna try the template toolkit
> mailing list?
>
> <wildguess> You are trying tt's USE directive, and that module isn't
> returning a true value from new() on given occasions, which throws an
> error (plugin failed), so nothing being sent at all. </wildguess>
>
> On Wed, 12 Feb 2003 16:58:14 +0200 (EET), Viljo Marrandi wrote:
> >Hello,
>
> - --
> cheers,
> <co...@yahoo.co.uk> - wa1800z@DALnet&CAiRC - #32741432
> KeyID 0xDE9EB50B - D0D87CA98916CBB258AC 77FB91E0DA95DE9EB50B
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.1 (FreeBSD)
>
> iD8DBQE+SmtckeDald6etQsRAh1CAJ9K3jlTictgvsdouOaWJyXJ/o0BdgCggbjo
> l5Tnf8wbPHF2md6wLXOAEXc=
> =+H6d
> -----END PGP SIGNATURE-----
>

Re: Server returns nothing

Posted by co...@yahoo.co.uk.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Then it's probably a template error, check $tth->error()'s value,
after the process()ing. also you might wanna try the template toolkit
mailing list?

<wildguess> You are trying tt's USE directive, and that module isn't
returning a true value from new() on given occasions, which throws an
error (plugin failed), so nothing being sent at all. </wildguess>

On Wed, 12 Feb 2003 16:58:14 +0200 (EET), Viljo Marrandi wrote:
>Hello,

- --
cheers,
<co...@yahoo.co.uk> - wa1800z@DALnet&CAiRC - #32741432
KeyID 0xDE9EB50B - D0D87CA98916CBB258AC 77FB91E0DA95DE9EB50B
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE+SmtckeDald6etQsRAh1CAJ9K3jlTictgvsdouOaWJyXJ/o0BdgCggbjo
l5Tnf8wbPHF2md6wLXOAEXc=
=+H6d
-----END PGP SIGNATURE-----